diff options
author | Mark Karpilovskij <mark.karpilovskij@nic.cz> | 2019-01-15 12:41:47 +0100 |
---|---|---|
committer | Daniel Salzman <daniel.salzman@nic.cz> | 2019-01-21 14:30:17 +0100 |
commit | 6d1d86eb89e7bb20ab209920b4c7323a30f901cb (patch) | |
tree | a9fecc6c25234d8da8cb2bd8dfa96b14e8a05e0d /tests/libdnssec | |
parent | tests: improve temporary directory cleanup (diff) | |
download | knot-6d1d86eb89e7bb20ab209920b4c7323a30f901cb.tar.xz knot-6d1d86eb89e7bb20ab209920b4c7323a30f901cb.zip |
libdnssec: relax the fixed length condition for key ID
Diffstat (limited to 'tests/libdnssec')
-rw-r--r-- | tests/libdnssec/test_keyid.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/libdnssec/test_keyid.c b/tests/libdnssec/test_keyid.c index a0b723208..4c0125f1d 100644 --- a/tests/libdnssec/test_keyid.c +++ b/tests/libdnssec/test_keyid.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2018 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz> +/* Copyright (C) 2019 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -30,6 +30,7 @@ static void test_keyid_is_valid_run(const char *param, bool should_ok) static void test_keyid_is_valid(void) { test_keyid_is_valid_run(NULL, false); + test_keyid_is_valid_run("a1b1", true); test_keyid_is_valid_run("3e90c5cb1fad5f8512da2028fda3808e749d3bf", false); test_keyid_is_valid_run("9aa6dAAC706fb6fe4aceb327452a7b5FEA457544", true); test_keyid_is_valid_run("eac45c184b7f476472c16d5b0c4f0c52389848001", false); |