Lines Matching defs:nsec3
54 #include <dns/nsec3.h>
106 uint64_t nsec3;
449 /* NSEC3 parameters */
548 dns_rbt_t *nsec3;
699 * "regular" RBT ("chain" field) and the root node of the NSEC3 RBT
1127 treep = &rbtdb->nsec3;
1910 result = dns_rbt_deletenode(rbtdb->nsec3, node, false);
2421 * Do we have a valid NSEC/NSEC3 chain?
2432 * Cache the nsec3 parameters.
2913 INSIST(tree == rbtdb->tree || tree == rbtdb->nsec3);
2951 if (tree == rbtdb->nsec3) {
2960 if (tree == rbtdb->nsec3) {
2990 return (findnodeintree(rbtdb, rbtdb->nsec3, name, create, nodep));
3720 dns_rdata_nsec3_t nsec3;
3740 result = dns_rdata_tostruct(&rdata, &nsec3, NULL);
3742 if (nsec3.hash == search->rbtversion->hash &&
3743 nsec3.iterations == search->rbtversion->iterations &&
3744 nsec3.salt_length == search->rbtversion->salt_length &&
3745 memcmp(nsec3.salt, search->rbtversion->salt,
3746 nsec3.salt_length) == 0)
3756 * Find node of the NSEC/NSEC3 record that is 'name'.
3871 * Find the NSEC/NSEC3 which is or before the current point on the
3872 * search chain. For NSEC3 records only NSEC3 records that match the
3893 if (tree == search->rbtdb->nsec3) {
3978 * We've found the right NSEC/NSEC3 record.
4131 tree = (options & DNS_DBFIND_FORCENSEC3) != 0 ? search.rbtdb->nsec3
4165 * The NSEC3 tree won't have empty nodes,
4321 * If the NSEC3 record doesn't match the chain
7426 * load a non-NSEC3 node in the main tree and optionally to the auxiliary NSEC
7539 * NSEC3 record owners cannot legally be wild cards.
7554 result = dns_rbt_addnode(rbtdb->nsec3, name, &node);
7689 dns_rbt_t *tree = NULL, *nsec = NULL, *nsec3 = NULL;
7748 if (header->nsec3 != 0) {
7750 base, filesize, (off_t)header->nsec3,
7752 rbt_datafixer, rbtdb, NULL, &nsec3);
7777 if (nsec3 != NULL) {
7778 dns_rbt_destroy(&rbtdb->nsec3);
7779 rbtdb->nsec3 = nsec3;
7791 if (nsec3 != NULL) {
7792 dns_rbt_destroy(&nsec3);
8000 * RBT's used in the rbtdb: tree, nsec, and nsec3, and including NodeDump
8019 header.nsec3 = (uint64_t)nsec3_location;
8075 CHECK(dns_rbt_serialize_tree(rbtfile, rbtdb->nsec3, rbt_datawriter,
8829 result = dns_rbt_create(mctx, delete_callback, rbtdb, &rbtdb->nsec3);
8867 * Add an apex node to the NSEC3 tree so that NSEC3 searches
8868 * return partial matches when there is only a single NSEC3
8872 result = dns_rbt_addnode(rbtdb->nsec3, &rbtdb->common.origin,
8881 * We need to give the nsec3 origin node the right locknum.
9588 rbtdb->nsec3, name, origin);
9596 rbtdbiter->current, rbtdb->nsec3, name, origin);
9649 result = dns_rbtnodechain_last(rbtdbiter->current, rbtdb->nsec3,
9702 result = dns_rbt_findnode(rbtdb->nsec3, name, NULL,
9721 rbtdb->nsec3, name, NULL, &node,
9827 rbtdb->nsec3, name, origin);