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

CURLFTPSSL_ALL should make sure that the transfer fails if the data connection

isn't set to encrypted properly
parent 4435e3b2
No related branches found
No related tags found
No related merge requests found
......@@ -677,12 +677,14 @@ CURLcode Curl_ftp_connect(struct connectdata *conn)
if(result)
return result;
if(ftpcode == 200)
if(ftpcode/100 == 2)
/* We have enabled SSL for the data connection! */
conn->ssl[SECONDARYSOCKET].use = TRUE;
/* FTP servers typically responds with 500 if they decide to reject
our 'P' request */
else if(data->set.ftp_ssl> CURLFTPSSL_CONTROL)
/* we failed and bails out */
return CURLE_FTP_SSL_FAILED;
}
}
......
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