commit:     64fda6aa1fb153e630a159be6af44f84c69cb65b
Author:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sat May 14 15:27:43 2016 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sat May 14 15:27:43 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64fda6aa

net-misc/stunnel: fix libressl compat patch

Package-Manager: portage-2.2.26

 net-misc/stunnel/files/stunnel-compat-libressl.patch | 20 +++++++++++++++-----
 1 file changed, 15 insertions(+), 5 deletions(-)

diff --git a/net-misc/stunnel/files/stunnel-compat-libressl.patch 
b/net-misc/stunnel/files/stunnel-compat-libressl.patch
index 5d92cab..1349484 100644
--- a/net-misc/stunnel/files/stunnel-compat-libressl.patch
+++ b/net-misc/stunnel/files/stunnel-compat-libressl.patch
@@ -1,8 +1,18 @@
-Author: 80x24 <[email protected]>
-
-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
+diff -Naur stunnel-5.30.orig/src/ctx.c stunnel-5.30/src/ctx.c
+--- stunnel-5.30.orig/src/ctx.c        2016-01-15 16:45:23.000000000 +0000
++++ stunnel-5.30/src/ctx.c     2016-05-14 15:16:47.392859450 +0000
+@@ -359,7 +359,7 @@
+ /**************************************** initialize OpenSSL CONF */
+ 
+ NOEXPORT int conf_init(SERVICE_OPTIONS *section) {
+-#if OPENSSL_VERSION_NUMBER>=0x10002000L
++#if OPENSSL_VERSION_NUMBER>=0x10002000L && !defined(LIBRESSL_VERSION_NUMBER)
+     SSL_CONF_CTX *cctx;
+     NAME_LIST *curr;
+     char *cmd, *param;
+diff -Naur stunnel-5.30.orig/src/verify.c stunnel-5.30/src/verify.c
+--- stunnel-5.30.orig/src/verify.c     2016-01-15 16:45:23.000000000 +0000
++++ stunnel-5.30/src/verify.c  2016-05-14 15:16:10.369860180 +0000
 @@ -51,7 +51,7 @@
  NOEXPORT int verify_callback(int, X509_STORE_CTX *);
  NOEXPORT int verify_checks(CLI *, int, X509_STORE_CTX *);

Reply via email to