Fix LibreSSL version for OPENSSL_init_crypto() support, fixes Travis build

This commit is contained in:
Soner Tari 2019-08-05 13:02:26 +03:00
parent df48b3e28d
commit 08aba78815

2
ssl.c
View File

@ -368,7 +368,7 @@ ssl_init(void)
return 0;
/* general initialization */
#if (OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)) || (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x20701000L)
#if (OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)) || (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER >= 0x20701000L)
OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CONFIG
#ifndef OPENSSL_NO_ENGINE
|OPENSSL_INIT_ENGINE_ALL_BUILTIN