| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 9cba148 commit 6a9bfee
9 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -264,7 +264,7 @@ jobs: | |||
| 264 | 264 | fail-fast: false | |
| 265 | 265 | matrix: | |
| 266 | 266 | os: [ubuntu-24.04] | |
| 267 | - openssl_ver: [3.0.15, 3.1.7, 3.2.3, 3.3.2, 3.4.0] | ||
| 267 | + openssl_ver: [3.0.16, 3.1.8, 3.2.4, 3.3.3, 3.4.1] | ||
| 268 | 268 | # See Tools/ssl/make_ssl_data.py for notes on adding a new version | |
| 269 | 269 | env: | |
| 270 | 270 | OPENSSL_VER: ${{ matrix.openssl_ver }} | |
@@ -331,7 +331,7 @@ jobs: | |||
| 331 | 331 | needs: build-context | |
| 332 | 332 | if: needs.build-context.outputs.run-tests == 'true' | |
| 333 | 333 | env: | |
| 334 | - OPENSSL_VER: 3.0.15 | ||
| 334 | + OPENSSL_VER: 3.0.16 | ||
| 335 | 335 | PYTHONSTRICTEXTENSIONBUILD: 1 | |
| 336 | 336 | steps: | |
| 337 | 337 | - uses: actions/checkout@v4 | |
@@ -450,7 +450,7 @@ jobs: | |||
| 450 | 450 | matrix: | |
| 451 | 451 | os: [ubuntu-24.04] | |
| 452 | 452 | env: | |
| 453 | - OPENSSL_VER: 3.0.15 | ||
| 453 | + OPENSSL_VER: 3.0.16 | ||
| 454 | 454 | PYTHONSTRICTEXTENSIONBUILD: 1 | |
| 455 | 455 | ASAN_OPTIONS: detect_leaks=0:allocator_may_return_null=1:handle_segv=0 | |
| 456 | 456 | steps: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -22,7 +22,7 @@ Features and minimum versions required to build CPython: | |||
| 22 | 22 | ||
| 23 | 23 | * Support for threads. | |
| 24 | 24 | ||
| 25 | - * OpenSSL 1.1.1 is the minimum version and OpenSSL 3.0.9 is the recommended | ||
| 25 | + * OpenSSL 1.1.1 is the minimum version and OpenSSL 3.0.16 is the recommended | ||
| 26 | 26 | minimum version for the :mod:`ssl` and :mod:`hashlib` extension modules. | |
| 27 | 27 | ||
| 28 | 28 | * SQLite 3.15.2 for the :mod:`sqlite3` extension module. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,2 @@ | |||
| 1 | + :mod:`ssl` can show descriptions for errors added in OpenSSL 3.4.1. | ||
| 2 | + Patch by Bénédikt Tran. | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -121,8 +121,10 @@ static void _PySSLFixErrno(void) { | |||
| 121 | 121 | ||
| 122 | 122 | /* Include generated data (error codes) */ | |
| 123 | 123 | /* See make_ssl_data.h for notes on adding a new version. */ | |
| 124 | - #if (OPENSSL_VERSION_NUMBER >= 0x30100000L) | ||
| 124 | + #if (OPENSSL_VERSION_NUMBER >= 0x30401000L) | ||
| 125 | 125 | #include "_ssl_data_34.h" | |
| 126 | + #elif (OPENSSL_VERSION_NUMBER >= 0x30100000L) | ||
| 127 | + #include "_ssl_data_340.h" | ||
| 126 | 128 | #elif (OPENSSL_VERSION_NUMBER >= 0x30000000L) | |
| 127 | 129 | #include "_ssl_data_300.h" | |
| 128 | 130 | #elif (OPENSSL_VERSION_NUMBER >= 0x10101000L) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,8 @@ | |||
| 1 | 1 | /* File generated by Tools/ssl/make_ssl_data.py */ | |
| 2 | - /* Generated on 2024-11-27T12:48:46.194048+00:00 */ | ||
| 2 | + /* Generated on 2025-03-26T13:48:34.811613+00:00 */ | ||
| 3 | 3 | /* Generated from Git commit OpenSSL_1_1_1w-0-ge04bd3433f */ | |
| 4 | + | ||
| 5 | + /* generated from args.lib2errnum */ | ||
| 4 | 6 | static struct py_ssl_library_code library_codes[] = { | |
| 5 | 7 | #ifdef ERR_LIB_ASN1 | |
| 6 | 8 | {"ASN1", ERR_LIB_ASN1}, | |
@@ -137,10 +139,10 @@ static struct py_ssl_library_code library_codes[] = { | |||
| 137 | 139 | #ifdef ERR_LIB_X509V3 | |
| 138 | 140 | {"X509V3", ERR_LIB_X509V3}, | |
| 139 | 141 | #endif | |
| 140 | - { NULL } | ||
| 142 | + {NULL, 0} /* sentinel */ | ||
| 141 | 143 | }; | |
| 142 | 144 | ||
| 143 | - | ||
| 145 | + /* generated from args.reasons */ | ||
| 144 | 146 | static struct py_ssl_error_code error_codes[] = { | |
| 145 | 147 | #ifdef ASN1_R_ADDING_OBJECT | |
| 146 | 148 | {"ADDING_OBJECT", ERR_LIB_ASN1, ASN1_R_ADDING_OBJECT}, | |
@@ -6537,6 +6539,5 @@ static struct py_ssl_error_code error_codes[] = { | |||
| 6537 | 6539 | #else | |
| 6538 | 6540 | {"WRONG_TYPE", 11, 122}, | |
| 6539 | 6541 | #endif | |
| 6540 | - { NULL } | ||
| 6542 | + {NULL, 0, 0} /* sentinel */ | ||
| 6541 | 6543 | }; | |
| 6542 | - | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,8 @@ | |||
| 1 | 1 | /* File generated by Tools/ssl/make_ssl_data.py */ | |
| 2 | - /* Generated on 2024-11-27T12:35:52.276767+00:00 */ | ||
| 3 | - /* Generated from Git commit openssl-3.4.0-0-g98acb6b028 */ | ||
| 2 | + /* Generated on 2025-03-26T13:47:34.223146+00:00 */ | ||
| 3 | + /* Generated from Git commit openssl-3.4.1-0-ga26d85337d */ | ||
| 4 | + | ||
| 5 | + /* generated from args.lib2errnum */ | ||
| 4 | 6 | static struct py_ssl_library_code library_codes[] = { | |
| 5 | 7 | #ifdef ERR_LIB_ASN1 | |
| 6 | 8 | {"ASN1", ERR_LIB_ASN1}, | |
@@ -80,9 +82,6 @@ static struct py_ssl_library_code library_codes[] = { | |||
| 80 | 82 | #ifdef ERR_LIB_KDF | |
| 81 | 83 | {"KDF", ERR_LIB_KDF}, | |
| 82 | 84 | #endif | |
| 83 | - #ifdef ERR_LIB_MASK | ||
| 84 | - {"MASK", ERR_LIB_MASK}, | ||
| 85 | - #endif | ||
| 86 | 85 | #ifdef ERR_LIB_METH | |
| 87 | 86 | {"METH", ERR_LIB_METH}, | |
| 88 | 87 | #endif | |
@@ -95,9 +94,6 @@ static struct py_ssl_library_code library_codes[] = { | |||
| 95 | 94 | #ifdef ERR_LIB_OCSP | |
| 96 | 95 | {"OCSP", ERR_LIB_OCSP}, | |
| 97 | 96 | #endif | |
| 98 | - #ifdef ERR_LIB_OFFSET | ||
| 99 | - {"OFFSET", ERR_LIB_OFFSET}, | ||
| 100 | - #endif | ||
| 101 | 97 | #ifdef ERR_LIB_OSSL_DECODER | |
| 102 | 98 | {"OSSL_DECODER", ERR_LIB_OSSL_DECODER}, | |
| 103 | 99 | #endif | |
@@ -167,10 +163,10 @@ static struct py_ssl_library_code library_codes[] = { | |||
| 167 | 163 | #ifdef ERR_LIB_X509V3 | |
| 168 | 164 | {"X509V3", ERR_LIB_X509V3}, | |
| 169 | 165 | #endif | |
| 170 | - { NULL } | ||
| 166 | + {NULL, 0} /* sentinel */ | ||
| 171 | 167 | }; | |
| 172 | 168 | ||
| 173 | - | ||
| 169 | + /* generated from args.reasons */ | ||
| 174 | 170 | static struct py_ssl_error_code error_codes[] = { | |
| 175 | 171 | #ifdef ASN1_R_ADDING_OBJECT | |
| 176 | 172 | {"ADDING_OBJECT", ERR_LIB_ASN1, ASN1_R_ADDING_OBJECT}, | |
@@ -1762,6 +1758,11 @@ static struct py_ssl_error_code error_codes[] = { | |||
| 1762 | 1758 | #else | |
| 1763 | 1759 | {"ERROR_SETTING_RECIPIENTINFO", 46, 116}, | |
| 1764 | 1760 | #endif | |
| 1761 | + #ifdef CMS_R_ERROR_UNSUPPORTED_STATIC_KEY_AGREEMENT | ||
| 1762 | + {"ERROR_UNSUPPORTED_STATIC_KEY_AGREEMENT", ERR_LIB_CMS, CMS_R_ERROR_UNSUPPORTED_STATIC_KEY_AGREEMENT}, | ||
| 1763 | + #else | ||
| 1764 | + {"ERROR_UNSUPPORTED_STATIC_KEY_AGREEMENT", 46, 196}, | ||
| 1765 | + #endif | ||
| 1765 | 1766 | #ifdef CMS_R_ESS_SIGNING_CERTID_MISMATCH_ERROR | |
| 1766 | 1767 | {"ESS_SIGNING_CERTID_MISMATCH_ERROR", ERR_LIB_CMS, CMS_R_ESS_SIGNING_CERTID_MISMATCH_ERROR}, | |
| 1767 | 1768 | #else | |
@@ -2122,25 +2123,15 @@ static struct py_ssl_error_code error_codes[] = { | |||
| 2122 | 2123 | #else | |
| 2123 | 2124 | {"BROTLI_DECODE_ERROR", 41, 102}, | |
| 2124 | 2125 | #endif | |
| 2125 | - #ifdef COMP_R_BROTLI_DEFLATE_ERROR | ||
| 2126 | - {"BROTLI_DEFLATE_ERROR", ERR_LIB_COMP, COMP_R_BROTLI_DEFLATE_ERROR}, | ||
| 2127 | - #else | ||
| 2128 | - {"BROTLI_DEFLATE_ERROR", 41, 103}, | ||
| 2129 | - #endif | ||
| 2130 | 2126 | #ifdef COMP_R_BROTLI_ENCODE_ERROR | |
| 2131 | 2127 | {"BROTLI_ENCODE_ERROR", ERR_LIB_COMP, COMP_R_BROTLI_ENCODE_ERROR}, | |
| 2132 | 2128 | #else | |
| 2133 | - {"BROTLI_ENCODE_ERROR", 41, 106}, | ||
| 2134 | - #endif | ||
| 2135 | - #ifdef COMP_R_BROTLI_INFLATE_ERROR | ||
| 2136 | - {"BROTLI_INFLATE_ERROR", ERR_LIB_COMP, COMP_R_BROTLI_INFLATE_ERROR}, | ||
| 2137 | - #else | ||
| 2138 | - {"BROTLI_INFLATE_ERROR", 41, 104}, | ||
| 2129 | + {"BROTLI_ENCODE_ERROR", 41, 103}, | ||
| 2139 | 2130 | #endif | |
| 2140 | 2131 | #ifdef COMP_R_BROTLI_NOT_SUPPORTED | |
| 2141 | 2132 | {"BROTLI_NOT_SUPPORTED", ERR_LIB_COMP, COMP_R_BROTLI_NOT_SUPPORTED}, | |
| 2142 | 2133 | #else | |
| 2143 | - {"BROTLI_NOT_SUPPORTED", 41, 105}, | ||
| 2134 | + {"BROTLI_NOT_SUPPORTED", 41, 104}, | ||
| 2144 | 2135 | #endif | |
| 2145 | 2136 | #ifdef COMP_R_ZLIB_DEFLATE_ERROR | |
| 2146 | 2137 | {"ZLIB_DEFLATE_ERROR", ERR_LIB_COMP, COMP_R_ZLIB_DEFLATE_ERROR}, | |
@@ -2160,22 +2151,22 @@ static struct py_ssl_error_code error_codes[] = { | |||
| 2160 | 2151 | #ifdef COMP_R_ZSTD_COMPRESS_ERROR | |
| 2161 | 2152 | {"ZSTD_COMPRESS_ERROR", ERR_LIB_COMP, COMP_R_ZSTD_COMPRESS_ERROR}, | |
| 2162 | 2153 | #else | |
| 2163 | - {"ZSTD_COMPRESS_ERROR", 41, 107}, | ||
| 2154 | + {"ZSTD_COMPRESS_ERROR", 41, 105}, | ||
| 2164 | 2155 | #endif | |
| 2165 | 2156 | #ifdef COMP_R_ZSTD_DECODE_ERROR | |
| 2166 | 2157 | {"ZSTD_DECODE_ERROR", ERR_LIB_COMP, COMP_R_ZSTD_DECODE_ERROR}, | |
| 2167 | 2158 | #else | |
| 2168 | - {"ZSTD_DECODE_ERROR", 41, 108}, | ||
| 2159 | + {"ZSTD_DECODE_ERROR", 41, 106}, | ||
| 2169 | 2160 | #endif | |
| 2170 | 2161 | #ifdef COMP_R_ZSTD_DECOMPRESS_ERROR | |
| 2171 | 2162 | {"ZSTD_DECOMPRESS_ERROR", ERR_LIB_COMP, COMP_R_ZSTD_DECOMPRESS_ERROR}, | |
| 2172 | 2163 | #else | |
| 2173 | - {"ZSTD_DECOMPRESS_ERROR", 41, 109}, | ||
| 2164 | + {"ZSTD_DECOMPRESS_ERROR", 41, 107}, | ||
| 2174 | 2165 | #endif | |
| 2175 | 2166 | #ifdef COMP_R_ZSTD_NOT_SUPPORTED | |
| 2176 | 2167 | {"ZSTD_NOT_SUPPORTED", ERR_LIB_COMP, COMP_R_ZSTD_NOT_SUPPORTED}, | |
| 2177 | 2168 | #else | |
| 2178 | - {"ZSTD_NOT_SUPPORTED", 41, 110}, | ||
| 2169 | + {"ZSTD_NOT_SUPPORTED", 41, 108}, | ||
| 2179 | 2170 | #endif | |
| 2180 | 2171 | #ifdef CONF_R_ERROR_LOADING_DSO | |
| 2181 | 2172 | {"ERROR_LOADING_DSO", ERR_LIB_CONF, CONF_R_ERROR_LOADING_DSO}, | |
@@ -9272,6 +9263,5 @@ static struct py_ssl_error_code error_codes[] = { | |||
| 9272 | 9263 | #else | |
| 9273 | 9264 | {"WRONG_TYPE", 11, 122}, | |
| 9274 | 9265 | #endif | |
| 9275 | - { NULL } | ||
| 9266 | + {NULL, 0, 0} /* sentinel */ | ||
| 9276 | 9267 | }; | |
| 9277 | - | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments