Skip to content
Snippets Groups Projects
Commit adc0edc4 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

slightly "hackish" approach to disable SSL during download if the connection

is a FTPS connection as the data transfer is then done unencrypted!
parent 4836154c
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment