From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Fri, 11 Apr 2025 13:00:34 +0000 (+0200) Subject: [3.13] gh-131127: Minimal build support on systems using LibreSSL (GH-131128) (GH... X-Git-Tag: v3.13.4~297 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88c1ca9eba585be27b3420c9d637e47479fa1542;p=thirdparty%2FPython%2Fcpython.git [3.13] gh-131127: Minimal build support on systems using LibreSSL (GH-131128) (GH-132392) (cherry picked from commit 1b49c8c71b90bfa97df5633e2bbf51d4a6e22a57) Co-authored-by: Collin Funk --- 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 index 000000000000..e8dfbf5f423c --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-03-11-21-08-46.gh-issue-131127.whcVdY.rst @@ -0,0 +1 @@ +Systems using LibreSSL now successfully build. diff --git a/Modules/_ssl.c b/Modules/_ssl.c index 53a2802f878e..aa846f686414 100644 --- a/Modules/_ssl.c +++ b/Modules/_ssl.c @@ -4744,7 +4744,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;