]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
add named-checkconf tests for dnskey-sig-validity at range limits
authorMark Andrews <marka@isc.org>
Thu, 24 Oct 2019 03:13:39 +0000 (14:13 +1100)
committerMark Andrews <marka@isc.org>
Thu, 24 Oct 2019 12:16:21 +0000 (23:16 +1100)
CHANGES
bin/tests/system/checkconf/good-dnskey-validity-3660.conf [new file with mode: 0644]
bin/tests/system/checkconf/good-dnskey-validity-zero.conf [new file with mode: 0644]

diff --git a/CHANGES b/CHANGES
index 6abd05682c043ae3884e7c63e0945faeba244126..6d89938cbd2214be159b2a7a8732d07d61f43046 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+5304.  [bug]           "dnskey-sig-validity 0;" was not being accepted.
+                       [GL #876]
+
 5303.  [placeholder]
 
 5302.  [bug]           Fix checking that "dnstap-output" is defined when
diff --git a/bin/tests/system/checkconf/good-dnskey-validity-3660.conf b/bin/tests/system/checkconf/good-dnskey-validity-3660.conf
new file mode 100644 (file)
index 0000000..2a69951
--- /dev/null
@@ -0,0 +1,14 @@
+/*
+ * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * See the COPYRIGHT file distributed with this work for additional
+ * information regarding copyright ownership.
+ */
+
+options {
+       dnskey-sig-validity 3660;       /* maximum value 10 years */
+};
diff --git a/bin/tests/system/checkconf/good-dnskey-validity-zero.conf b/bin/tests/system/checkconf/good-dnskey-validity-zero.conf
new file mode 100644 (file)
index 0000000..3f89670
--- /dev/null
@@ -0,0 +1,14 @@
+/*
+ * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * See the COPYRIGHT file distributed with this work for additional
+ * information regarding copyright ownership.
+ */
+
+options {
+       dnskey-sig-validity 0;  /* 0 is disabled */
+};