diff options
author | Stefan Strogin <steils@gentoo.org> | 2020-03-28 07:06:40 +0200 |
---|---|---|
committer | Stefan Strogin <steils@gentoo.org> | 2020-03-28 07:08:49 +0200 |
commit | 67bd6910efa009b8a48f7853f22bdb8d07974ff9 (patch) | |
tree | c4e0ddc1081fb8d77f4efb8f5fdf5ca927d76b86 /mail-filter/imapfilter/files | |
parent | dev-java/icedtea-bin: bump to 3.15.0 (diff) | |
download | gentoo-67bd6910efa009b8a48f7853f22bdb8d07974ff9.tar.gz gentoo-67bd6910efa009b8a48f7853f22bdb8d07974ff9.tar.bz2 gentoo-67bd6910efa009b8a48f7853f22bdb8d07974ff9.zip |
mail-filter/imapfilter: add patch for LibreSSL
Closes: https://bugs.gentoo.org/714882
Package-Manager: Portage-2.3.96, Repoman-2.3.22
Signed-off-by: Stefan Strogin <steils@gentoo.org>
Diffstat (limited to 'mail-filter/imapfilter/files')
-rw-r--r-- | mail-filter/imapfilter/files/imapfilter-2.6.16-libressl.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/mail-filter/imapfilter/files/imapfilter-2.6.16-libressl.patch b/mail-filter/imapfilter/files/imapfilter-2.6.16-libressl.patch new file mode 100644 index 000000000000..2454fc3ffb98 --- /dev/null +++ b/mail-filter/imapfilter/files/imapfilter-2.6.16-libressl.patch @@ -0,0 +1,29 @@ +From bf69bdbf674269e84b22461c50ce1016182b56d3 Mon Sep 17 00:00:00 2001 +From: Stefan Strogin <steils@gentoo.org> +Date: Sat, 28 Mar 2020 06:56:07 +0200 +Subject: [PATCH] Fix build with LibreSSL + +Bug: https://bugs.gentoo.org/714882 +Upstream-Status: Submitted +[https://github.com/lefcha/imapfilter/pull/204] +Signed-off-by: Stefan Strogin <steils@gentoo.org> +--- + src/socket.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/socket.c b/src/socket.c +index 0a1874f..03e0d21 100644 +--- a/src/socket.c ++++ b/src/socket.c +@@ -143,7 +143,7 @@ open_secure_connection(session *ssn) + goto fail; + + if (get_option_boolean("certificates")) { +-#if OPENSSL_VERSION_NUMBER >= 0x10100000L ++#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER) + SSL_set_hostflags(ssn->sslconn, + X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS); + if (!SSL_set1_host(ssn->sslconn, ssn->server)) { +-- +2.26.0 + |