]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Honour --ftp-ssl-control on ftps:// URLs to allow encrypted control and
authorDan Fandrich <dan@coneharvesters.com>
Wed, 7 Mar 2007 22:42:05 +0000 (22:42 +0000)
committerDan Fandrich <dan@coneharvesters.com>
Wed, 7 Mar 2007 22:42:05 +0000 (22:42 +0000)
unencrypted data connections.

CHANGES
lib/url.c

diff --git a/CHANGES b/CHANGES
index 2d707386000fa6667ad40013b9c5f575330aec20..38ca3c14eb1b80b34ac0326d83527035c93d1fa8 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -6,6 +6,14 @@
 
                                   Changelog
 
+Dan F (7 March 2007)
+- Honour --ftp-ssl-control on ftps:// URLs to allow encrypted control and
+  unencrypted data connections.
+
+Dan F (6 March 2007)
+- Fixed a couple of improper pointer uses detected by valgrind in test
+  cases 181 & 216.
+
 Daniel (2 March 2007)
 - Robert A. Monat and Shmulik Regev helped out to fix the new */Makefile.vc8
   makefiles that are included in the source release archives, generated from
index 87a07736edd33a1642a7e0e13fb2c3e33008f8ee..b80d79239bfc5cfbd653d97083ce3b9eab578589 100644 (file)
--- a/lib/url.c
+++ b/lib/url.c
@@ -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