From 5570898aca147e0e7bde470d72965d8ea8b62eee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Janouch?= Date: Sun, 1 Jan 2017 16:57:43 +0100 Subject: Fix OpenSSL 1.1 compatibility --- ponymap.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ponymap.c b/ponymap.c index 9fea7b0..a9ecd4c 100644 --- a/ponymap.c +++ b/ponymap.c @@ -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)) -- cgit v1.2.3