]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fix kasp test set_keytime
authorMatthijs Mekking <matthijs@isc.org>
Wed, 1 Jul 2020 11:19:24 +0000 (13:19 +0200)
committerMatthijs Mekking <matthijs@isc.org>
Wed, 1 Jul 2020 20:42:29 +0000 (22:42 +0200)
While the creation and publication times of the various keys
in this policy are nearly at the same time there is a chance that
one key is created a second later than the other.

The `set_keytimes_algorithm_policy` mistakenly set the keytimes
for KEY3 based of the "published" time from KEY2.

bin/tests/system/kasp/tests.sh

index 5528d5b8e6f9461ab52a7159e0f3c3cfa4da1c15..5f92cf7f5edd44781fa324f88043e85eb1f91822 100644 (file)
@@ -1370,8 +1370,8 @@ set_keytimes_algorithm_policy() {
 
        # Second ZSK (KEY3).
        created=$(key_get KEY3 CREATED)
-       set_keytime    "KEY3" "PUBLISHED" "${published}"
-       set_keytime    "KEY3" "ACTIVE"    "${published}"
+       set_keytime    "KEY3" "PUBLISHED" "${created}"
+       set_keytime    "KEY3" "ACTIVE"    "${created}"
        # Key was pregenerated.
        if [ "$1" == "pregenerated" ]; then
                keyfile=$(key_get KEY3 BASEFILE)