aboutsummaryrefslogtreecommitdiff
path: root/security/hitch
diff options
context:
space:
mode:
authorBernard Spil <brnrd@FreeBSD.org>2017-02-13 14:28:19 +0000
committerBernard Spil <brnrd@FreeBSD.org>2017-02-13 14:28:19 +0000
commitb584ce29cabab2ad459daa2327ac04041b6459ba (patch)
treec8d401c15b9265729f50fc2a1ce7ce63cff2a004 /security/hitch
parent2c8aa849bba22e1a7d9368f22caa386224d076d2 (diff)
downloadports-b584ce29cabab2ad459daa2327ac04041b6459ba.tar.gz
ports-b584ce29cabab2ad459daa2327ac04041b6459ba.zip
security/hitch: Fix build with LibreSSL
- Add upstream patch PR: 217029 Obtained from: https://github.com/varnish/hitch/commit/cc92c25 Approved by: zi (maintainer)
Notes
Notes: svn path=/head/; revision=433993
Diffstat (limited to 'security/hitch')
-rw-r--r--security/hitch/files/patch-src_hitch.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/security/hitch/files/patch-src_hitch.c b/security/hitch/files/patch-src_hitch.c
new file mode 100644
index 000000000000..dd237048b64c
--- /dev/null
+++ b/security/hitch/files/patch-src_hitch.c
@@ -0,0 +1,22 @@
+From cc92c25a5fcbc1d3e4ebb8771fe87d961f2079bf Mon Sep 17 00:00:00 2001
+From: Vanilla Hsu <vanilla@fatpipi.com>
+Date: Sat, 14 Jan 2017 09:36:57 +0800
+Subject: [PATCH] Fix building with libressl.
+
+---
+ src/hitch.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/hitch.c b/src/hitch.c
+index 5b48680..03b4580 100644
+--- src/hitch.c.orig 2016-12-22 13:48:49 UTC
++++ src/hitch.c
+@@ -683,7 +683,7 @@ load_privatekey(SSL_CTX *ctx, const char
+ return NULL;
+ }
+
+-#if OPENSSL_VERSION_NUMBER < 0x10100000L
++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
+ #define SSL_CTX_get_default_passwd_cb(ctx) (ctx->default_passwd_callback)
+ #define SSL_CTX_get_default_passwd_cb_userdata(ctx) (ctx->default_passwd_callback_userdata)
+ #endif