diff options
author | Daniel Stenberg <daniel@haxx.se> | 2015-12-10 17:30:31 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2015-12-10 17:31:37 +0100 |
commit | fa9332d3cafe9c36f7096d46633dd9c7b332ffff (patch) | |
tree | 1fc90298304a17546095965141cac01927c91a2e /lib | |
parent | 3b51652328005323f6d631ff7000e35a2f57ee76 (diff) |
openssl: adapt to 1.1.0+ name changes
Diffstat (limited to 'lib')
-rw-r--r-- | lib/vtls/openssl.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c index 551c2a88d..f1b831126 100644 --- a/lib/vtls/openssl.c +++ b/lib/vtls/openssl.c @@ -119,6 +119,12 @@ #define OPENSSL_NO_SSL2 #endif +#if OPENSSL_VERSION_NUMBER >= 0x10100000L /* 1.1.0+ removed "SSLeay" */ +#define SSLeay_add_ssl_algorithms() SSL_library_init() +#define SSLeay() OpenSSL_version_num() +#define SSLEAY_VERSION_NUMBER OPENSSL_VERSION_NUMBER +#endif + #if defined(OPENSSL_IS_BORINGSSL) #define NO_RAND_SEED 1 /* In BoringSSL OpenSSL_add_all_algorithms does nothing */ |