Lines Matching defs:tlsa
175 dns_rdata_tlsa_t *tlsa = source;
179 REQUIRE(tlsa->common.rdtype == type);
180 REQUIRE(tlsa->common.rdclass == rdclass);
185 RETERR(uint8_tobuffer(tlsa->usage, target));
186 RETERR(uint8_tobuffer(tlsa->selector, target));
187 RETERR(uint8_tobuffer(tlsa->match, target));
189 return (mem_tobuffer(target, tlsa->data, tlsa->length));
194 dns_rdata_tlsa_t *tlsa = target;
201 tlsa->common.rdclass = rdata->rdclass;
202 tlsa->common.rdtype = rdata->type;
203 ISC_LINK_INIT(&tlsa->common, link);
207 tlsa->usage = uint8_fromregion(®ion);
209 tlsa->selector = uint8_fromregion(®ion);
211 tlsa->match = uint8_fromregion(®ion);
213 tlsa->length = region.length;
215 tlsa->data = mem_maybedup(mctx, region.base, region.length);
216 if (tlsa->data == NULL)
219 tlsa->mctx = mctx;
225 dns_rdata_tlsa_t *tlsa = source;
227 REQUIRE(tlsa != NULL);
228 REQUIRE(tlsa->common.rdtype == 52);
230 if (tlsa->mctx == NULL)
233 if (tlsa->data != NULL)
234 isc_mem_free(tlsa->mctx, tlsa->data);
235 tlsa->mctx = NULL;