Skip revoked keys when selecting DNSKEY in the validation loop

Don't select revoked keys when iterating through DNSKEYs in the DNSSEC
validation routines.
This commit is contained in:
Mark Andrews 2023-11-22 16:59:03 +11:00 committed by Michał Kępień
parent 1b3b0cef22
commit 439e16e4de
No known key found for this signature in database

View file

@ -1144,6 +1144,8 @@ select_signing_key(dns_validator_t *val, dns_rdataset_t *rdataset) {
(dns_secalg_t)dst_key_alg(val->key) &&
siginfo->keyid ==
(dns_keytag_t)dst_key_id(val->key) &&
(dst_key_flags(val->key) & DNS_KEYFLAG_REVOKE) ==
0 &&
dst_key_iszonekey(val->key))
{
if (foundold) {