Lines Matching defs:nsec3param
196 dns_rdata_nsec3param_t *nsec3param = source;
200 REQUIRE(nsec3param->common.rdtype == type);
201 REQUIRE(nsec3param->common.rdclass == rdclass);
206 RETERR(uint8_tobuffer(nsec3param->hash, target));
207 RETERR(uint8_tobuffer(nsec3param->flags, target));
208 RETERR(uint16_tobuffer(nsec3param->iterations, target));
209 RETERR(uint8_tobuffer(nsec3param->salt_length, target));
210 RETERR(mem_tobuffer(target, nsec3param->salt,
211 nsec3param->salt_length));
218 dns_rdata_nsec3param_t *nsec3param = target;
224 nsec3param->common.rdclass = rdata->rdclass;
225 nsec3param->common.rdtype = rdata->type;
226 ISC_LINK_INIT(&nsec3param->common, link);
230 nsec3param->hash = uint8_consume_fromregion(®ion);
231 nsec3param->flags = uint8_consume_fromregion(®ion);
232 nsec3param->iterations = uint16_consume_fromregion(®ion);
234 nsec3param->salt_length = uint8_consume_fromregion(®ion);
235 nsec3param->salt = mem_maybedup(mctx, region.base,
236 nsec3param->salt_length);
237 if (nsec3param->salt == NULL)
239 isc_region_consume(®ion, nsec3param->salt_length);
241 nsec3param->mctx = mctx;
247 dns_rdata_nsec3param_t *nsec3param = source;
250 REQUIRE(nsec3param->common.rdtype == dns_rdatatype_nsec3param);
252 if (nsec3param->mctx == NULL)
255 if (nsec3param->salt != NULL)
256 isc_mem_free(nsec3param->mctx, nsec3param->salt);
257 nsec3param->mctx = NULL;