mirror of
https://github.com/curl/curl.git
synced 2024-12-27 06:59:43 +08:00
openssl: auto-detect SSL_R_TLSV13_ALERT_CERTIFICATE_REQUIRED
OpenSSL 1.1.1 defines this macro, but no ealier version, or any of the
popular forks (yet). Use the macro itself to detect its presence,
replacing the hard-wired fork-specific conditions.
This way the feature will enable automatically when forks implement it,
while also shorter and possibly requiring less future maintenance.
Follow-up to 94241a9e78
#6721
Reviewed-by: Jay Satiro
Closes #11617
This commit is contained in:
parent
b0bb86c1e9
commit
00a70cca74
@ -3903,11 +3903,7 @@ static CURLcode ossl_connect_step2(struct Curl_cfilter *cf,
|
||||
error_buffer */
|
||||
strcpy(error_buffer, "SSL certificate verification failed");
|
||||
}
|
||||
#if (OPENSSL_VERSION_NUMBER >= 0x10101000L && \
|
||||
!defined(LIBRESSL_VERSION_NUMBER) && \
|
||||
!defined(OPENSSL_IS_BORINGSSL) && \
|
||||
!defined(OPENSSL_IS_AWSLC))
|
||||
|
||||
#if defined(SSL_R_TLSV13_ALERT_CERTIFICATE_REQUIRED)
|
||||
/* SSL_R_TLSV13_ALERT_CERTIFICATE_REQUIRED is only available on
|
||||
OpenSSL version above v1.1.1, not LibreSSL, BoringSSL, or AWS-LC */
|
||||
else if((lib == ERR_LIB_SSL) &&
|
||||
|
Loading…
Reference in New Issue
Block a user