Fix OpenSSL 1.1 compatibility

This commit is contained in:
Přemysl Eric Janouch 2017-01-01 16:57:43 +01:00
parent 5f5d58b3da
commit 5570898aca
Signed by: p
GPG Key ID: B715679E3A361BE6

View File

@ -2115,10 +2115,15 @@ main (int argc, char *argv[])
init_terminal ();
atexit (free_terminal);
#if OPENSSL_VERSION_NUMBER < 0x10100000L || LIBRESSL_VERSION_NUMBER
SSL_library_init ();
atexit (EVP_cleanup);
SSL_load_error_strings ();
atexit (ERR_free_strings);
#else
// Cleanup is done automatically via atexit()
OPENSSL_init_ssl (0, NULL);
#endif
struct error *e = NULL;
if (!simple_config_update_from_file (&ctx.config, &e))