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

Former-commit-id: ca7342948fb12804905219ae106b4722368e9a2f
This commit is contained in:
malavan 2021-08-13 20:02:06 +00:00
parent 570224a2c4
commit 35e5e85d95

View File

@ -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