Fix LibreSSL version for OPENSSL_NO_SHA0, SHA-0 support was removed in LIBRESSL_VERSION_NUMBER >= 0x20030001L

This commit is contained in:
Soner Tari 2019-08-05 14:19:35 +03:00
parent 08aba78815
commit 3e4ad49f70

2
ssl.h
View File

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