gh-131127: Minimal build support on systems using LibreSSL (GH-131128)

This commit is contained in:
Collin Funk 2025-04-11 05:35:12 -07:00 committed by GitHub
parent d87e7f3529
commit 1b49c8c71b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -0,0 +1 @@
Systems using LibreSSL now successfully build.

View 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;