Merge pull request #344 from EQ-Alpha/fix_pbuild_ubuntu18.04

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

Former-commit-id: 1b73bc76c084c82682fa29cc9ac67880fa7e1ff9
This commit is contained in:
MalavanEQAlpha 2021-08-13 23:59:50 -04:00 committed by GitHub
commit 908a0053d5

View File

@ -149,6 +149,8 @@ void tlsInit(void) {
*/ */
#if OPENSSL_VERSION_NUMBER < 0x10100000L #if OPENSSL_VERSION_NUMBER < 0x10100000L
OPENSSL_config(NULL); OPENSSL_config(NULL);
#elif OPENSSL_VERSION_NUMBER < 0x10101000L
OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CONFIG, NULL);
#else #else
OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CONFIG|OPENSSL_INIT_ATFORK, NULL); OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CONFIG|OPENSSL_INIT_ATFORK, NULL);
#endif #endif