diff options
-rw-r--r-- | net-vpn/tor/files/libressl.patch | 17 | ||||
-rw-r--r-- | net-vpn/tor/tor-scm.ebuild | 3 |
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 |