cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-users Mailing List Archives

Reg : How to support both TLS and SSL

From: Deepesh Damodaran <deepesh_at_kerala.cc>
Date: Wed, 23 Sep 2009 05:11:14 -0700
Hi all,
 
One of our application use LIBCURL to perform FTPS transfer. Intention was to connect using either SSL or TLS.
 
However the options used are
curl_easy_setopt(curl, CURLOPT_FTP_SSL, (long)CURLFTPSSL_ALL);
curl_easy_setopt(curl, CURLOPT_FTPSSLAUTH, (long)CURLFTPAUTH_SSL);
curl_easy_setopt(curl, CURLOPT_SSLVERSION, (long)CURL_SSLVERSION_SSLv3);
As I referred the URL
http://curl.haxx.se/libcurl/c/curl_easy_setopt.html, it mentions CURLUSESSL_ALL option as "Require SSL for all communication or fail with CURLE_USE_SSL_FAILED.
But CURLFTPAUTH_SSL says - "Try "AUTH SSL" first, and only if that fails try "AUTH TLS".
 
During our testing we found "AUTH TLS" fails. So I am wondering if the 1st and 2nd options are conflicting forcing the application only to use SSL and fail if it is TLS.
 
Any opinion would be helpful.
 
Thanks,
Deepesh

 

Get Your Private & Free 6 Meg Email Space at http://www.Kerala.cc 4 ever.

-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-09-23

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET