aboutsummaryrefslogtreecommitdiffstats
path: root/main/irssi/libressl-2.7.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2018-04-04 19:27:09 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2018-04-06 05:19:25 +0000
commit64d1510dc0fc330b2382aaa3fdfa5024419951e7 (patch)
tree9cf1df0a497fa591a010908e236bc02f5917b73f /main/irssi/libressl-2.7.patch
parentd06b3682c5e989b066256801a821bb4137dca5b0 (diff)
downloadaports-64d1510dc0fc330b2382aaa3fdfa5024419951e7.tar.bz2
aports-64d1510dc0fc330b2382aaa3fdfa5024419951e7.tar.xz
main/irssi: rebuild against libressl-2.7
Diffstat (limited to 'main/irssi/libressl-2.7.patch')
-rw-r--r--main/irssi/libressl-2.7.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/main/irssi/libressl-2.7.patch b/main/irssi/libressl-2.7.patch
new file mode 100644
index 0000000000..f3705805f1
--- /dev/null
+++ b/main/irssi/libressl-2.7.patch
@@ -0,0 +1,22 @@
+diff --git a/src/core/network-openssl.c b/src/core/network-openssl.c
+index 9fddf07..e6de608 100644
+--- a/src/core/network-openssl.c
++++ b/src/core/network-openssl.c
+@@ -35,7 +35,7 @@
+ #include <openssl/err.h>
+
+ /* OpenSSL 1.1.0 introduced some backward-incompatible changes to the api */
+-#if (OPENSSL_VERSION_NUMBER >= 0x10100000L) && !defined(LIBRESSL_VERSION_NUMBER)
++#if (OPENSSL_VERSION_NUMBER >= 0x10100000L)
+ /* The two functions below could be already defined if OPENSSL_API_COMPAT is
+ * below the 1.1.0 version so let's do a clean start */
+ #undef X509_get_notBefore
+@@ -47,7 +47,7 @@
+
+ /* OpenSSL 1.1.0 also introduced some useful additions to the api */
+ #if (OPENSSL_VERSION_NUMBER >= 0x10002000L)
+-#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || defined (LIBRESSL_VERSION_NUMBER)
++#if (OPENSSL_VERSION_NUMBER < 0x10100000L)
+ static int X509_STORE_up_ref(X509_STORE *vfy)
+ {
+ int n;