summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2018-07-05 08:45:48 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2018-07-05 08:45:48 +0300
commitf5ac8b22a4f0f1afc68156fe106014c711038d27 (patch)
tree8e60af3f5398763a8fce01c0c5347aa950536d8b
parente3010abb5b5ba0935fb2dc7f861ef38fa5433245 (diff)
tor: libressl patch
-rw-r--r--net-vpn/tor/files/libressl.patch17
-rw-r--r--net-vpn/tor/tor-scm.ebuild3
2 files changed, 20 insertions, 0 deletions
diff --git a/net-vpn/tor/files/libressl.patch b/net-vpn/tor/files/libressl.patch
new file mode 100644
index 0000000..e448031
--- /dev/null
+++ b/net-vpn/tor/files/libressl.patch
@@ -0,0 +1,17 @@
+diff --git a/src/lib/crypt_ops/crypto_hkdf.c b/src/lib/crypt_ops/crypto_hkdf.c
+index 0200d0fe9..30e276d5d 100644
+--- a/src/lib/crypt_ops/crypto_hkdf.c
++++ b/src/lib/crypt_ops/crypto_hkdf.c
+@@ -19,10 +19,10 @@
+
+ #include <openssl/opensslv.h>
+
+-#if OPENSSL_VERSION_NUMBER >= OPENSSL_V_SERIES(1,1,0)
++/*#if OPENSSL_VERSION_NUMBER >= OPENSSL_V_SERIES(1,1,0)
+ #define HAVE_OPENSSL_HKDF 1
+ #include <openssl/kdf.h>
+-#endif
++#endif */
+
+ #include <string.h>
+
diff --git a/net-vpn/tor/tor-scm.ebuild b/net-vpn/tor/tor-scm.ebuild
index 8fedd4d..e2f6d30 100644
--- a/net-vpn/tor/tor-scm.ebuild
+++ b/net-vpn/tor/tor-scm.ebuild
@@ -37,6 +37,9 @@ pkg_setup() {
enewuser tor -1 -1 /var/lib/tor tor
}
+PATCHES=(
+ "${FILESDIR}"/libressl.patch
+)
src_prepare() {
./autogen.sh
default