Lines Matching refs:dlv
203 dns_rdata_dlv_t *dlv = source;
207 REQUIRE(dlv->common.rdtype == type);
208 REQUIRE(dlv->common.rdclass == rdclass);
209 switch (dlv->digest_type) {
211 REQUIRE(dlv->length == ISC_SHA1_DIGESTLENGTH);
214 REQUIRE(dlv->length == ISC_SHA256_DIGESTLENGTH);
221 RETERR(uint16_tobuffer(dlv->key_tag, target));
222 RETERR(uint8_tobuffer(dlv->algorithm, target));
223 RETERR(uint8_tobuffer(dlv->digest_type, target));
225 return (mem_tobuffer(target, dlv->digest, dlv->length));
230 dns_rdata_dlv_t *dlv = target;
237 dlv->common.rdclass = rdata->rdclass;
238 dlv->common.rdtype = rdata->type;
239 ISC_LINK_INIT(&dlv->common, link);
243 dlv->key_tag = uint16_fromregion(®ion);
245 dlv->algorithm = uint8_fromregion(®ion);
247 dlv->digest_type = uint8_fromregion(®ion);
249 dlv->length = region.length;
251 dlv->digest = mem_maybedup(mctx, region.base, region.length);
252 if (dlv->digest == NULL)
255 dlv->mctx = mctx;
261 dns_rdata_dlv_t *dlv = source;
263 REQUIRE(dlv != NULL);
264 REQUIRE(dlv->common.rdtype == 32769);
266 if (dlv->mctx == NULL)
269 if (dlv->digest != NULL)
270 isc_mem_free(dlv->mctx, dlv->digest);
271 dlv->mctx = NULL;