[3.13] gh-131127: Minimal build support on systems using LibreSSL (GH-131128) (GH-132392)

(cherry picked from commit 1b49c8c71b)

Co-authored-by: Collin Funk <collin.funk1@gmail.com>
This commit is contained in:
Miss Islington (bot) 2025-04-11 15:00:34 +02:00 committed by GitHub
parent 2b61f6ac39
commit 88c1ca9eba
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

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