]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
look for LIBRESSL_VERSION_NUMBER as well
authorMark Andrews <marka@isc.org>
Tue, 24 Jul 2018 08:22:29 +0000 (18:22 +1000)
committerMark Andrews <marka@isc.org>
Tue, 24 Jul 2018 08:22:29 +0000 (18:22 +1000)
lib/isc/sha2.c

index d531eab98a35502a8f4fde92bd066491534e03bd..f5249e637a63a08217ffdecaabb9a5702a9f40b2 100644 (file)
@@ -18,7 +18,7 @@
 #include <isc/string.h>
 #include <isc/util.h>
 
-#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)