Lines Matching refs:nsec
20 #include <dns/nsec.h>
201 dns_nsec_typepresent(dns_rdata_t *nsec, dns_rdatatype_t type) {
207 REQUIRE(nsec != NULL);
208 REQUIRE(nsec->type == dns_rdatatype_nsec);
211 result = dns_rdata_tostruct(nsec, &nsecstruct, NULL);
303 dns_rdata_nsec_t nsec;
348 "ignoring parent nsec");
357 "ignoring child nsec");
366 "nsec proves name exists (owner) data=%d",
383 (*logit)(arg, ISC_LOG_DEBUG(3), "ignoring parent nsec");
387 result = dns_rdata_tostruct(&rdata, &nsec, NULL);
390 relation = dns_name_fullcompare(&nsec.next, name, &order, &nlabels);
392 dns_rdata_freestruct(&nsec);
394 "ignoring nsec matches next name");
398 if (order < 0 && !dns_name_issubdomain(nsecname, &nsec.next)) {
402 dns_rdata_freestruct(&nsec);
404 "ignoring nsec because name is past end of range");
410 "nsec proves name exist (empty)");
411 dns_rdata_freestruct(&nsec);
424 labels = dns_name_countlabels(&nsec.next);
425 dns_name_getlabelsequence(&nsec.next, labels - nlabels,
431 dns_rdata_freestruct(&nsec);
437 dns_rdata_freestruct(&nsec);
438 (*logit)(arg, ISC_LOG_DEBUG(3), "nsec range ok");