tor: Fix build breakage after openssl update
This commit is contained in:
parent
5646f1b259
commit
c032139479
14
packages/tor/src-common-compat_openssl.h.patch
Normal file
14
packages/tor/src-common-compat_openssl.h.patch
Normal file
@ -0,0 +1,14 @@
|
||||
diff -u -r ../tor-0.3.4.8/src/common/compat_openssl.h ./src/common/compat_openssl.h
|
||||
--- ../tor-0.3.4.8/src/common/compat_openssl.h 2018-06-15 21:20:53.000000000 +0000
|
||||
+++ ./src/common/compat_openssl.h 2018-09-12 04:22:24.387770893 +0000
|
||||
@@ -28,10 +28,6 @@
|
||||
#define OPENSSL_1_1_API
|
||||
#endif /* OPENSSL_VERSION_NUMBER >= OPENSSL_V_SERIES(1,1,0) && ... */
|
||||
|
||||
-#ifndef OPENSSL_VERSION
|
||||
-#define OPENSSL_VERSION SSLEAY_VERSION
|
||||
-#endif
|
||||
-
|
||||
#ifndef OPENSSL_1_1_API
|
||||
#define OpenSSL_version(v) SSLeay_version(v)
|
||||
#define OpenSSL_version_num() SSLeay()
|
11
packages/tor/src-common-crypto_rand.c.patch
Normal file
11
packages/tor/src-common-crypto_rand.c.patch
Normal file
@ -0,0 +1,11 @@
|
||||
diff -u -r ../tor-0.3.4.8/src/common/crypto_rand.c ./src/common/crypto_rand.c
|
||||
--- ../tor-0.3.4.8/src/common/crypto_rand.c 2018-06-15 21:20:53.000000000 +0000
|
||||
+++ ./src/common/crypto_rand.c 2018-09-12 04:25:23.741656806 +0000
|
||||
@@ -33,6 +33,7 @@
|
||||
|
||||
DISABLE_GCC_WARNING(redundant-decls)
|
||||
#include <openssl/rand.h>
|
||||
+#include <openssl/sha.h>
|
||||
ENABLE_GCC_WARNING(redundant-decls)
|
||||
|
||||
#if __GNUC__ && GCC_VERSION >= 402
|
Loading…
Reference in New Issue
Block a user