curl-and-python
RE: Connection Problems with FTPS
Date: Thu, 12 May 2005 23:50:40 +0200 (CEST)
On Thu, 12 May 2005, Jonathan Hutcherson wrote:
> How can we make the initial handshake use this option (in other words, how
> can we make the handshake use ssl2)?
The curl tool has a -2 (or --sslv2) option, the lib has a CURLOPT_SSLVERSION.
I just found out it was pretty badly documented, so I just wrote up this:
CURLOPT_SSLVERSION
Pass a long as parameter to control what version of SSL/TLS to
attempt to use. The available options are:
CURL_SSLVERSION_DEFAULT
The default action. When libcurl built with OpenSSL, this
will attempt to figure out the remote SSL protocol ver-
sion. Unfortunately there are a lot of ancient and broken
servers in use which cannot handle this technique and
will fail to connect. When libcurl is built with GnuTLS,
this will mean SSLv3.
CURL_SSLVERSION_TLSv1
Force TLSv1
CURL_SSLVERSION_SSLv2
Force SSLv2
CURL_SSLVERSION_SSLv3
Force SSLv3
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.html _______________________________________________ http://cool.haxx.se/mailman/listinfo/curl-and-pythonReceived on 2005-05-12