summaryrefslogtreecommitdiffstats
path: root/Modules/_ssl.c
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2023-06-01 16:42:18 (GMT)
committerGitHub <noreply@github.com>2023-06-01 16:42:18 (GMT)
commitede89af605b1c0442353435ad22195c16274f65d (patch)
treee78ea003cf7cb1d2bec557594555470d16ccaf15 /Modules/_ssl.c
parenta241003d048f33c9072d47217aa6e28beb7ac54f (diff)
downloadcpython-ede89af605b1c0442353435ad22195c16274f65d.zip
cpython-ede89af605b1c0442353435ad22195c16274f65d.tar.gz
cpython-ede89af605b1c0442353435ad22195c16274f65d.tar.bz2
gh-103142: Upgrade binary builds and CI to OpenSSL 1.1.1u (#105174)
Upgrade builds to OpenSSL 1.1.1u. This OpenSSL version addresses a pile if less-urgent CVEs since 1.1.1t. The Mac/BuildScript/build-installer.py was already updated. Also updates _ssl_data_111.h from OpenSSL 1.1.1u, _ssl_data_300.h from 3.0.9, and adds a new _ssl_data_31.h file from 3.1.1 along with the ssl.c code to use it. Manual edits to the _ssl_data_300.h file prevent it from removing any existing definitions in case those exist in some peoples builds and were important (avoiding regressions during backporting). backports of this prior to 3.12 will not include the openssl 3.1 header.
Diffstat (limited to 'Modules/_ssl.c')
-rw-r--r--Modules/_ssl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c
index 59fd401..de90a4a 100644
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -116,7 +116,9 @@ static void _PySSLFixErrno(void) {
#endif
/* Include generated data (error codes) */
-#if (OPENSSL_VERSION_NUMBER >= 0x30000000L)
+#if (OPENSSL_VERSION_NUMBER >= 0x30100000L)
+#include "_ssl_data_31.h"
+#elif (OPENSSL_VERSION_NUMBER >= 0x30000000L)
#include "_ssl_data_300.h"
#elif (OPENSSL_VERSION_NUMBER >= 0x10101000L) && !defined(LIBRESSL_VERSION_NUMBER)
#include "_ssl_data_111.h"