Skip to content

Commit 187588e

Browse files
[3.14] pythongh-139929: fix incorrect OpenSSL version-based guard in _ssl.c (pythonGH-139945) (python#139964)
pythongh-139929: fix incorrect OpenSSL version-based guard in `_ssl.c` (pythonGH-139945) fix OpenSSL version-based guards (cherry picked from commit cdd3eee) Co-authored-by: Bénédikt Tran <[email protected]>
1 parent 46148d1 commit 187588e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_ssl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,7 @@ newPySSLSocket(PySSLContext *sslctx, PySocketSockObject *sock,
910910
}
911911

912912
/* bpo43522 and OpenSSL < 1.1.1l: copy hostflags manually */
913-
#if OPENSSL_VERSION < 0x101010cf
913+
#if OPENSSL_VERSION_NUMBER < 0x101010cf
914914
X509_VERIFY_PARAM *ssl_verification_params = SSL_get0_param(self->ssl);
915915
X509_VERIFY_PARAM *ssl_ctx_verification_params = SSL_CTX_get0_param(ctx);
916916

0 commit comments

Comments
 (0)