]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-131127: Minimal build support on systems using LibreSSL (GH-131128)
authorCollin Funk <collin.funk1@gmail.com>
Fri, 11 Apr 2025 12:35:12 +0000 (05:35 -0700)
committerGitHub <noreply@github.com>
Fri, 11 Apr 2025 12:35:12 +0000 (15:35 +0300)
Misc/NEWS.d/next/Library/2025-03-11-21-08-46.gh-issue-131127.whcVdY.rst [new file with mode: 0644]
Modules/_ssl.c

diff --git a/Misc/NEWS.d/next/Library/2025-03-11-21-08-46.gh-issue-131127.whcVdY.rst b/Misc/NEWS.d/next/Library/2025-03-11-21-08-46.gh-issue-131127.whcVdY.rst
new file mode 100644 (file)
index 0000000..e8dfbf5
--- /dev/null
@@ -0,0 +1 @@
+Systems using LibreSSL now successfully build.
index e6bfbe46add9e97ff7ed530ae56cbd1eb66e5b38..03165ec1f3c71f696ed4194189cdb5a71a793e9b 100644 (file)
@@ -4812,7 +4812,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;