summaryrefslogtreecommitdiff
path: root/degesch.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2016-12-28 12:40:47 +0100
committerPřemysl Janouch <p.janouch@gmail.com>2016-12-28 12:40:47 +0100
commitd86a68f510924d9afc4eec6970c68597783d245d (patch)
treebe7bc50c20cb096ed28034d486f9b19ff0ed33fb /degesch.c
parentd6be22291dca329ec1463132fe0fc314b1841b1c (diff)
downloadxK-d86a68f510924d9afc4eec6970c68597783d245d.tar.gz
xK-d86a68f510924d9afc4eec6970c68597783d245d.tar.xz
xK-d86a68f510924d9afc4eec6970c68597783d245d.zip
Add support for OpenSSL 1.1.0
Diffstat (limited to 'degesch.c')
-rw-r--r--degesch.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/degesch.c b/degesch.c
index 216ea0a..3263ae0 100644
--- a/degesch.c
+++ b/degesch.c
@@ -14009,10 +14009,15 @@ main (int argc, char *argv[])
app_context_init (&ctx);
g_ctx = &ctx;
+#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
// Bootstrap configuration, so that we can access schema items at all
register_config_modules (&ctx);