summaryrefslogtreecommitdiff
path: root/dev-lang/python/files/python-3.14.2-libressl.patch
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-12-08 19:18:19 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-12-08 19:18:19 +0000
commitf55a59b11094484207e26f2fa913a5dba1e19e7d (patch)
treecad6aea1d7aeb62e52de5d6eb73055b74a4a8e66 /dev-lang/python/files/python-3.14.2-libressl.patch
parente464a846492adff484251bdeefa1d58339a10a72 (diff)
downloadbaldeagleos-repo-f55a59b11094484207e26f2fa913a5dba1e19e7d.tar.gz
baldeagleos-repo-f55a59b11094484207e26f2fa913a5dba1e19e7d.tar.xz
baldeagleos-repo-f55a59b11094484207e26f2fa913a5dba1e19e7d.zip
Adding metadata
Diffstat (limited to 'dev-lang/python/files/python-3.14.2-libressl.patch')
-rw-r--r--dev-lang/python/files/python-3.14.2-libressl.patch45
1 files changed, 45 insertions, 0 deletions
diff --git a/dev-lang/python/files/python-3.14.2-libressl.patch b/dev-lang/python/files/python-3.14.2-libressl.patch
new file mode 100644
index 000000000000..edf5e4b79ddd
--- /dev/null
+++ b/dev-lang/python/files/python-3.14.2-libressl.patch
@@ -0,0 +1,45 @@
+diff '--color=auto' -urN Python-3.14.2.orig/Modules/_hashopenssl.c Python-3.14.2/Modules/_hashopenssl.c
+--- Python-3.14.2.orig/Modules/_hashopenssl.c 2025-12-07 22:18:06.285001985 +0100
++++ Python-3.14.2/Modules/_hashopenssl.c 2025-12-07 22:29:16.814061909 +0100
+@@ -44,7 +44,9 @@
+
+ #define MUNCH_SIZE INT_MAX
+
++#ifdef NID_id_scrypt
+ #define PY_OPENSSL_HAS_SCRYPT 1
++#endif
+ #if defined(NID_sha3_224) && defined(NID_sha3_256) && defined(NID_sha3_384) && defined(NID_sha3_512)
+ #define PY_OPENSSL_HAS_SHA3 1
+ #endif
+@@ -963,11 +965,15 @@
+ goto exit;
+ }
+
++#ifndef EVP_MD_FLAG_XOF
++ type = get_hashlib_state(module)->EVPtype;
++#else
+ if ((EVP_MD_flags(digest) & EVP_MD_FLAG_XOF) == EVP_MD_FLAG_XOF) {
+ type = get_hashlib_state(module)->EVPXOFtype;
+ } else {
+ type = get_hashlib_state(module)->EVPtype;
+ }
++#endif
+
+ self = newEVPobject(type);
+ if (self == NULL) {
+diff '--color=auto' -urN Python-3.14.2.orig/Modules/_ssl.c Python-3.14.2/Modules/_ssl.c
+--- Python-3.14.2.orig/Modules/_ssl.c 2025-12-07 22:18:06.288255867 +0100
++++ Python-3.14.2/Modules/_ssl.c 2025-12-07 22:30:22.406002732 +0100
+@@ -3873,7 +3873,12 @@
+ unsigned int host_flags;
+
+ ssl_verification_params = SSL_CTX_get0_param(self->ctx);
++#ifdef LIBRESSL_VERSION_NUMBER
++ host_flags = 0;
++#else
+ host_flags = X509_VERIFY_PARAM_get_hostflags(ssl_verification_params);
++#endif
++
+ return PyLong_FromUnsignedLong(host_flags);
+ }
+