diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c index 1f735e0014..737c2f7e14 100644 --- a/lib/vtls/openssl.c +++ b/lib/vtls/openssl.c @@ -1753,7 +1753,7 @@ static int ossl_init(void) static void ossl_cleanup(void) { #if (OPENSSL_VERSION_NUMBER >= 0x10100000L) && \ - !defined(LIBRESSL_VERSION_NUMBER) + (!defined(LIBRESSL_VERSION_NUMBER) || LIBRESSL_VERSION_NUMBER >= 0x2070000fL) /* OpenSSL 1.1 deprecates all these cleanup functions and turns them into no-ops in OpenSSL 1.0 compatibility mode */ #else