Lines Matching defs:key
65 fprintf(stderr, " -l label: label of the key\n");
66 fprintf(stderr, " name: owner of the key\n");
78 fprintf(stderr, " -k : generate a TYPE=KEY key\n");
80 fprintf(stderr, " K<name>+<alg>+<id>.key, "
91 dst_key_t *key = NULL, *oldkey;
183 fatal("the key label was not specified");
185 fatal("the key name was not specified");
252 fatal("specified null key with signing authority");
257 fatal("a key with algorithm '%s' cannot be a zone key",
267 fatal("invalid key name %s: %s", argv[isc_commandline_index],
272 /* associate the key */
274 rdclass, "", label, NULL, mctx, &key);
282 fatal("failed to generate key %s/%s: %s\n",
288 * Try to read a key with the same name, alg and id from disk.
290 * unless we were asked to generate a null key, in which
293 ret = dst_key_fromfile(name, dst_key_id(key), alg,
295 /* do not overwrite an existing key */
298 ret = dst_key_buildfilename(key, 0, NULL, &buf);
304 dst_key_free(&key);
308 ret = dst_key_tofile(key, options, NULL);
311 key_format(key, keystr, sizeof(keystr));
312 fatal("failed to write key %s: %s\n", keystr,
317 ret = dst_key_buildfilename(key, 0, NULL, &buf);
322 dst_key_free(&key);