]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Check dnssec-policy nsec3param iterations limit
authorMark Andrews <marka@isc.org>
Wed, 21 Apr 2021 01:57:46 +0000 (11:57 +1000)
committerMark Andrews <marka@isc.org>
Thu, 29 Apr 2021 07:44:46 +0000 (17:44 +1000)
(cherry picked from commit aa26cde2aea459d682f6f609a7c902ef9a7a35eb)

bin/tests/system/checkconf/bad-kasp-iterations.conf [new file with mode: 0644]
bin/tests/system/checkconf/good-kasp-iterations.conf [new file with mode: 0644]

diff --git a/bin/tests/system/checkconf/bad-kasp-iterations.conf b/bin/tests/system/checkconf/bad-kasp-iterations.conf
new file mode 100644 (file)
index 0000000..041ca76
--- /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.
+ */
+
+dnssec-policy too-many-iterations {
+       nsec3param iterations 151;
+};
diff --git a/bin/tests/system/checkconf/good-kasp-iterations.conf b/bin/tests/system/checkconf/good-kasp-iterations.conf
new file mode 100644 (file)
index 0000000..e197957
--- /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.
+ */
+
+dnssec-policy max-iterations {
+       nsec3param iterations 150;
+};