Lines Matching defs:keyname
123 static void createkey (const char *keyname, const dki_t *list, const zconf_t *conf);
124 static void ksk_roll (const char *keyname, int phase, const dki_t *list, const zconf_t *conf);
145 const char *keyname = NULL;
201 if ( (keyname = parsetag (optarg, &searchtag)) != NULL )
202 keyname = domain_canonicdup (keyname);
281 createkey (keyname, data, config);
287 if ( (dkp = (dki_t*)zkt_search (data, searchtag, keyname)) == NULL )
295 if ( (dkp = (dki_t *)zkt_search (data, searchtag, keyname)) == NULL )
302 if ( (dkp = (dki_t *)zkt_search (data, searchtag, keyname)) == NULL )
309 if ( (dkp = (dki_t *)zkt_search (data, searchtag, keyname)) == NULL )
393 static void createkey (const char *keyname, const dki_t *list, const zconf_t *conf)
398 if ( keyname == NULL || *keyname == '\0' )
399 fatal ("Create key: no keyname!");
401 dbg_val2 ("createkey: keyname %s, pathflag = %d\n", keyname, pathflag);
403 if ( pathflag && (dkp = (dki_t *)zkt_search (list, 0, keyname)) != NULL )
419 dkp = dki_new (dir, keyname, DKI_ZSK, conf->k_algo, conf->z_bits, conf->z_random, conf->z_life / DAYSEC);
421 dkp = dki_new (dir, keyname, DKI_KSK, conf->k_algo, conf->k_bits, conf->k_random, conf->k_life / DAYSEC);
423 fatal ("Can't create key %s: %s!\n", keyname, dki_geterrstr ());
445 static void ksk_roll (const char *keyname, int phase, const dki_t *list, const zconf_t *conf)
491 if ( keyname == NULL || *keyname == '\0' )
494 dbg_val2 ("ksk_roll: keyname %s, phase = %d\n", keyname, phase);
497 if ( (keylist = (dki_t *)zkt_search (list, 0, keyname)) == NULL )
498 fatal ("ksk rollover: domain %s not found!\n", keyname);
513 pathname (path, sizeof (path), dir, "parent-", keyname);
538 fprintf (stdout, "\t domain = %s\n", keyname);
558 dkp = dki_new (dir, keyname, DKI_KSK, conf->k_algo, conf->k_bits, conf->k_random, conf->k_life / DAYSEC);
560 fatal ("Can't create key %s: %s!\n", keyname, dki_geterrstr ());