summaryrefslogtreecommitdiff
path: root/dev-lang/python/files/patch-Modules__ssl_c
blob: 53adf4457336389557e8fdcdc59c6243c97b661a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
Index: Modules/_ssl.c
--- Modules/_ssl.c.orig
+++ Modules/_ssl.c
@@ -4541,7 +4541,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;