Lines Matching defs:sshfp
154 dns_rdata_sshfp_t *sshfp = source;
158 REQUIRE(sshfp->common.rdtype == type);
159 REQUIRE(sshfp->common.rdclass == rdclass);
164 RETERR(uint8_tobuffer(sshfp->algorithm, target));
165 RETERR(uint8_tobuffer(sshfp->digest_type, target));
167 return (mem_tobuffer(target, sshfp->digest, sshfp->length));
172 dns_rdata_sshfp_t *sshfp = target;
179 sshfp->common.rdclass = rdata->rdclass;
180 sshfp->common.rdtype = rdata->type;
181 ISC_LINK_INIT(&sshfp->common, link);
185 sshfp->algorithm = uint8_fromregion(®ion);
187 sshfp->digest_type = uint8_fromregion(®ion);
189 sshfp->length = region.length;
191 sshfp->digest = mem_maybedup(mctx, region.base, region.length);
192 if (sshfp->digest == NULL)
195 sshfp->mctx = mctx;
201 dns_rdata_sshfp_t *sshfp = source;
203 REQUIRE(sshfp != NULL);
204 REQUIRE(sshfp->common.rdtype == 44);
206 if (sshfp->mctx == NULL)
209 if (sshfp->digest != NULL)
210 isc_mem_free(sshfp->mctx, sshfp->digest);
211 sshfp->mctx = NULL;