gh-139929: fix incorrect OpenSSL version-based guard in _ssl.c (GH-139945)
fix OpenSSL version-based guards
This commit is contained in:
@@ -937,7 +937,7 @@ newPySSLSocket(PySSLContext *sslctx, PySocketSockObject *sock,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* bpo43522 and OpenSSL < 1.1.1l: copy hostflags manually */
|
/* bpo43522 and OpenSSL < 1.1.1l: copy hostflags manually */
|
||||||
#if OPENSSL_VERSION < 0x101010cf
|
#if OPENSSL_VERSION_NUMBER < 0x101010cf
|
||||||
X509_VERIFY_PARAM *ssl_verification_params = SSL_get0_param(self->ssl);
|
X509_VERIFY_PARAM *ssl_verification_params = SSL_get0_param(self->ssl);
|
||||||
X509_VERIFY_PARAM *ssl_ctx_verification_params = SSL_CTX_get0_param(ctx);
|
X509_VERIFY_PARAM *ssl_ctx_verification_params = SSL_CTX_get0_param(ctx);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user