summaryrefslogtreecommitdiff
path: root/opt/netsurf/libressl-3.5.patch
diff options
context:
space:
mode:
Diffstat (limited to 'opt/netsurf/libressl-3.5.patch')
-rw-r--r--opt/netsurf/libressl-3.5.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/opt/netsurf/libressl-3.5.patch b/opt/netsurf/libressl-3.5.patch
new file mode 100644
index 0000000..84c6d6e
--- /dev/null
+++ b/opt/netsurf/libressl-3.5.patch
@@ -0,0 +1,23 @@
+--- a/content/fetchers/about/certificate.c
++++ b/content/fetchers/about/certificate.c
+@@ -137,7 +137,8 @@ static nserror free_ns_cert_info(struct ns_cert_info *cinfo)
+ /* OpenSSL 1.0.x, 1.0.2, 1.1.0 and 1.1.1 API all changed
+ * LibreSSL declares its OpenSSL version as 2.1 but only supports 1.0.x API
+ */
+-#if (defined(LIBRESSL_VERSION_NUMBER) || (OPENSSL_VERSION_NUMBER < 0x1010000fL))
++#if (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x3050000fL) || \
++ (OPENSSL_VERSION_NUMBER < 0x1010000fL)
+ /* 1.0.x */
+
+ #if (defined(LIBRESSL_VERSION_NUMBER) || (OPENSSL_VERSION_NUMBER < 0x1000200fL))
+--- a/content/fetchers/curl.c
++++ b/content/fetchers/curl.c
+@@ -98,7 +98,7 @@
+ /* OpenSSL 1.0.x to 1.1.0 certificate reference counting changed
+ * LibreSSL declares its OpenSSL version as 2.1 but only supports the old way
+ */
+-#if (defined(LIBRESSL_VERSION_NUMBER) || (OPENSSL_VERSION_NUMBER < 0x1010000fL))
++#if (OPENSSL_VERSION_NUMBER < 0x1010000fL)
+ static int ns_X509_up_ref(X509 *cert)
+ {
+ cert->references++;