slightly "hackish" approach to disable SSL during download if the connection
is a FTPS connection as the data transfer is then done unencrypted!
This commit is contained in:
parent
4836154cef
commit
adc0edc44b
@ -866,7 +866,14 @@ CURLcode Curl_perform(CURL *curl)
|
|||||||
if(res == CURLE_OK) {
|
if(res == CURLE_OK) {
|
||||||
res = Curl_do(conn);
|
res = Curl_do(conn);
|
||||||
if(res == CURLE_OK) {
|
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 */
|
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) {
|
if(res == CURLE_OK) {
|
||||||
/*
|
/*
|
||||||
* We must duplicate the new URL here as the connection data
|
* We must duplicate the new URL here as the connection data
|
||||||
|
Loading…
Reference in New Issue
Block a user