diff options
author | brnrd <brnrd@FreeBSD.org> | 2018-03-27 01:13:09 +0800 |
---|---|---|
committer | brnrd <brnrd@FreeBSD.org> | 2018-03-27 01:13:09 +0800 |
commit | 691d254ed6df477fa904fad47231268fa4d0327e (patch) | |
tree | 482a06a9f94b3e21337360169170b9d4b2fa894e /irc | |
parent | 00f32e7904e3a5821a6d8355e7ed542a01c6f5c9 (diff) | |
download | freebsd-ports-gnome-691d254ed6df477fa904fad47231268fa4d0327e.tar.gz freebsd-ports-gnome-691d254ed6df477fa904fad47231268fa4d0327e.tar.zst freebsd-ports-gnome-691d254ed6df477fa904fad47231268fa4d0327e.zip |
irc/irssi: Fix build with LibreSSL 2.7
- LibreSSL 2.7 added OpenSSL 1.1 API
PR: 226925
Submitted by: Sergey Akhmatov <sergey akhmatov ru>
Approved by: David O'Rourke <dor.bsd xm0 uk> (maintainer)
Diffstat (limited to 'irc')
-rw-r--r-- | irc/irssi/files/patch-src_core_network-openssl.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/irc/irssi/files/patch-src_core_network-openssl.c b/irc/irssi/files/patch-src_core_network-openssl.c index eadf5dbe89c6..d315768c12a4 100644 --- a/irc/irssi/files/patch-src_core_network-openssl.c +++ b/irc/irssi/files/patch-src_core_network-openssl.c @@ -1,6 +1,16 @@ ---- src/core/network-openssl.c.orig 2017-03-10 16:31:03 UTC +--- src/core/network-openssl.c.orig 2018-02-14 23:53:44 UTC +++ src/core/network-openssl.c -@@ -434,6 +434,7 @@ static GIOChannel *irssi_ssl_get_iochann +@@ -47,7 +47,8 @@ + + /* 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) || \ ++ (defined (LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL) + static int X509_STORE_up_ref(X509_STORE *vfy) + { + int n; +@@ -476,6 +477,7 @@ static GIOChannel *irssi_ssl_get_iochann if (SSL_CTX_set_cipher_list(ctx, ciphers) != 1) g_warning("No valid SSL cipher suite could be selected"); } |