From 494c87e647fdcce5f621fb15695607c9c73dd4fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A9n=C3=A9dikt=20Tran?= <10796600+picnixz@users.noreply.github.com> Date: Sat, 11 Oct 2025 19:34:08 +0200 Subject: [PATCH] gh-139929: fix incorrect OpenSSL version-based guard in `_ssl.c` (GH-139945) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix OpenSSL version-based guards (cherry picked from commit cdd3eee7fc26538c8365dcbf2dd844ec7cdf7fb7) Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> --- Modules/_ssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/_ssl.c b/Modules/_ssl.c index 6898d73b8ffb2a..051efce4cfaa99 100644 --- a/Modules/_ssl.c +++ b/Modules/_ssl.c @@ -910,7 +910,7 @@ newPySSLSocket(PySSLContext *sslctx, PySocketSockObject *sock, } /* 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_ctx_verification_params = SSL_CTX_get0_param(ctx);