mirror of
https://github.com/openwrt/packages.git
synced 2026-04-15 19:02:09 +00:00
Major version bump from 3.13.9 to 3.14.3. Highlights of Python 3.14: - PEP 649: Deferred evaluation of annotations - PEP 750: Template string literals (t-strings) - PEP 758: Exception syntax simplification (no brackets needed) - PEP 765: Restrict control flow in finally blocks - PEP 779: Official free-threaded mode support - PEP 784: Zstandard compression module - UUID versions 6-8 support with faster generation - Formally verified HMAC implementation - Experimental JIT compiler support - Tail-call interpreter option for performance Full release notes: https://www.python.org/downloads/release/python-3143/ Dropped 100-test_hashlib-better-handle-support-for-SHA3.patch (upstreamed) Adapted 027-fix-host-build-libressl.patch (for X509_VERIFY_PARAM_get_hostflags() ) Refreshed other patches. Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
39 lines
1.2 KiB
Diff
39 lines
1.2 KiB
Diff
--- a/Modules/_ssl.c
|
|
+++ b/Modules/_ssl.c
|
|
@@ -74,7 +74,10 @@
|
|
# error "OPENSSL_THREADS is not defined, Python requires thread-safe OpenSSL"
|
|
#endif
|
|
|
|
-
|
|
+#ifdef LIBRESSL_VERSION_NUMBER
|
|
+/* LibreSSL does not define this for some reason, but it does implement it */
|
|
+unsigned int X509_VERIFY_PARAM_get_hostflags(X509_VERIFY_PARAM *param);
|
|
+#endif
|
|
|
|
struct py_ssl_error_code {
|
|
const char *mnemonic;
|
|
@@ -4896,7 +4899,11 @@ _ssl__SSLContext_cert_store_stats_impl(P
|
|
int x509 = 0, crl = 0, ca = 0, i;
|
|
|
|
store = SSL_CTX_get_cert_store(self->ctx);
|
|
+#if !defined(LIBRESSL_VERSION_NUMBER)
|
|
objs = X509_STORE_get1_objects(store);
|
|
+#else
|
|
+ objs = X509_STORE_get0_objects(store);
|
|
+#endif
|
|
if (objs == NULL) {
|
|
PyErr_SetString(PyExc_MemoryError, "failed to query cert store");
|
|
return NULL;
|
|
@@ -4952,7 +4959,11 @@ _ssl__SSLContext_get_ca_certs_impl(PySSL
|
|
}
|
|
|
|
store = SSL_CTX_get_cert_store(self->ctx);
|
|
+#if !defined(LIBRESSL_VERSION_NUMBER)
|
|
objs = X509_STORE_get1_objects(store);
|
|
+#else
|
|
+ objs = X509_STORE_get0_objects(store);
|
|
+#endif
|
|
if (objs == NULL) {
|
|
PyErr_SetString(PyExc_MemoryError, "failed to query cert store");
|
|
goto error;
|