ports/lang/python312/files/libressl/patch-Modules___ssl.c
Wen Heping deb31699f1
lang/python312: add 3.12.9
What's new: https://docs.python.org/3/whatsnew/3.12.html

PR: 271673
Co-authored-by: vishwin
Differential Revision: https://reviews.freebsd.org/D49679
2025-04-07 21:59:29 -04:00

12 lines
362 B
C

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