Lines Matching defs:sig
113 dns_rdata_openpgpkey_t *sig = source;
117 REQUIRE(sig->common.rdtype == type);
118 REQUIRE(sig->common.rdclass == rdclass);
119 REQUIRE(sig->keyring != NULL && sig->length != 0);
127 return (mem_tobuffer(target, sig->keyring, sig->length));
133 dns_rdata_openpgpkey_t *sig = target;
139 sig->common.rdclass = rdata->rdclass;
140 sig->common.rdtype = rdata->type;
141 ISC_LINK_INIT(&sig->common, link);
148 sig->length = sr.length;
149 sig->keyring = mem_maybedup(mctx, sr.base, sig->length);
150 if (sig->keyring == NULL)
153 sig->mctx = mctx;
162 dns_rdata_openpgpkey_t *sig = (dns_rdata_openpgpkey_t *) source;
165 REQUIRE(sig->common.rdtype == dns_rdatatype_openpgpkey);
167 if (sig->mctx == NULL)
170 if (sig->keyring != NULL)
171 isc_mem_free(sig->mctx, sig->keyring);
172 sig->mctx = NULL;