Lines Matching defs:pubkey
739 dst_key_t *pubkey = NULL;
752 pubkey = NULL;
754 RETERR(dns_dnssec_keyfromrdata(name, &rdata, mctx, &pubkey));
755 dst_key_setttl(pubkey, rdataset.ttl);
757 if (!is_zone_key(pubkey) ||
758 (dst_key_flags(pubkey) & DNS_KEYTYPE_NOAUTH) != 0)
761 if (!dns_name_equal(name, dst_key_name(pubkey)))
764 result = dst_key_fromfile(dst_key_name(pubkey),
765 dst_key_id(pubkey),
766 dst_key_alg(pubkey),
778 flags = dst_key_flags(pubkey);
780 dst_key_setflags(pubkey,
782 result = dst_key_fromfile(dst_key_name(pubkey),
783 dst_key_id(pubkey),
784 dst_key_alg(pubkey),
790 dst_key_pubcompare(pubkey, keys[count],
794 dst_key_setflags(pubkey, flags);
804 result2 = dst_key_getfilename(dst_key_name(pubkey),
805 dst_key_id(pubkey),
806 dst_key_alg(pubkey),
815 dns_name_format(dst_key_name(pubkey),
817 dns_secalg_format(dst_key_alg(pubkey),
821 namebuf, algbuf, dst_key_id(pubkey));
832 keys[count] = pubkey;
833 pubkey = NULL;
845 dst_key_setinactive(pubkey, ISC_TRUE);
847 keys[count] = pubkey;
848 pubkey = NULL;
866 if (pubkey != NULL)
867 dst_key_free(&pubkey);
881 if (pubkey != NULL)
882 dst_key_free(&pubkey);
1666 dst_key_t *pubkey = NULL, *privkey = NULL;
1679 RETERR(dns_dnssec_keyfromrdata(origin, &rdata, mctx, &pubkey));
1680 dst_key_setttl(pubkey, keys.ttl);
1682 if (!is_zone_key(pubkey) ||
1683 (dst_key_flags(pubkey) & DNS_KEYTYPE_NOAUTH) != 0)
1687 if (!dns_name_equal(origin, dst_key_name(pubkey)))
1691 RETERR(addkey(keylist, &pubkey, savekeys, mctx));
1695 result = dst_key_fromfile(dst_key_name(pubkey),
1696 dst_key_id(pubkey),
1697 dst_key_alg(pubkey),
1708 flags = dst_key_flags(pubkey);
1710 dst_key_setflags(pubkey,
1712 result = dst_key_fromfile(dst_key_name(pubkey),
1713 dst_key_id(pubkey),
1714 dst_key_alg(pubkey),
1720 dst_key_pubcompare(pubkey, privkey,
1724 dst_key_setflags(pubkey, flags);
1734 result2 = dst_key_getfilename(dst_key_name(pubkey),
1735 dst_key_id(pubkey),
1736 dst_key_alg(pubkey),
1745 dns_name_format(dst_key_name(pubkey),
1747 dns_secalg_format(dst_key_alg(pubkey),
1751 namebuf, algbuf, dst_key_id(pubkey));
1762 RETERR(addkey(keylist, &pubkey, savekeys, mctx));
1775 dst_key_setttl(privkey, dst_key_getttl(pubkey));
1779 if (pubkey != NULL)
1780 dst_key_free(&pubkey);
1799 if (pubkey != NULL)
1800 dst_key_free(&pubkey);