libressl.diff (435B)
1 diff --git a/Modules/_ssl.c b/Modules/_ssl.c 2 index a7a278de..6e6b5775 100644 3 --- a/Modules/_ssl.c 4 +++ b/Modules/_ssl.c 5 @@ -4728,7 +4728,7 @@ _ssl__SSLContext_sni_callback_set_impl(PySSLContext *self, PyObject *value) 6 return 0; 7 } 8 9 -#if OPENSSL_VERSION_NUMBER < 0x30300000L 10 +#if OPENSSL_VERSION_NUMBER < 0x30300000L && !defined(LIBRESSL_VERSION_NUMBER) 11 static X509_OBJECT *x509_object_dup(const X509_OBJECT *obj) 12 { 13 int ok;