Lines Matching defs:cert
35 dns_cert_t cert;
50 RETTOK(dns_cert_fromtext(&cert, &token.value.as_textregion));
51 RETERR(uint16_tobuffer(cert, target));
174 dns_rdata_cert_t *cert = source;
178 REQUIRE(cert->common.rdtype == type);
179 REQUIRE(cert->common.rdclass == rdclass);
184 RETERR(uint16_tobuffer(cert->type, target));
185 RETERR(uint16_tobuffer(cert->key_tag, target));
186 RETERR(uint8_tobuffer(cert->algorithm, target));
188 return (mem_tobuffer(target, cert->certificate, cert->length));
193 dns_rdata_cert_t *cert = target;
200 cert->common.rdclass = rdata->rdclass;
201 cert->common.rdtype = rdata->type;
202 ISC_LINK_INIT(&cert->common, link);
206 cert->type = uint16_fromregion(®ion);
208 cert->key_tag = uint16_fromregion(®ion);
210 cert->algorithm = uint8_fromregion(®ion);
212 cert->length = region.length;
214 cert->certificate = mem_maybedup(mctx, region.base, region.length);
215 if (cert->certificate == NULL)
218 cert->mctx = mctx;
224 dns_rdata_cert_t *cert = source;
226 REQUIRE(cert != NULL);
227 REQUIRE(cert->common.rdtype == 37);
229 if (cert->mctx == NULL)
232 if (cert->certificate != NULL)
233 isc_mem_free(cert->mctx, cert->certificate);
234 cert->mctx = NULL;