diff options
author | Daniel Stenberg <daniel@haxx.se> | 2001-05-21 13:30:01 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2001-05-21 13:30:01 +0000 |
commit | adc0edc44b91fd6a88acbb53bc657e42d41444ae (patch) | |
tree | e8707b88db7942be89feea515a534469b40069d1 /lib | |
parent | 4836154cef881d6ccc7873fd30f10892560bb55e (diff) |
slightly "hackish" approach to disable SSL during download if the connection
is a FTPS connection as the data transfer is then done unencrypted!
Diffstat (limited to 'lib')
-rw-r--r-- | lib/transfer.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/transfer.c b/lib/transfer.c index 4e20e80aa..3ee2bb8bd 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -866,7 +866,14 @@ CURLcode Curl_perform(CURL *curl) if(res == CURLE_OK) { res = Curl_do(conn); if(res == CURLE_OK) { + if(conn->protocol&PROT_FTPS) + /* FTPS, disable ssl while transfering data */ + conn->ssl.use = FALSE; res = Transfer(conn); /* now fetch that URL please */ + if(conn->protocol&PROT_FTPS) + /* FTPS, enable ssl again after havving transferred data */ + conn->ssl.use = TRUE; + if(res == CURLE_OK) { /* * We must duplicate the new URL here as the connection data |