Skip to content

Commit 1b49c8c

Browse files
authored
gh-131127: Minimal build support on systems using LibreSSL (GH-131128)
1 parent d87e7f3 commit 1b49c8c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Systems using LibreSSL now successfully build.

Modules/_ssl.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -4812,7 +4812,7 @@ _ssl__SSLContext_sni_callback_set_impl(PySSLContext *self, PyObject *value)
48124812
return 0;
48134813
}
48144814

4815-
#if OPENSSL_VERSION_NUMBER < 0x30300000L
4815+
#if OPENSSL_VERSION_NUMBER < 0x30300000L && !defined(LIBRESSL_VERSION_NUMBER)
48164816
static X509_OBJECT *x509_object_dup(const X509_OBJECT *obj)
48174817
{
48184818
int ok;

0 commit comments

Comments
 (0)