Skip to content

Commit cdd3eee

Browse files
authored
gh-139929: fix incorrect OpenSSL version-based guard in _ssl.c (GH-139945)
fix OpenSSL version-based guards
1 parent 5776d0d commit cdd3eee

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
@@ -937,7 +937,7 @@ newPySSLSocket(PySSLContext *sslctx, PySocketSockObject *sock,
937937
}
938938

939939
/* bpo43522 and OpenSSL < 1.1.1l: copy hostflags manually */
940-
#if OPENSSL_VERSION < 0x101010cf
940+
#if OPENSSL_VERSION_NUMBER < 0x101010cf
941941
X509_VERIFY_PARAM *ssl_verification_params = SSL_get0_param(self->ssl);
942942
X509_VERIFY_PARAM *ssl_ctx_verification_params = SSL_CTX_get0_param(ctx);
943943

0 commit comments

Comments
 (0)