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)