mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-13 17:59:06 +08:00
14 lines
705 B
Diff
14 lines
705 B
Diff
|
diff --git a/adapters/x509_openssl.c b/adapters/x509_openssl.c
|
||
|
index 5a9e5ac2..bb946c2d 100644
|
||
|
--- a/adapters/x509_openssl.c
|
||
|
+++ b/adapters/x509_openssl.c
|
||
|
@@ -75,7 +75,7 @@ static int load_certificate_chain(SSL_CTX* ssl_ctx, const char* certificate)
|
||
|
// certificates.
|
||
|
|
||
|
/* Codes_SRS_X509_OPENSSL_07_006: [ If successful x509_openssl_add_ecc_credentials shall to import each certificate in the cert chain. ] */
|
||
|
-#if (OPENSSL_VERSION_NUMBER >= 0x10100000L) && (OPENSSL_VERSION_NUMBER < 0x20000000L)
|
||
|
+#if (OPENSSL_VERSION_NUMBER >= 0x10100000L)
|
||
|
SSL_CTX_clear_extra_chain_certs(ssl_ctx);
|
||
|
#else
|
||
|
if (ssl_ctx->extra_certs != NULL)
|