diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2007-03-07 22:42:05 +0000 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2007-03-07 22:42:05 +0000 |
commit | 85daec253cf5a6e1eb3f023e76180f553c715de8 (patch) | |
tree | b9e291ca7c796de02e6cacc2d369fc06cf3b18be /lib | |
parent | 389a15a867e6b26eaccb65d5f4bece2291c723a9 (diff) |
Honour --ftp-ssl-control on ftps:// URLs to allow encrypted control and
unencrypted data connections.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/url.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -3124,7 +3124,8 @@ static CURLcode CreateConnection(struct SessionHandle *data, if(strequal(conn->protostr, "FTPS")) { #ifdef USE_SSL conn->protocol |= PROT_FTPS|PROT_SSL; - conn->ssl[SECONDARYSOCKET].use = TRUE; /* send data securely */ + /* send data securely unless specifically requested otherwise */ + conn->ssl[SECONDARYSOCKET].use = data->set.ftp_ssl != CURLFTPSSL_CONTROL; port = PORT_FTPS; #else failf(data, LIBCURL_NAME |