mirror of
https://github.com/curl/curl.git
synced 2026-08-26 17:43:31 +03:00
TLS: check connection for SSL use, not handler
Protocol handler option PROTOPT_SSL is used to setup a connection filters. Once that is done, used `Curl_conn_is_ssl()` to check if a connection uses SSL. There may be other reasons to add SSL to a connection, e.g. starttls. Closes #16034
This commit is contained in:
parent
ef3d7877d5
commit
25b445e479
11 changed files with 21 additions and 19 deletions
|
|
@ -3163,7 +3163,7 @@ static CURLcode ftp_connect(struct Curl_easy *data,
|
|||
|
||||
PINGPONG_SETUP(pp, ftp_statemachine, ftp_endofresp);
|
||||
|
||||
if(conn->handler->flags & PROTOPT_SSL) {
|
||||
if(Curl_conn_is_ssl(conn, FIRSTSOCKET)) {
|
||||
/* BLOCKING */
|
||||
result = Curl_conn_connect(data, FIRSTSOCKET, TRUE, done);
|
||||
if(result)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue