]> git.ipfire.org Git - thirdparty/bind9.git/commit
Detect NSEC3 salt collisions
authorMatthijs Mekking <matthijs@isc.org>
Thu, 5 Nov 2020 10:12:24 +0000 (11:12 +0100)
committerMatthijs Mekking <matthijs@isc.org>
Thu, 26 Nov 2020 14:15:05 +0000 (14:15 +0000)
commit6db879160f8784f050ae92420344190f2822bdec
tree6fd8ad6994481afd6afbb47166f53ea7fc92150c
parent734865e1102d08bc7e5d446e23fcdc7e00990fea
Detect NSEC3 salt collisions

When generating a new salt, compare it with the previous NSEC3
paremeters to ensure the new parameters are different from the
previous ones.

This moves the salt generation call from 'bin/named/*.s' to
'lib/dns/zone.c'. When setting new NSEC3 parameters, you can set a new
function parameter 'resalt' to enforce a new salt to be generated. A
new salt will also be generated if 'salt' is set to NULL.

Logging salt with zone context can now be done with 'dnssec_log',
removing the need for 'dns_nsec3_log_salt'.

(cherry picked from commit 6b5d7357dfb9d695f02dabb510dbe2ea404ba241)
CHANGES
bin/named/server.c
bin/named/zoneconf.c
doc/notes/notes-current.rst
lib/dns/include/dns/nsec3.h
lib/dns/include/dns/zone.h
lib/dns/nsec3.c
lib/dns/win32/libdns.def.in
lib/dns/zone.c