git: a554638d42ec - 2025Q2 - lang/python310: fix build with LibreSSL
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 01 Jun 2025 18:25:07 UTC
The branch 2025Q2 has been updated by vishwin:
URL: https://cgit.FreeBSD.org/ports/commit/?id=a554638d42ec92067ccd671a9adf6223cd16cfa7
commit a554638d42ec92067ccd671a9adf6223cd16cfa7
Author: Charlie Li <vishwin@FreeBSD.org>
AuthorDate: 2025-05-29 15:57:35 +0000
Commit: Charlie Li <vishwin@FreeBSD.org>
CommitDate: 2025-06-01 18:19:05 +0000
lang/python310: fix build with LibreSSL
No need to expose x509_object_dup()
(cherry picked from commit 543dd0ea26b2fb8fe4bf2b9ba70b7f948cd241a5)
---
lang/python310/files/libressl/patch-Modules___ssl.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/lang/python310/files/libressl/patch-Modules___ssl.c b/lang/python310/files/libressl/patch-Modules___ssl.c
new file mode 100644
index 000000000000..fddf9209390c
--- /dev/null
+++ b/lang/python310/files/libressl/patch-Modules___ssl.c
@@ -0,0 +1,11 @@
+--- Modules/_ssl.c.orig 2025-04-08 12:10:59 UTC
++++ Modules/_ssl.c
+@@ -4529,7 +4529,7 @@ set_sni_callback(PySSLContext *self, PyObject *arg, vo
+ 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;