blob: 1f7dba4933348172d9417f829b63b6a0832c52aa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
diff -urN Python-3.10.14.orig/Modules/_ssl.c Python-3.10.14/Modules/_ssl.c
--- Python-3.10.14.orig/Modules/_ssl.c 2024-03-21 19:04:50.129880414 +0100
+++ Python-3.10.14/Modules/_ssl.c 2024-03-21 19:48:07.073067455 +0100
@@ -4519,7 +4519,7 @@
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;
@@ -4548,6 +4548,7 @@
}
return ret;
}
+#endif
static STACK_OF(X509_OBJECT) *
X509_STORE_get1_objects(X509_STORE *store)
@@ -4561,7 +4562,6 @@
X509_STORE_unlock(store);
return ret;
}
-#endif
PyDoc_STRVAR(PySSLContext_sni_callback_doc,
"Set a callback that will be called when a server name is provided by the SSL/TLS client in the SNI extension.\n\
|