From: Mark Andrews Date: Wed, 20 Mar 2019 00:41:51 +0000 (+1100) Subject: add #include X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eac1d734fc6d885b202324499e953671f8814395;p=thirdparty%2Fbind9.git add #include (cherry picked from commit 98a37c9aba90052424a2629667edf344fd9d786c) --- diff --git a/lib/dns/tests/tsig_test.c b/lib/dns/tests/tsig_test.c index 0b2cd14d120..107eb87b8f0 100644 --- a/lib/dns/tests/tsig_test.c +++ b/lib/dns/tests/tsig_test.c @@ -24,10 +24,9 @@ #define UNIT_TESTING #include -#include - #include #include +#include #include #include @@ -580,7 +579,6 @@ algallocated_test(void **state) { #ifndef PK11_MD5_DISABLE assert_false(dns__tsig_algallocated(DNS_TSIG_HMACMD5_NAME)); #endif - assert_false(dns__tsig_algallocated(DNS_TSIG_HMACMD5_NAME)); assert_false(dns__tsig_algallocated(DNS_TSIG_HMACSHA1_NAME)); assert_false(dns__tsig_algallocated(DNS_TSIG_HMACSHA224_NAME)); assert_false(dns__tsig_algallocated(DNS_TSIG_HMACSHA256_NAME)); diff --git a/lib/isc/hmacmd5.c b/lib/isc/hmacmd5.c index 0031afb024c..2e72c4db9a1 100644 --- a/lib/isc/hmacmd5.c +++ b/lib/isc/hmacmd5.c @@ -406,5 +406,9 @@ isc_hmacmd5_check(int testing) { } #else /* !PK11_MD5_DISABLE */ + +#include + EMPTY_TRANSLATION_UNIT + #endif /* PK11_MD5_DISABLE */ diff --git a/lib/isc/md5.c b/lib/isc/md5.c index 920aed5f588..249f3da2f25 100644 --- a/lib/isc/md5.c +++ b/lib/isc/md5.c @@ -41,14 +41,13 @@ #include #include #include +#include #if PKCS11CRYPTO #include #include #endif -#include - #ifdef ISC_PLATFORM_OPENSSLHASH #if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) #define EVP_MD_CTX_new() &(ctx->_ctx) @@ -382,5 +381,9 @@ isc_md5_check(bool testing) { } #else /* !PK11_MD5_DISABLE */ + +#include + EMPTY_TRANSLATION_UNIT + #endif /* PK11_MD5_DISABLE */