aboutsummaryrefslogtreecommitdiff
path: root/kike.c
diff options
context:
space:
mode:
Diffstat (limited to 'kike.c')
-rw-r--r--kike.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/kike.c b/kike.c
index affb4ed..da9bdc5 100644
--- a/kike.c
+++ b/kike.c
@@ -4044,10 +4044,15 @@ main (int argc, char *argv[])
print_status (PROGRAM_NAME " " PROGRAM_VERSION " starting");
setup_signal_handlers ();
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
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 server_context ctx;
server_context_init (&ctx);