mirror of
https://github.com/curl/curl.git
synced 2024-12-21 06:50:10 +08:00
openldap: fix STARTTLS
It was not working anymore since introduction of connection filters. Also do not attempt to recover from a failing TLS negotiation with CURLUSESSL_TRY. Closes #12610
This commit is contained in:
parent
d16d18cf64
commit
4b6d44f6e9
@ -793,10 +793,13 @@ static CURLcode oldap_connecting(struct Curl_easy *data, bool *done)
|
|||||||
result = oldap_perform_bind(data, OLDAP_BIND);
|
result = oldap_perform_bind(data, OLDAP_BIND);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
result = Curl_ssl_cfilter_add(data, conn, FIRSTSOCKET);
|
||||||
|
if(result)
|
||||||
|
break;
|
||||||
FALLTHROUGH();
|
FALLTHROUGH();
|
||||||
case OLDAP_TLS:
|
case OLDAP_TLS:
|
||||||
result = oldap_ssl_connect(data, OLDAP_TLS);
|
result = oldap_ssl_connect(data, OLDAP_TLS);
|
||||||
if(result && data->set.use_ssl != CURLUSESSL_TRY)
|
if(result)
|
||||||
result = oldap_map_error(code, CURLE_USE_SSL_FAILED);
|
result = oldap_map_error(code, CURLE_USE_SSL_FAILED);
|
||||||
else if(ssl_installed(conn)) {
|
else if(ssl_installed(conn)) {
|
||||||
conn->bits.tls_upgraded = TRUE;
|
conn->bits.tls_upgraded = TRUE;
|
||||||
|
Loading…
Reference in New Issue
Block a user