RE: Connection Problems with FTPS

From: Daniel Stenberg <>
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:

               Pass a long as parameter to control what version of SSL/TLS to
               attempt to use. The available options are:

                      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.

                      Force TLSv1

                      Force SSLv2

                      Force SSLv3

  Commercial curl and libcurl Technical Support:
Received on 2005-05-12