]> git.ipfire.org Git - thirdparty/bind9.git/commit
additional refactoring of dns_validator
authorEvan Hunt <each@isc.org>
Wed, 15 Feb 2023 19:32:00 +0000 (11:32 -0800)
committerOndřej Surý <ondrej@isc.org>
Fri, 17 Feb 2023 06:18:25 +0000 (07:18 +0100)
commitb4715a34a07fa9db476a58c5530eeae6e0f3df56
treeea682ca0267b7c67e7ff1cb01375cbd97727bbdb
parentda0f154bc750df345b8c5ea07d1a3c22e59002cd
additional refactoring of dns_validator

refactor validator so that the validation status object (previously
called dns_valstatus_t, which was derived from dns_validatorevent_t), is
now part of the dns_validator object.  when calling validator callbacks,
the validator itself is now sent as the argument.

(note: this necessitates caution in the callback functions that are
internal to validator.c validators spawn other validators, and it can be
confusing at times whether we need to be looking at val, val->subvalidator,
or val->parent.)
lib/dns/include/dns/validator.h
lib/dns/resolver.c
lib/dns/validator.c