From fe6f07655f3b5522dcf070681f8af5e68ab62bb0 Mon Sep 17 00:00:00 2001 From: malavan Date: Fri, 13 Aug 2021 20:02:06 +0000 Subject: [PATCH] don't use flags that aren't supported by certain versions of OPENSSL Former-commit-id: 0bfd2ea8a66c20a006311e468b57f33ad21855f6 --- src/tls.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tls.cpp b/src/tls.cpp index b2c96c497..0315962e5 100644 --- a/src/tls.cpp +++ b/src/tls.cpp @@ -149,6 +149,8 @@ void tlsInit(void) { */ #if OPENSSL_VERSION_NUMBER < 0x10100000L OPENSSL_config(NULL); + #elif OPENSSL_VERSION_NUMBER < 0x10101000L + OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CONFIG, NULL); #else OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CONFIG|OPENSSL_INIT_ATFORK, NULL); #endif