diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2016-05-11 10:21:12 -0400 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2016-05-11 10:24:05 -0400 |
commit | 59e2b59bdca8190353478c9432a44c04d9d485b5 (patch) | |
tree | 1abe1379a6817015064f11f719ff8d47d31be0c1 /net-misc/stunnel | |
parent | dev-python/fabric: Bump (diff) | |
download | gentoo-59e2b59bdca8190353478c9432a44c04d9d485b5.tar.gz gentoo-59e2b59bdca8190353478c9432a44c04d9d485b5.tar.bz2 gentoo-59e2b59bdca8190353478c9432a44c04d9d485b5.zip |
net-misc/stunnel: add libressl compat patch, bug #582050
Package-Manager: portage-2.2.26
Diffstat (limited to 'net-misc/stunnel')
-rw-r--r-- | net-misc/stunnel/files/stunnel-compat-libressl.patch | 32 | ||||
-rw-r--r-- | net-misc/stunnel/stunnel-5.30.ebuild | 3 | ||||
-rw-r--r-- | net-misc/stunnel/stunnel-5.31.ebuild | 3 | ||||
-rw-r--r-- | net-misc/stunnel/stunnel-5.32.ebuild | 3 |
4 files changed, 41 insertions, 0 deletions
diff --git a/net-misc/stunnel/files/stunnel-compat-libressl.patch b/net-misc/stunnel/files/stunnel-compat-libressl.patch new file mode 100644 index 000000000000..5d92cab82c71 --- /dev/null +++ b/net-misc/stunnel/files/stunnel-compat-libressl.patch @@ -0,0 +1,32 @@ +Author: 80x24 <80x24@momoka.net> + +diff -ru stunnel-5.24/src/verify.c stunnel-5.24.new/src/verify.c +--- stunnel-5.24/src/verify.c 2015-09-23 18:00:08.000000000 +0800 ++++ stunnel-5.24.new/src/verify.c 2015-11-18 13:16:06.321540501 +0800 +@@ -51,7 +51,7 @@ + NOEXPORT int verify_callback(int, X509_STORE_CTX *); + NOEXPORT int verify_checks(CLI *, int, X509_STORE_CTX *); + NOEXPORT int cert_check(CLI *, X509_STORE_CTX *, int); +-#if OPENSSL_VERSION_NUMBER>=0x10002000L ++#if OPENSSL_VERSION_NUMBER>=0x10002000L && !defined(LIBRESSL_VERSION_NUMBER) + NOEXPORT int cert_check_subject(CLI *, X509_STORE_CTX *); + #endif /* OPENSSL_VERSION_NUMBER>=0x10002000L */ + NOEXPORT int cert_check_local(X509_STORE_CTX *); +@@ -280,7 +280,7 @@ + } + + if(depth==0) { /* additional peer certificate checks */ +-#if OPENSSL_VERSION_NUMBER>=0x10002000L ++#if OPENSSL_VERSION_NUMBER>=0x10002000L && !defined(LIBRESSL_VERSION_NUMBER) + if(!cert_check_subject(c, callback_ctx)) + return 0; /* reject */ + #endif /* OPENSSL_VERSION_NUMBER>=0x10002000L */ +@@ -291,7 +291,7 @@ + return 1; /* accept */ + } + +-#if OPENSSL_VERSION_NUMBER>=0x10002000L ++#if OPENSSL_VERSION_NUMBER>=0x10002000L && !defined(LIBRESSL_VERSION_NUMBER) + NOEXPORT int cert_check_subject(CLI *c, X509_STORE_CTX *callback_ctx) { + X509 *cert=X509_STORE_CTX_get_current_cert(callback_ctx); + NAME_LIST *ptr; diff --git a/net-misc/stunnel/stunnel-5.30.ebuild b/net-misc/stunnel/stunnel-5.30.ebuild index 5acb98e89aed..a5e0fdac9310 100644 --- a/net-misc/stunnel/stunnel-5.30.ebuild +++ b/net-misc/stunnel/stunnel-5.30.ebuild @@ -40,6 +40,9 @@ src_prepare() { sed -i -e "s/^install-data-local:/do-not-run-this:/" \ tools/Makefile.in || die "sed failed" + # libressl compat + epatch "${FILESDIR}"/stunnel-compat-libressl.patch + echo "CONFIG_PROTECT=\"/etc/stunnel/stunnel.conf\"" > "${T}"/20stunnel } diff --git a/net-misc/stunnel/stunnel-5.31.ebuild b/net-misc/stunnel/stunnel-5.31.ebuild index 4eac53ed941b..6fb712f83c96 100644 --- a/net-misc/stunnel/stunnel-5.31.ebuild +++ b/net-misc/stunnel/stunnel-5.31.ebuild @@ -40,6 +40,9 @@ src_prepare() { sed -i -e "s/^install-data-local:/do-not-run-this:/" \ tools/Makefile.in || die "sed failed" + # libressl compat + epatch "${FILESDIR}"/stunnel-compat-libressl.patch + echo "CONFIG_PROTECT=\"/etc/stunnel/stunnel.conf\"" > "${T}"/20stunnel } diff --git a/net-misc/stunnel/stunnel-5.32.ebuild b/net-misc/stunnel/stunnel-5.32.ebuild index 4eac53ed941b..6fb712f83c96 100644 --- a/net-misc/stunnel/stunnel-5.32.ebuild +++ b/net-misc/stunnel/stunnel-5.32.ebuild @@ -40,6 +40,9 @@ src_prepare() { sed -i -e "s/^install-data-local:/do-not-run-this:/" \ tools/Makefile.in || die "sed failed" + # libressl compat + epatch "${FILESDIR}"/stunnel-compat-libressl.patch + echo "CONFIG_PROTECT=\"/etc/stunnel/stunnel.conf\"" > "${T}"/20stunnel } |