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 20dfe5b180a28fc9ac1e3908110d20dfd955b48d..99ca7d02a6e7b4c4cbc73de8d4806edb5b2b4cfc 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