]> git.ipfire.org Git - thirdparty/bind9.git/commit
simplify validate_dnskey and seek_ds
authorEvan Hunt <each@isc.org>
Tue, 10 Sep 2019 23:53:28 +0000 (16:53 -0700)
committerEvan Hunt <each@isc.org>
Fri, 15 Nov 2019 22:26:08 +0000 (14:26 -0800)
commit3a4334636b5d734037ae5a930d736aef7a502538
tree990e2a430a1c707aef6fcda9f4c793c07fc58022
parent9119dc25fe01d9e873e0a9c6691d7d0c0ac334c9
simplify validate_dnskey and seek_ds

- pull out the code that checks whether a key was signed by a trust
  anchor into a separate function, anchor_signed().
- pull out the code that looks up a DS while validating a zone key
  into a separate function, get_dsset().
- check in create_validator() whether the sigrdataset is bound, so that
  we can always pass in &val->fsigrdataset during an insecurity proof;
  this will allow a reduction of code duplication.
lib/dns/validator.c