Lines Matching defs:tlsa
186 dns_rdata_tlsa_t *tlsa = source;
189 REQUIRE(tlsa->common.rdtype == type);
190 REQUIRE(tlsa->common.rdclass == rdclass);
195 RETERR(uint8_tobuffer(tlsa->usage, target));
196 RETERR(uint8_tobuffer(tlsa->selector, target));
197 RETERR(uint8_tobuffer(tlsa->match, target));
199 return (mem_tobuffer(target, tlsa->data, tlsa->length));
204 dns_rdata_tlsa_t *tlsa = target;
210 tlsa->common.rdclass = rdata->rdclass;
211 tlsa->common.rdtype = rdata->type;
212 ISC_LINK_INIT(&tlsa->common, link);
216 tlsa->usage = uint8_fromregion(®ion);
218 tlsa->selector = uint8_fromregion(®ion);
220 tlsa->match = uint8_fromregion(®ion);
222 tlsa->length = region.length;
224 tlsa->data = mem_maybedup(mctx, region.base, region.length);
225 if (tlsa->data == NULL)
228 tlsa->mctx = mctx;
234 dns_rdata_tlsa_t *tlsa = source;
236 REQUIRE(tlsa != NULL);
238 if (tlsa->mctx == NULL)
241 if (tlsa->data != NULL)
242 isc_mem_free(tlsa->mctx, tlsa->data);
243 tlsa->mctx = NULL;