Remove the call to OPENSSL_init_crypto() which is not needed. I have a segmentation fault when the process exits.

This commit is contained in:
alegon01 2019-03-12 08:52:06 +01:00
parent 728d099a53
commit 31831c300b
1 changed files with 0 additions and 8 deletions

View File

@ -583,14 +583,6 @@ int main(int argc, char * argv[])
#ifdef ENABLE_OPENSSL
#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
OPENSSL_config(NULL);
#endif
#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CRYPTO_STRINGS
| OPENSSL_INIT_ADD_ALL_CIPHERS
| OPENSSL_INIT_ADD_ALL_DIGESTS
| OPENSSL_INIT_LOAD_CONFIG,
NULL);
#else
/* OpenSSL magic */
OpenSSL_add_all_algorithms();
OPENSSL_malloc_init();