diff options
author | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2017-01-21 07:57:33 +0200 |
---|---|---|
committer | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2017-02-03 10:28:14 +0200 |
commit | 2c8d0764de87037ce52656e13b36de5d9876aeaa (patch) | |
tree | e52bc75ffee5bc10b4185b0532432d070be3e175 /main/libasteriskssl.c | |
parent | 0478c1f76a7bb51274901a8d709f2b45e339aec9 (diff) |
openssl 1.1 support: use OPENSSL_VERSION_NUMBER
Use OPENSSL_VERSION_NUMBER instead of OPENSSL_API_COMPAT to detect
the openssl 1.1 API.
Change-Id: I4e448f55ef516aedf6ad154037c35577a421a458
Diffstat (limited to 'main/libasteriskssl.c')
-rw-r--r-- | main/libasteriskssl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/libasteriskssl.c b/main/libasteriskssl.c index 9905b150c..36982e2be 100644 --- a/main/libasteriskssl.c +++ b/main/libasteriskssl.c @@ -72,7 +72,7 @@ static void ssl_lock(int mode, int n, const char *file, int line) } } -#if !defined(OPENSSL_API_COMPAT) || OPENSSL_API_COMPAT < 0x10100000L +#if !defined(OPENSSL_VERSION_NUMBER) || OPENSSL_VERSION_NUMBER < 0x10100000L int SSL_library_init(void) { #if defined(AST_DEVMODE) @@ -114,7 +114,7 @@ void ERR_free_strings(void) { /* we can't allow this to be called, ever */ } -#endif /* !defined(OPENSSL_API_COMPAT) || OPENSSL_API_COMPAT < 0x10100000L */ +#endif /* !defined(OPENSSL_VERSION_NUMBER) || OPENSSL_VERSION_NUMBER < 0x10100000L */ #endif /* HAVE_OPENSSL */ |