Skip to content

Commit 88c1ca9

Browse files
[3.13] gh-131127: Minimal build support on systems using LibreSSL (GH-131128) (GH-132392)
(cherry picked from commit 1b49c8c) Co-authored-by: Collin Funk <[email protected]>
1 parent 2b61f6a commit 88c1ca9

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
@@ -4744,7 +4744,7 @@ _ssl__SSLContext_sni_callback_set_impl(PySSLContext *self, PyObject *value)
47444744
return 0;
47454745
}
47464746

4747-
#if OPENSSL_VERSION_NUMBER < 0x30300000L
4747+
#if OPENSSL_VERSION_NUMBER < 0x30300000L && !defined(LIBRESSL_VERSION_NUMBER)
47484748
static X509_OBJECT *x509_object_dup(const X509_OBJECT *obj)
47494749
{
47504750
int ok;

0 commit comments

Comments
 (0)