summaryrefslogtreecommitdiff
path: root/lang/python312/files/libressl/patch-Modules___ssl.c
blob: d6e370820c0e4b3cd105afce8da024a18f73c588 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- Modules/_ssl.c.orig	2024-12-03 18:42:41 UTC
+++ Modules/_ssl.c
@@ -4469,7 +4469,7 @@ set_sni_callback(PySSLContext *self, PyObject *arg, vo
     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;