mirror of
https://github.com/curl/curl.git
synced 2026-08-25 18:33:42 +03:00
Renamed the CURLE_FTP_SSL_FAILED error code to CURLE_USE_SSL_FAILED.
Renamed the curl_ftpssl enum to curl_usessl and its enumerated constants, creating macros for backward compatibility.
This commit is contained in:
parent
ac6e0501c6
commit
3fa60164af
10 changed files with 62 additions and 36 deletions
|
|
@ -1734,7 +1734,7 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option,
|
|||
/*
|
||||
* Make transfers attempt to use SSL/TLS.
|
||||
*/
|
||||
data->set.ftp_ssl = (curl_ftpssl)va_arg(param, long);
|
||||
data->set.ftp_ssl = (curl_usessl)va_arg(param, long);
|
||||
break;
|
||||
|
||||
case CURLOPT_FTPSSLAUTH:
|
||||
|
|
@ -2948,7 +2948,7 @@ static CURLcode setup_connection_internals(struct SessionHandle *data,
|
|||
#ifdef USE_SSL
|
||||
conn->protocol |= PROT_FTPS|PROT_SSL;
|
||||
/* send data securely unless specifically requested otherwise */
|
||||
conn->ssl[SECONDARYSOCKET].use = data->set.ftp_ssl != CURLFTPSSL_CONTROL;
|
||||
conn->ssl[SECONDARYSOCKET].use = data->set.ftp_ssl != CURLUSESSL_CONTROL;
|
||||
port = PORT_FTPS;
|
||||
#else
|
||||
failf(data, LIBCURL_NAME
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue