Lines Matching refs:dnskey
212 dns_rdata_dnskey_t *dnskey = source;
216 REQUIRE(dnskey->common.rdtype == type);
217 REQUIRE(dnskey->common.rdclass == rdclass);
223 RETERR(uint16_tobuffer(dnskey->flags, target));
226 RETERR(uint8_tobuffer(dnskey->protocol, target));
229 RETERR(uint8_tobuffer(dnskey->algorithm, target));
232 return (mem_tobuffer(target, dnskey->data, dnskey->datalen));
237 dns_rdata_dnskey_t *dnskey = target;
244 dnskey->common.rdclass = rdata->rdclass;
245 dnskey->common.rdtype = rdata->type;
246 ISC_LINK_INIT(&dnskey->common, link);
253 dnskey->flags = uint16_fromregion(&sr);
259 dnskey->protocol = uint8_fromregion(&sr);
265 dnskey->algorithm = uint8_fromregion(&sr);
269 dnskey->datalen = sr.length;
270 dnskey->data = mem_maybedup(mctx, sr.base, dnskey->datalen);
271 if (dnskey->data == NULL)
274 dnskey->mctx = mctx;
280 dns_rdata_dnskey_t *dnskey = (dns_rdata_dnskey_t *) source;
283 REQUIRE(dnskey->common.rdtype == 48);
285 if (dnskey->mctx == NULL)
288 if (dnskey->data != NULL)
289 isc_mem_free(dnskey->mctx, dnskey->data);
290 dnskey->mctx = NULL;