Skip to content
Snippets Groups Projects
Commit 2385aa5d authored by Jan Kadlec's avatar Jan Kadlec
Browse files

tests-extra: no_resign: Only allow RRSIGs for SOA and NSEC

parent 655af13c
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,11 @@ def only_nsec_changed(server, zone, serial):
for rr in msg.answer:
if rr.rdtype not in [dns.rdatatype.SOA, dns.rdatatype.NSEC, dns.rdatatype.RRSIG]:
return False
if rr.rdtype == dns.rdatatype.RRSIG:
if (not rr.match(rr.name, rr.rdclass, dns.rdatatype.RRSIG, dns.rdatatype.NSEC)) and \
(not rr.match(rr.name, rr.rdclass, dns.rdatatype.RRSIG, dns.rdatatype.SOA)):
# RRSIG covering something else than NSEC or SOA.
return False
return True
t = Test()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment