]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
mark 'dnssec-lookaside' obsolete in parser
authorEvan Hunt <each@isc.org>
Wed, 7 Aug 2019 16:13:33 +0000 (09:13 -0700)
committerEvan Hunt <each@isc.org>
Fri, 9 Aug 2019 16:18:02 +0000 (09:18 -0700)
bin/tests/system/checkconf/deprecated.conf
bin/tests/system/checkconf/tests.sh
bin/tests/system/checkconf/warn-dlv-dlv.example.com.conf [moved from bin/tests/system/checkconf/good-dlv-dlv.example.com.conf with 100% similarity]
lib/isccfg/namedconf.c

index f080af4087bfff7dcc2c1db0b67e63413292707b..d4f30a0b0cea1523b8f232ae35acea2038e7c08d 100644 (file)
@@ -11,7 +11,6 @@
 
 options {
        dnssec-validation yes;
-       dnssec-lookaside . trust-anchor dlv.example.com;
 };
 
 trusted-keys {
index d41247a903d4936ecefc0082ca6ca83c4744b27f..94646ab35dfbaa46bee0cf5549a65d03879be4ce 100644 (file)
@@ -130,7 +130,6 @@ n=`expr $n + 1`
 echo_i "checking named-checkconf deprecate warnings ($n)"
 ret=0
 $CHECKCONF deprecated.conf > checkconf.out$n.1 2>&1
-grep "option 'dnssec-lookaside' is deprecated" < checkconf.out$n.1 > /dev/null || ret=1
 grep "option 'managed-keys' is deprecated" < checkconf.out$n.1 > /dev/null || ret=1
 grep "option 'trusted-keys' is deprecated" < checkconf.out$n.1 > /dev/null || ret=1
 if [ $ret != 0 ]; then echo_i "failed"; fi
@@ -389,6 +388,7 @@ n=`expr $n + 1`
 echo_i "check that 'dnssec-lookaside auto;' generates a warning ($n)"
 ret=0
 $CHECKCONF warn-dlv-auto.conf > checkconf.out$n 2>/dev/null || ret=1
+grep "option 'dnssec-lookaside' is obsolete and should be removed" < checkconf.out$n > /dev/null || ret=1
 grep "dnssec-lookaside 'auto' is no longer supported" < checkconf.out$n > /dev/null || ret=1
 if [ $ret != 0 ]; then echo_i "failed"; ret=1; fi
 status=`expr $status + $ret`
@@ -397,17 +397,18 @@ n=`expr $n + 1`
 echo_i "check that 'dnssec-lookaside . trust-anchor dlv.isc.org;' generates a warning ($n)"
 ret=0
 $CHECKCONF warn-dlv-dlv.isc.org.conf > checkconf.out$n 2>/dev/null || ret=1
+grep "option 'dnssec-lookaside' is obsolete and should be removed" < checkconf.out$n > /dev/null || ret=1
 grep "dlv.isc.org has been shut down" < checkconf.out$n > /dev/null || ret=1
 if [ $ret != 0 ]; then echo_i "failed"; ret=1; fi
 status=`expr $status + $ret`
 
 n=`expr $n + 1`
-echo_i "check that 'dnssec-lookaside . trust-anchor dlv.example.com;' generates only a deprecate warning ($n)"
+echo_i "check that 'dnssec-lookaside . trust-anchor dlv.example.com;' generates a warning ($n)"
 ret=0
-$CHECKCONF good-dlv-dlv.example.com.conf > checkconf.out$n 2>/dev/null || ret=1
+$CHECKCONF warn-dlv-dlv.example.com.conf > checkconf.out$n 2>/dev/null || ret=1
 lines=$(wc -l < checkconf.out$n)
 if [ $lines != 1 ]; then ret=1; fi
-grep "option 'dnssec-lookaside' is deprecated" < checkconf.out$n > /dev/null || ret=1
+grep "option 'dnssec-lookaside' is obsolete and should be removed" < checkconf.out$n > /dev/null || ret=1
 if [ $ret != 0 ]; then echo_i "failed"; ret=1; fi
 status=`expr $status + $ret`
 
index bf7e3a5bca66505fe2d87517953e69228400dd57..67c23dd89ab89ea99eef157256d419ceecb17f63 100644 (file)
@@ -1876,7 +1876,7 @@ view_clauses[] = {
        { "dnssec-accept-expired", &cfg_type_boolean, 0 },
        { "dnssec-enable", &cfg_type_boolean, CFG_CLAUSEFLAG_OBSOLETE },
        { "dnssec-lookaside", &cfg_type_lookaside,
-         CFG_CLAUSEFLAG_MULTI|CFG_CLAUSEFLAG_DEPRECATED },
+         CFG_CLAUSEFLAG_MULTI|CFG_CLAUSEFLAG_OBSOLETE },
        { "dnssec-must-be-secure",  &cfg_type_mustbesecure,
          CFG_CLAUSEFLAG_MULTI },
        { "dnssec-validation", &cfg_type_boolorauto, 0 },