aboutsummaryrefslogtreecommitdiffstats
path: root/community/stunnel/libressl-2.7.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2018-04-05 15:03:59 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2018-04-06 05:19:29 +0000
commitd296edbee3843ff7756054b5ba48bc0acbd91d94 (patch)
tree63bb2562baabbd537dd9eb22d6b4b247de82eb69 /community/stunnel/libressl-2.7.patch
parentf32c4a1cf2cd732bd6d2bdc48583aef51c312be8 (diff)
downloadaports-d296edbee3843ff7756054b5ba48bc0acbd91d94.tar.bz2
aports-d296edbee3843ff7756054b5ba48bc0acbd91d94.tar.xz
community/stunnel: rebuild against libressl-2.7
Diffstat (limited to 'community/stunnel/libressl-2.7.patch')
-rw-r--r--community/stunnel/libressl-2.7.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/community/stunnel/libressl-2.7.patch b/community/stunnel/libressl-2.7.patch
new file mode 100644
index 0000000000..7287c49370
--- /dev/null
+++ b/community/stunnel/libressl-2.7.patch
@@ -0,0 +1,26 @@
+diff --git a/src/ctx.c b/src/ctx.c
+index b54fdbd..ef9aca1 100644
+--- a/src/ctx.c
++++ b/src/ctx.c
+@@ -398,7 +398,7 @@ NOEXPORT int ecdh_init(SERVICE_OPTIONS *section) {
+ /**************************************** 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 --git a/src/verify.c b/src/verify.c
+index f9b9105..3b61b79 100644
+--- a/src/verify.c
++++ b/src/verify.c
+@@ -353,7 +353,7 @@ NOEXPORT int cert_check_local(X509_STORE_CTX *callback_ctx) {
+ cert=X509_STORE_CTX_get_current_cert(callback_ctx);
+ subject=X509_get_subject_name(cert);
+
+-#if OPENSSL_VERSION_NUMBER<0x10100006L
++#if OPENSSL_VERSION_NUMBER<0x10100006L || defined(LIBRESSL_VERSION_NUMBER)
+ #define X509_STORE_CTX_get1_certs X509_STORE_get1_certs
+ #endif
+ /* modern API allows retrieving multiple matching certificates */