aboutsummaryrefslogtreecommitdiff
path: root/repos/extra/python/libressl.diff
diff options
context:
space:
mode:
authoremmett1 <emmett1.2miligrams@protonmail.com>2025-02-23 02:02:25 +0800
committeremmett1 <emmett1.2miligrams@protonmail.com>2025-02-23 02:02:25 +0800
commita5a291e17886e6b1b60638ca9615780cdd290fb3 (patch)
treeca4d1852330e24fde7192feb2af0f11b89b89416 /repos/extra/python/libressl.diff
parent07f449010eea94a2b443ab8fb31333367d09d3c2 (diff)
downloadalicelinux-a5a291e17886e6b1b60638ca9615780cdd290fb3.tar.gz
alicelinux-a5a291e17886e6b1b60638ca9615780cdd290fb3.zip
python: added libressl support patch
Diffstat (limited to 'repos/extra/python/libressl.diff')
-rwxr-xr-xrepos/extra/python/libressl.diff13
1 files changed, 13 insertions, 0 deletions
diff --git a/repos/extra/python/libressl.diff b/repos/extra/python/libressl.diff
new file mode 100755
index 00000000..ae5b6d37
--- /dev/null
+++ b/repos/extra/python/libressl.diff
@@ -0,0 +1,13 @@
+diff --git a/Modules/_ssl.c b/Modules/_ssl.c
+index a7a278de..6e6b5775 100644
+--- a/Modules/_ssl.c
++++ b/Modules/_ssl.c
+@@ -4728,7 +4728,7 @@ _ssl__SSLContext_sni_callback_set_impl(PySSLContext *self, PyObject *value)
+ return 0;
+ }
+
+-#if OPENSSL_VERSION_NUMBER < 0x30300000L
++#if OPENSSL_VERSION_NUMBER < 0x30300000L && !defined(LIBRESSL_VERSION_NUMBER)
+ static X509_OBJECT *x509_object_dup(const X509_OBJECT *obj)
+ {
+ int ok;