Lines Matching defs:caa
191 dns_rdata_caa_t *caa = source;
197 REQUIRE(caa->common.rdtype == type);
198 REQUIRE(caa->common.rdclass == rdclass);
199 REQUIRE(caa->tag != NULL && caa->tag_len != 0);
200 REQUIRE(caa->value != NULL);
208 RETERR(uint8_tobuffer(caa->flags, target));
213 RETERR(uint8_tobuffer(caa->tag_len, target));
218 region.base = caa->tag;
219 region.length = caa->tag_len;
228 region.base = caa->value;
229 region.length = caa->value_len;
235 dns_rdata_caa_t *caa = target;
243 caa->common.rdclass = rdata->rdclass;
244 caa->common.rdtype = rdata->type;
245 ISC_LINK_INIT(&caa->common, link);
254 caa->flags = uint8_fromregion(&sr);
262 caa->tag_len = uint8_fromregion(&sr);
268 if (sr.length < caa->tag_len)
270 caa->tag = mem_maybedup(mctx, sr.base, caa->tag_len);
271 if (caa->tag == NULL)
273 isc_region_consume(&sr, caa->tag_len);
278 caa->value_len = sr.length;
279 caa->value = mem_maybedup(mctx, sr.base, sr.length);
280 if (caa->value == NULL)
283 caa->mctx = mctx;
289 dns_rdata_caa_t *caa = (dns_rdata_caa_t *) source;
292 REQUIRE(caa->common.rdtype == dns_rdatatype_caa);
294 if (caa->mctx == NULL)
297 if (caa->tag != NULL)
298 isc_mem_free(caa->mctx, caa->tag);
299 if (caa->value != NULL)
300 isc_mem_free(caa->mctx, caa->value);
301 caa->mctx = NULL;