From fc6b96fae1afd051f9d34fa3e86169be4e05e5b2 Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Tue, 25 Nov 2014 17:11:50 +0000 Subject: [PATCH] Error the build if DANE included but DNSSEC not available --- src/src/dane.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/src/dane.c b/src/src/dane.c index 20dfe5b18..99ca7d02a 100644 --- a/src/src/dane.c +++ b/src/src/dane.c @@ -33,6 +33,11 @@ static void dummy(int x) { dummy(x-1); } # error DANE support requires that TLS support must be enabled. Abort build. # endif +/* DNSSEC support is also required */ +# ifndef RES_USE_DNSSEC +# error DANE support requires that the DNS reolver library supports DNSSEC +# endif + # ifdef USE_GNUTLS # include "dane-gnu.c" # else -- 2.25.1