mirror of
https://github.com/curl/curl.git
synced 2026-08-25 11:23:39 +03:00
Honour --ftp-ssl-control on ftps:// URLs to allow encrypted control and
unencrypted data connections.
This commit is contained in:
parent
389a15a867
commit
85daec253c
2 changed files with 10 additions and 1 deletions
|
|
@ -3124,7 +3124,8 @@ static CURLcode CreateConnection(struct SessionHandle *data,
|
|||
if(strequal(conn->protostr, "FTPS")) {
|
||||
#ifdef USE_SSL
|
||||
conn->protocol |= PROT_FTPS|PROT_SSL;
|
||||
conn->ssl[SECONDARYSOCKET].use = TRUE; /* send data securely */
|
||||
/* send data securely unless specifically requested otherwise */
|
||||
conn->ssl[SECONDARYSOCKET].use = data->set.ftp_ssl != CURLFTPSSL_CONTROL;
|
||||
port = PORT_FTPS;
|
||||
#else
|
||||
failf(data, LIBCURL_NAME
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue