]> git.ipfire.org Git - thirdparty/bind9.git/commit
Add NSEC3PARAM unit test, refactor zone.c
authorMatthijs Mekking <matthijs@isc.org>
Fri, 13 Nov 2020 11:26:05 +0000 (12:26 +0100)
committerMatthijs Mekking <matthijs@isc.org>
Thu, 26 Nov 2020 09:43:59 +0000 (10:43 +0100)
commit64db30942df50ef229624d48c8bfe08bc300a528
tree4b9c5ddcaa26630faa832b3ef211678d04867fba
parent6b5d7357dfb9d695f02dabb510dbe2ea404ba241
Add NSEC3PARAM unit test, refactor zone.c

Add unit test to ensure the right NSEC3PARAM event is scheduled in
'dns_zone_setnsec3param()'.  To avoid scheduling and managing actual
tasks, split up the 'dns_zone_setnsec3param()' function in two parts:

1. 'dns__zone_lookup_nsec3param()' that will check if the requested
   NSEC3 parameters already exist, and if a new salt needs to be
   generated.

2. The actual scheduling of the new NSEC3PARAM event (if needed).
lib/dns/include/dns/result.h
lib/dns/result.c
lib/dns/tests/Makefile.am
lib/dns/tests/nsec3param_test.c [new file with mode: 0644]
lib/dns/tests/testdata/nsec3param/nsec3.db.signed [new file with mode: 0644]
lib/dns/zone.c
lib/dns/zone_p.h
util/copyrights