mirror of
https://github.com/moparisthebest/curl
synced 2024-12-24 17:18:48 -05:00
openssl: acknowledge --tls-max for default version too
... previously it only used the max setting if a TLS version was also explicitly asked for. Reported-by: byte_bucket Fixes #2571 Closes #2572
This commit is contained in:
parent
3b6802cb97
commit
c5fe86804c
@ -2325,8 +2325,7 @@ static CURLcode ossl_connect_step1(struct connectdata *conn, int sockindex)
|
||||
case CURL_SSLVERSION_TLSv1:
|
||||
ctx_options |= SSL_OP_NO_SSLv2;
|
||||
ctx_options |= SSL_OP_NO_SSLv3;
|
||||
break;
|
||||
|
||||
/* FALLTHROUGH */
|
||||
case CURL_SSLVERSION_TLSv1_0:
|
||||
case CURL_SSLVERSION_TLSv1_1:
|
||||
case CURL_SSLVERSION_TLSv1_2:
|
||||
|
Loading…
Reference in New Issue
Block a user