Lines Matching defs:tlsa
196 dns_rdata_tlsa_t *tlsa = source;
198 REQUIRE(tlsa != NULL);
199 REQUIRE(tlsa->common.rdtype == type);
200 REQUIRE(tlsa->common.rdclass == rdclass);
205 RETERR(uint8_tobuffer(tlsa->usage, target));
206 RETERR(uint8_tobuffer(tlsa->selector, target));
207 RETERR(uint8_tobuffer(tlsa->match, target));
209 return (mem_tobuffer(target, tlsa->data, tlsa->length));
214 dns_rdata_tlsa_t *tlsa = target;
217 REQUIRE(tlsa != NULL);
220 REQUIRE(tlsa != NULL);
221 REQUIRE(tlsa->common.rdclass == rdata->rdclass);
222 REQUIRE(tlsa->common.rdtype == rdata->type);
223 REQUIRE(!ISC_LINK_LINKED(&tlsa->common, link));
227 tlsa->usage = uint8_fromregion(®ion);
229 tlsa->selector = uint8_fromregion(®ion);
231 tlsa->match = uint8_fromregion(®ion);
233 tlsa->length = region.length;
235 tlsa->data = mem_maybedup(mctx, region.base, region.length);
236 if (tlsa->data == NULL) {
240 tlsa->mctx = mctx;
246 dns_rdata_tlsa_t *tlsa = source;
248 REQUIRE(tlsa != NULL);
250 if (tlsa->mctx == NULL) {
254 if (tlsa->data != NULL) {
255 isc_mem_free(tlsa->mctx, tlsa->data);
257 tlsa->mctx = NULL;
269 dns_rdata_tlsa_t *tlsa = target;
272 REQUIRE(tlsa != NULL);
274 tlsa->common.rdclass = rdata->rdclass;
275 tlsa->common.rdtype = rdata->type;
276 ISC_LINK_INIT(&tlsa->common, link);
283 dns_rdata_tlsa_t *tlsa = source;
285 REQUIRE(tlsa != NULL);
286 REQUIRE(tlsa->common.rdtype == dns_rdatatype_tlsa);