biasedbit / curl-ios-build-scripts

Build libcurl with HTTP(S)-only support to use on iOS and OSX development
http://biasedbit.com/
185 stars 69 forks source link

SSH / libSSH2 support #4

Closed timogasda closed 12 years ago

timogasda commented 12 years ago

Hi, this is a really great script! thanks for that But I really need to compile libcurl with SSH for SFTP support. I've tried to do it myself but failed.. I was able to compile libSSH2 but I cant get your script to recognize it. Would be cool if your script would support this - maybe even build libssh2 automatically?

Thanks in advance

sburavtsov commented 12 years ago

Hi TwoLaid, it seems you can't use SFTP due by default this scripts compile libcurl with just http support. You need to edit build-libcurl.sh and enable FTP there. For me it builds it with native Darwin ssh support as it should be.

biasedbit commented 12 years ago

@TwoLaid this script is meant to produce the smallest possible binary that supports both HTTP and HTTPS. With libcurl-7.27.0, which rolled in support for Darwin SSL, this is achieved by explicitly not compiling against libssh2.

If you look back on the repository's history, you'll find builds that used both OpenSSL and GnuTLS to provide HTTPS support. I killed those versions as the total binary size you'd need to include in your iOS/OSX app would ascend to some hefty MB. As you can imagine, that would discourage many people from using curl on their apps.

You can add FTP support by removing the --disable-ftp flag on line 9.

I'm closing the issue as the script is behaving as intended, as pointed out by @sburavtsov.

sylverb commented 12 years ago

@TwoLaid send me a message if you need some scripts to build curl with libssh2 (and openssl) for iOS