curl-library
FTP over SSL and curl_multi
Date: Sat, 31 Jul 2010 00:51:00 +0200
Hi,
FTP over SSL does not work with curl 7.21.0 and 7.20.1 when using the
multi interface. It kind of crashes during ssl negotiation.
The following code should reproduce the problem:
int main(int argc, char ** argv)
{
int running;
CURL* hnd = curl_easy_init();
CURLM* multi = curl_multi_init();
curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L);
curl_easy_setopt(hnd, CURLOPT_URL, "ftp://wtest.uni-rostock.de/");
curl_easy_setopt(hnd, CURLOPT_FTP_SSL, CURLFTPSSL_ALL);
curl_multi_add_handle(multi, hnd);
do
{
curl_multi_perform(multi, &running);
} while (running > 0);
curl_easy_cleanup(hnd);
curl_multi_cleanup(multi);
}
Which gives the following output:
* About to connect() to wtest.uni-rostock.de port 21 (#0)
* Trying 139.30.8.42... * Connected to wtest.uni-rostock.de
(139.30.8.42) port 21 (#0)
< 220-wtest.uni-rostock.de X2 WS_FTP Server 5.0.5 (3210201760)
< 220-********************************************
< 220-FTP-Zugang zur Aenderung der WWW Seiten
< 220-********************************************
< 220 wtest.uni-rostock.de X2 WS_FTP Server 5.0.5 (3210201760)
> AUTH SSL
< 234 SSL enabled and waiting for negotiation
* successfully set certificate verify locations:
* CAfile: none
CApath: /etc/ssl/certs/
> USER anonymous
< JFLSU
And then outputs a lot of garbage and loops forever.
Could that possibly have to do something with the change "superfluous
blocking for OpenSSL-based SSL connects and multi interface" in 7.20.1?
Thanks,
Georg
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-07-31