Lines Matching defs:keyid
733 controlkey_t *keyid = NULL, *next = NULL;
742 for (keyid = ISC_LIST_HEAD(*keyids); keyid != NULL; keyid = next) {
743 next = ISC_LIST_NEXT(keyid, link);
745 result = cfgkeylist_find(keylist, keyid->keyname, &keydef);
750 keyid->keyname, socktext);
751 ISC_LIST_UNLINK(*keyids, keyid, link);
752 free_controlkey(keyid, mctx);
775 algstr, keyid->keyname, socktext);
776 ISC_LIST_UNLINK(*keyids, keyid, link);
777 free_controlkey(keyid, mctx);
781 keyid->algorithm = algtype;
790 keyid->keyname, socktext,
792 ISC_LIST_UNLINK(*keyids, keyid, link);
793 free_controlkey(keyid, mctx);
797 keyid->secret.length = isc_buffer_usedlength(&b);
798 keyid->secret.base = isc_mem_get(mctx,
799 keyid->secret.length);
800 memmove(keyid->secret.base, isc_buffer_base(&b),
801 keyid->secret.length);
824 controlkey_t *keyid = NULL;
841 keyid = isc_mem_get(mctx, sizeof(*keyid));
842 keyid->keyname = isc_mem_strdup(mctx,
844 keyid->secret.base = NULL;
845 keyid->secret.length = 0;
846 keyid->algorithm = DST_ALG_UNKNOWN;
847 ISC_LINK_INIT(keyid, link);
848 if (keyid->keyname == NULL) {
867 algstr, keyid->keyname);
871 keyid->algorithm = algtype;
878 keyid->keyname, isc_result_totext(result));
882 keyid->secret.length = isc_buffer_usedlength(&b);
883 keyid->secret.base = isc_mem_get(mctx, keyid->secret.length);
884 memmove(keyid->secret.base, isc_buffer_base(&b), keyid->secret.length);
885 ISC_LIST_APPEND(*keyids, keyid, link);
886 keyid = NULL;
890 if (keyid != NULL) {
891 free_controlkey(keyid, mctx);