freebsd-ports/lang/python311/files/libressl/patch-Modules___ssl.c
Charlie Li 3f76bb7c6f
lang/python311: refresh LibreSSL patches
LibreSSL 3.9 introduced X509_STORE_get1_objects(3) so modify the
preprocessor guard to account. Prior to LibreSSL < 3.9 becoming
EOL, an additional conditional was needed to copy LibreSSL 3.9's
X509_STORE_get1_objects(3) as the included implementation for
OpenSSL < 3.3 clashed with LibreSSL.

Event: ARRL/RAC Field Day 2024
PR: 279390
2024-06-24 13:56:55 -04:00

11 lines
362 B
C

--- Modules/_ssl.c.orig 2024-04-02 08:25:04 UTC
+++ 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;