Fix LibreSSL compatibility

This commit is contained in:
2016-12-30 08:51:49 +01:00
parent 3c048f0d56
commit d7960b463f

View File

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