Error the build if DANE included but DNSSEC not available
authorJeremy Harris <jgh146exb@wizmail.org>
Tue, 25 Nov 2014 17:11:50 +0000 (17:11 +0000)
committerJeremy Harris <jgh146exb@wizmail.org>
Tue, 25 Nov 2014 17:11:50 +0000 (17:11 +0000)
src/src/dane.c

index 20dfe5b..99ca7d0 100644 (file)
@@ -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