]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-139929: fix incorrect OpenSSL version-based guard in `_ssl.c` (GH-139945...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 11 Oct 2025 17:59:55 +0000 (19:59 +0200)
committerGitHub <noreply@github.com>
Sat, 11 Oct 2025 17:59:55 +0000 (17:59 +0000)
gh-139929: fix incorrect OpenSSL version-based guard in `_ssl.c` (GH-139945)

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

index 6898d73b8ffb2ae708047fbb4cd82881fdb6c2b4..051efce4cfaa9948b42ef1c5d5b6bb6672f7e3c8 100644 (file)
@@ -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);