don't use flags that aren't supported by certain versions of OPENSSL

Former-commit-id: 1ae9af250513d1430160b37d24ba617551402926
This commit is contained in:
malavan committed 2021-08-16 22:49:55 +00:00
1 parent 7bb01c0241
commit 252f63ed0a
1 file changed
+2
+2
View File
@@ -190,6 +190,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