Add support for OpenSSL 1.1.0

This commit is contained in:
2016-12-28 12:40:47 +01:00
parent d6be22291d
commit d86a68f510
4 changed files with 20 additions and 1 deletions

5
kike.c
View File

@@ -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);