From 3e4ad49f7008c7693984d7d95b7705664569683e Mon Sep 17 00:00:00 2001 From: Soner Tari Date: Mon, 5 Aug 2019 14:19:35 +0300 Subject: [PATCH] Fix LibreSSL version for OPENSSL_NO_SHA0, SHA-0 support was removed in LIBRESSL_VERSION_NUMBER >= 0x20030001L --- ssl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssl.h b/ssl.h index 92ca2dd..4ba2dd7 100644 --- a/ssl.h +++ b/ssl.h @@ -79,7 +79,7 @@ * because OPENSSL_VERSION_NUMBER in LibreSSL is always 0x20000000L, * hence OPENSSL_VERSION_NUMBER >= 0x10100000L condition is always satisfied */ -#if ((OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)) || (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x20900000L)) && !defined(OPENSSL_NO_SHA0) +#if ((OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)) || (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER >= 0x20030001L)) && !defined(OPENSSL_NO_SHA0) #define OPENSSL_NO_SHA0 #endif