summaryrefslogtreecommitdiff
path: root/pkg/transmission/patch
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/transmission/patch')
-rw-r--r--pkg/transmission/patch/0001-Add-support-for-libressl.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/pkg/transmission/patch/0001-Add-support-for-libressl.patch b/pkg/transmission/patch/0001-Add-support-for-libressl.patch
new file mode 100644
index 00000000..02b63448
--- /dev/null
+++ b/pkg/transmission/patch/0001-Add-support-for-libressl.patch
@@ -0,0 +1,25 @@
+From 3cfa61174c54ae5c1d93438e02f7e6a863674dae Mon Sep 17 00:00:00 2001
+From: Michael Forney <mforney@mforney.org>
+Date: Fri, 2 Feb 2018 23:24:39 -0800
+Subject: [PATCH] Add support for libressl
+
+---
+ libtransmission/crypto-utils-openssl.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/libtransmission/crypto-utils-openssl.c b/libtransmission/crypto-utils-openssl.c
+index 16a37b205..39cc06cbf 100644
+--- a/libtransmission/crypto-utils-openssl.c
++++ b/libtransmission/crypto-utils-openssl.c
+@@ -230,7 +230,7 @@ tr_rc4_process (tr_rc4_ctx_t handle,
+ ****
+ ***/
+
+-#if OPENSSL_VERSION_NUMBER < 0x10100000
++#if OPENSSL_VERSION_NUMBER < 0x10100000 || defined(LIBRESSL_VERSION_NUMBER)
+ static inline int
+ DH_set0_pqg (DH * dh,
+ BIGNUM * p,
+--
+2.16.1
+