pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/python/cpython/commit/a126893fa80c4ee5f0bac8a84a49491c19edd511

d9af82350aeda.css" /> gh-143960: Add support for OpenSSL 3.6, drop EOL 3.2 (#143961) · python/cpython@a126893 · GitHub
Skip to content

Commit a126893

Browse files
hugovkgpshead
andauthored
gh-143960: Add support for OpenSSL 3.6, drop EOL 3.2 (#143961)
Co-authored-by: Gregory P. Smith <68491+gpshead@users.noreply.github.com>
1 parent 795d5c5 commit a126893

File tree

6 files changed

+29
-7
lines changed

6 files changed

+29
-7
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ jobs:
261261
# Keep 1.1.1w in our list despite it being upstream EOL and otherwise
262262
# unsupported as it most resembles other 1.1.1-work-a-like ssl APIs
263263
# supported by important vendors such as AWS-LC.
264-
openssl_ver: [1.1.1w, 3.0.18, 3.2.6, 3.3.5, 3.4.3, 3.5.4]
264+
openssl_ver: [1.1.1w, 3.0.18, 3.3.5, 3.4.3, 3.5.4, 3.6.0]
265265
# See Tools/ssl/make_ssl_data.py for notes on adding a new version
266266
env:
267267
OPENSSL_VER: ${{ matrix.openssl_ver }}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add support for OpenSSL 3.6, drop EOL 3.2. Patch by Hugo van Kemenade.

Modules/_ssl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ static void _PySSLFixErrno(void) {
150150
/* Include generated data (error codes) */
151151
/* See Tools/ssl/make_ssl_data.py for notes on adding a new version. */
152152
#if (OPENSSL_VERSION_NUMBER >= 0x30401000L)
153-
#include "_ssl_data_35.h"
153+
#include "_ssl_data_36.h"
154154
#elif (OPENSSL_VERSION_NUMBER >= 0x30100000L)
155155
#include "_ssl_data_340.h"
156156
#elif (OPENSSL_VERSION_NUMBER >= 0x30000000L)
Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* File generated by Tools/ssl/make_ssl_data.py */
2-
/* Generated on 2025-10-04T17:49:19.148321+00:00 */
3-
/* Generated from Git commit openssl-3.5.4-0-gc1eeb9406 */
2+
/* Generated on 2026-01-17T13:03:49.335767+00:00 */
3+
/* Generated from Git commit openssl-3.6.0-0-g7b371d80d9 */
44

55
/* generated from args.lib2errnum */
66
static struct py_ssl_library_code library_codes[] = {
@@ -1863,6 +1863,11 @@ static struct py_ssl_error_code error_codes[] = {
18631863
#else
18641864
{"NOT_KEK", 46, 123},
18651865
#endif
1866+
#ifdef CMS_R_NOT_KEM
1867+
{"NOT_KEM", ERR_LIB_CMS, CMS_R_NOT_KEM},
1868+
#else
1869+
{"NOT_KEM", 46, 197},
1870+
#endif
18661871
#ifdef CMS_R_NOT_KEY_AGREEMENT
18671872
{"NOT_KEY_AGREEMENT", ERR_LIB_CMS, CMS_R_NOT_KEY_AGREEMENT},
18681873
#else
@@ -2058,6 +2063,11 @@ static struct py_ssl_error_code error_codes[] = {
20582063
#else
20592064
{"UNKNOWN_ID", 46, 150},
20602065
#endif
2066+
#ifdef CMS_R_UNKNOWN_KDF_ALGORITHM
2067+
{"UNKNOWN_KDF_ALGORITHM", ERR_LIB_CMS, CMS_R_UNKNOWN_KDF_ALGORITHM},
2068+
#else
2069+
{"UNKNOWN_KDF_ALGORITHM", 46, 198},
2070+
#endif
20612071
#ifdef CMS_R_UNSUPPORTED_COMPRESSION_ALGORITHM
20622072
{"UNSUPPORTED_COMPRESSION_ALGORITHM", ERR_LIB_CMS, CMS_R_UNSUPPORTED_COMPRESSION_ALGORITHM},
20632073
#else
@@ -2078,6 +2088,11 @@ static struct py_ssl_error_code error_codes[] = {
20782088
#else
20792089
{"UNSUPPORTED_ENCRYPTION_TYPE", 46, 192},
20802090
#endif
2091+
#ifdef CMS_R_UNSUPPORTED_KDF_ALGORITHM
2092+
{"UNSUPPORTED_KDF_ALGORITHM", ERR_LIB_CMS, CMS_R_UNSUPPORTED_KDF_ALGORITHM},
2093+
#else
2094+
{"UNSUPPORTED_KDF_ALGORITHM", 46, 199},
2095+
#endif
20812096
#ifdef CMS_R_UNSUPPORTED_KEK_ALGORITHM
20822097
{"UNSUPPORTED_KEK_ALGORITHM", ERR_LIB_CMS, CMS_R_UNSUPPORTED_KEK_ALGORITHM},
20832098
#else
@@ -5763,6 +5778,11 @@ static struct py_ssl_error_code error_codes[] = {
57635778
#else
57645779
{"PSS_SALTLEN_TOO_SMALL", 57, 172},
57655780
#endif
5781+
#ifdef PROV_R_REPEATED_PARAMETER
5782+
{"REPEATED_PARAMETER", ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER},
5783+
#else
5784+
{"REPEATED_PARAMETER", 57, 252},
5785+
#endif
57665786
#ifdef PROV_R_REQUEST_TOO_LARGE_FOR_DRBG
57675787
{"REQUEST_TOO_LARGE_FOR_DRBG", ERR_LIB_PROV, PROV_R_REQUEST_TOO_LARGE_FOR_DRBG},
57685788
#else

Tools/ssl/make_ssl_data.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
git tag --list 'openssl-*'
1818
git switch --detach openssl-3.4.1
1919
20-
After generating the definitions, compare the result with newest pre-existing file.
21-
You can use a command like:
20+
After generating the definitions, compare the result with the newest
21+
pre-existing file. You can use a command like:
2222
2323
git diff --no-index Modules/_ssl_data_340.h Modules/_ssl_data_341.h
2424

Tools/ssl/multissltests.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,15 @@
4545
OPENSSL_OLD_VERSIONS = [
4646
"1.1.1w",
4747
"3.1.8",
48+
"3.2.6",
4849
]
4950

5051
OPENSSL_RECENT_VERSIONS = [
5152
"3.0.18",
52-
"3.2.6",
5353
"3.3.5",
5454
"3.4.3",
5555
"3.5.4",
56+
"3.6.0",
5657
# See make_ssl_data.py for notes on adding a new version.
5758
]
5859

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy