mirror of https://github.com/getdnsapi/getdns.git
Chase NSEC and NSEC3 with return_validation_chain
This commit is contained in:
parent
a498d29978
commit
a9dbea22ad
|
@ -20,6 +20,7 @@
|
|||
be able to parse the wire format (not released yet at time of writing)
|
||||
* Added OPENPGPKEY RR type, but no rdata fields implementation yet
|
||||
* Updated spec to version 0.508 (September 2014)
|
||||
* Also chase NSEC and NSEC3 RRSIGs with dnssec_return_validation_chain
|
||||
|
||||
* 2014-06-25: Version 0.1.3
|
||||
* libtool chage, remove -release, added -version-info
|
||||
|
|
|
@ -305,12 +305,19 @@ getdns_get_validation_chain(getdns_dns_req *dns_req,
|
|||
while (netreq) {
|
||||
size_t i;
|
||||
ldns_rr_list *answer = ldns_pkt_answer(netreq->result);
|
||||
ldns_rr_list *authority = ldns_pkt_authority(netreq->result);
|
||||
for (i = 0; i < ldns_rr_list_rr_count(answer); i++) {
|
||||
ldns_rr *rr = ldns_rr_list_rr(answer, i);
|
||||
if (ldns_rr_get_type(rr) == LDNS_RR_TYPE_RRSIG)
|
||||
launch_chain_link_lookup(chain,
|
||||
ldns_rdf2str(ldns_rr_rdf(rr, 7)));
|
||||
}
|
||||
for (i = 0; i < ldns_rr_list_rr_count(authority); i++) {
|
||||
ldns_rr *rr = ldns_rr_list_rr(authority, i);
|
||||
if (ldns_rr_get_type(rr) == LDNS_RR_TYPE_RRSIG)
|
||||
launch_chain_link_lookup(chain,
|
||||
ldns_rdf2str(ldns_rr_rdf(rr, 7)));
|
||||
}
|
||||
netreq = netreq->next;
|
||||
}
|
||||
callback_on_complete_chain(chain);
|
||||
|
|
Loading…
Reference in New Issue