Skip to content

Commit 183133f

Browse files
committed
gh-131127: Fix build on systems using LibreSSL.
1 parent ebc24d5 commit 183133f

File tree

2 files changed

+2
-1
lines changed

2 files changed

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

Modules/_ssl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4787,7 +4787,7 @@ _ssl__SSLContext_sni_callback_set_impl(PySSLContext *self, PyObject *value)
47874787
return 0;
47884788
}
47894789

4790-
#if OPENSSL_VERSION_NUMBER < 0x30300000L
4790+
#if OPENSSL_VERSION_NUMBER < 0x30300000L && !defined(LIBRESSL_VERSION_NUMBER)
47914791
static X509_OBJECT *x509_object_dup(const X509_OBJECT *obj)
47924792
{
47934793
int ok;

0 commit comments

Comments
 (0)