diff options
author | Rosen Penev <rosenp@gmail.com> | 2019-01-01 23:49:47 -0800 |
---|---|---|
committer | Rosen Penev <rosenp@gmail.com> | 2019-01-01 23:49:47 -0800 |
commit | 3449210a772b7b90e05cc7e5d2b5ac4ad6ccf6cd (patch) | |
tree | 5337f46afb703fb8dc0e855a92b7356aec6018d1 /net/ipsec-tools/patches | |
parent | 5bae7c73a767ac67428142066d74b3e056a1ff16 (diff) |
ipsec-tools: Fix compilation without deprecated OpenSSL 1.0.2 APIs
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'net/ipsec-tools/patches')
-rw-r--r-- | net/ipsec-tools/patches/020-openssl-deprecated.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/net/ipsec-tools/patches/020-openssl-deprecated.patch b/net/ipsec-tools/patches/020-openssl-deprecated.patch new file mode 100644 index 000000000..3c2cca12f --- /dev/null +++ b/net/ipsec-tools/patches/020-openssl-deprecated.patch @@ -0,0 +1,21 @@ +--- a/src/racoon/crypto_openssl.c ++++ b/src/racoon/crypto_openssl.c +@@ -1087,7 +1087,7 @@ eay_strerror() + int line, flags; + unsigned long es; + +-#if OPENSSL_VERSION_NUMBER >= 0x10100000L ++#if OPENSSL_VERSION_NUMBER >= 0x10000000L + es = 0; /* even when allowed by OPENSSL_API_COMPAT, it is defined as 0 */ + #else + es = CRYPTO_thread_id(); +--- a/src/racoon/openssl_compat.h ++++ b/src/racoon/openssl_compat.h +@@ -5,6 +5,7 @@ + #if OPENSSL_VERSION_NUMBER < 0x10100000L + + #include <openssl/rsa.h> ++#include <openssl/bn.h> + #include <openssl/dh.h> + #include <openssl/evp.h> + #include <openssl/hmac.h> |