From 7671aba67d7c6851c7c7fdf020f5e54a4138311b Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Tue, 24 Jul 2018 18:22:29 +1000 Subject: [PATCH] look for LIBRESSL_VERSION_NUMBER as well --- lib/isc/sha2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/isc/sha2.c b/lib/isc/sha2.c index d531eab98a..f5249e637a 100644 --- a/lib/isc/sha2.c +++ b/lib/isc/sha2.c @@ -18,7 +18,7 @@ #include #include -#if OPENSSL_VERSION_NUMBER < 0x10100000L +#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) #define EVP_MD_CTX_new() &(context->_ctx) #define EVP_MD_CTX_free(ptr) EVP_MD_CTX_cleanup(ptr) #define EVP_MD_CTX_reset(c) EVP_MD_CTX_cleanup(c)