Lines Matching refs:cert
33 dns_cert_t cert;
48 RETTOK(dns_cert_fromtext(&cert, &token.value.as_textregion));
49 RETERR(uint16_tobuffer(cert, target));
172 dns_rdata_cert_t *cert = source;
176 REQUIRE(cert->common.rdtype == type);
177 REQUIRE(cert->common.rdclass == rdclass);
182 RETERR(uint16_tobuffer(cert->type, target));
183 RETERR(uint16_tobuffer(cert->key_tag, target));
184 RETERR(uint8_tobuffer(cert->algorithm, target));
186 return (mem_tobuffer(target, cert->certificate, cert->length));
191 dns_rdata_cert_t *cert = target;
198 cert->common.rdclass = rdata->rdclass;
199 cert->common.rdtype = rdata->type;
200 ISC_LINK_INIT(&cert->common, link);
204 cert->type = uint16_fromregion(®ion);
206 cert->key_tag = uint16_fromregion(®ion);
208 cert->algorithm = uint8_fromregion(®ion);
210 cert->length = region.length;
212 cert->certificate = mem_maybedup(mctx, region.base, region.length);
213 if (cert->certificate == NULL)
216 cert->mctx = mctx;
222 dns_rdata_cert_t *cert = source;
224 REQUIRE(cert != NULL);
225 REQUIRE(cert->common.rdtype == 37);
227 if (cert->mctx == NULL)
230 if (cert->certificate != NULL)
231 isc_mem_free(cert->mctx, cert->certificate);
232 cert->mctx = NULL;