]> git.bitcoin.ninja Git - dnssec-prover/commit
Ignore spurious `RRSig`s which sign `DNSKEY`s with a ZSK
authorMatt Corallo <git@bluematt.me>
Tue, 9 Jul 2024 20:33:37 +0000 (20:33 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 9 Jul 2024 20:52:09 +0000 (20:52 +0000)
commitcc7d4e144873bbb8b37d48057642bb9b7ce1de22
treec16af44024d202c4b5b151f71014a6edbe4cfa50
parentff1c89350d118fb3583664720785ec1c93dbe175
Ignore spurious `RRSig`s which sign `DNSKEY`s with a ZSK

There's no reason to include an `RRSig` signing `DNSKEY`s with a
ZSK - validators only care about the KSK signing `DNSKEY`s, hence
*Key*-Signing Key. However, OVH appears to include such signatures
anyway, which we must ignore.

Here we do so by pre-filtering the `RRSig`s we try to validate by
key tag before calling `verify_rrsig`. This causes us to calculate
the key tag a few extra times, but that's not a huge deal.
src/validation.rs