summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2016-12-30 08:51:49 +0100
committerPřemysl Janouch <p.janouch@gmail.com>2016-12-30 08:51:49 +0100
commitd7960b463f8e000fd0d64b86274678975ca62658 (patch)
treecbfe96d2803dcda17ee6ecb555e3c73a2509bcc8
parent3c048f0d5674313fabe0b989fdddc3bf0ecf1437 (diff)
downloadxK-d7960b463f8e000fd0d64b86274678975ca62658.tar.gz
xK-d7960b463f8e000fd0d64b86274678975ca62658.tar.xz
xK-d7960b463f8e000fd0d64b86274678975ca62658.zip
Fix LibreSSL compatibility
-rw-r--r--common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common.c b/common.c
index a822847..1d6c1f7 100644
--- a/common.c
+++ b/common.c
@@ -37,7 +37,7 @@
static void
init_openssl (void)
{
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || LIBRESSL_VERSION_NUMBER
SSL_library_init ();
// XXX: this list is probably not complete
atexit (EVP_cleanup);