aboutsummaryrefslogtreecommitdiffstats
path: root/net-p2p
diff options
context:
space:
mode:
authorcrees <crees@FreeBSD.org>2018-03-02 02:56:40 +0800
committercrees <crees@FreeBSD.org>2018-03-02 02:56:40 +0800
commit25a214d21e96a487161552b08c4cc40ec7d75d0d (patch)
tree99fa49eed08bebe4f9fd6ded2d132cdbc831c3c6 /net-p2p
parent95a8bc1b183652095a8778ac8b59e1763d7ed512 (diff)
downloadfreebsd-ports-graphics-25a214d21e96a487161552b08c4cc40ec7d75d0d.tar.gz
freebsd-ports-graphics-25a214d21e96a487161552b08c4cc40ec7d75d0d.tar.zst
freebsd-ports-graphics-25a214d21e96a487161552b08c4cc40ec7d75d0d.zip
Fix build if libressl is used instead of openssl
Submitted by: Walter Schwarzenfeld
Diffstat (limited to 'net-p2p')
-rw-r--r--net-p2p/transmission-cli/files/patch-fix-with-libressl23
1 files changed, 23 insertions, 0 deletions
diff --git a/net-p2p/transmission-cli/files/patch-fix-with-libressl b/net-p2p/transmission-cli/files/patch-fix-with-libressl
new file mode 100644
index 00000000000..bab700c3d19
--- /dev/null
+++ b/net-p2p/transmission-cli/files/patch-fix-with-libressl
@@ -0,0 +1,23 @@
+--- libtransmission/crypto-utils-openssl.c.orig 2018-03-01 00:44:45 UTC
++++ libtransmission/crypto-utils-openssl.c
+@@ -147,7 +147,7 @@ tr_sha1_final (tr_sha1_ctx_t handle,
+ ****
+ ***/
+
+-#if OPENSSL_VERSION_NUMBER < 0x0090802fL
++#if OPENSSL_VERSION_NUMBER < 0x0090802fL || defined(LIBRESSL_VERSION_NUMBER)
+
+ static EVP_CIPHER_CTX *
+ openssl_evp_cipher_context_new (void)
+@@ -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,
+
+
+