mirror of
https://github.com/curl/curl.git
synced 2025-03-01 15:15:34 +08:00
openssl: return error if TLS 1.3 is requested when not supported
Previously curl would just silently ignore it if the necessary defines are not present at build-time. Reported-by: Stefan Eissing Fixes #8309 Closes #8310
This commit is contained in:
parent
e29665c775
commit
d03cb7c14a
@ -2363,10 +2363,12 @@ set_ssl_version_min_max(SSL_CTX *ctx, struct connectdata *conn)
|
||||
case CURL_SSLVERSION_TLSv1_2:
|
||||
ossl_ssl_version_min = TLS1_2_VERSION;
|
||||
break;
|
||||
#ifdef TLS1_3_VERSION
|
||||
case CURL_SSLVERSION_TLSv1_3:
|
||||
#ifdef TLS1_3_VERSION
|
||||
ossl_ssl_version_min = TLS1_3_VERSION;
|
||||
break;
|
||||
#else
|
||||
return CURLE_NOT_BUILT_IN;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user