Lines Matching refs:dkp
67 dki_t *dkp;
73 dkp = dki_new (dir, domain, DKI_KSK, conf->k_algo, conf->k_bits, conf->k_random, conf->k_life / DAYSEC);
75 dkp = dki_new (dir, domain, DKI_ZSK, conf->k_algo, conf->z_bits, conf->z_random, conf->z_life / DAYSEC);
76 dki_add (listp, dkp);
77 dki_setstatus (dkp, status);
79 return dkp;
84 dki_t *dkp;
90 dkp = dki_new (dir, domain, DKI_KSK, conf->k2_algo, conf->k_bits, conf->k_random, conf->k_life / DAYSEC);
92 dkp = dki_new (dir, domain, DKI_ZSK, conf->k2_algo, conf->z_bits, conf->z_random, conf->z_life / DAYSEC);
93 dki_add (listp, dkp);
94 dki_setstatus (dkp, status);
96 return dkp;
179 static int create_parent_file (const char *fname, int phase, int ttl, const dki_t *dkp)
185 if ( dkp == NULL || (phase != 1 && phase != 2) )
196 dki_prt_dnskeyttl (dkp, fp, ttl);
368 dki_t *dkp;
389 for ( dkp = *listp; dkp && dki_isksk (dkp); dkp = dkp->next )
391 exptime = get_exptime (dkp, z);
392 if ( dki_isrevoked (dkp) )
394 domain, dkp->tag, time2str (exptime, 's'));
397 if ( dki_isrevoked (dkp) && currtime > exptime + REMOVE_HOLD_DOWN )
399 verbmesg (1, z, "\tRemove revoked key %d which is older than 30 days\n", dkp->tag);
400 lg_mesg (LG_NOTICE, "zone \"%s\": removing revoked key %d", domain, dkp->tag);
404 *listp = dki_remove (dkp);
406 prev->next = dki_remove (dkp);
412 if ( dki_status (dkp) == DKI_PUBLISHED )
413 standbykey = dkp;
414 if ( dki_status (dkp) == DKI_ACTIVE )
415 activekey = dkp;
437 dkp = genkey (listp, dir, domain, DKI_KSK, z, DKI_PUBLISHED); /* gentime == now; lifetime = z->k_life; exp = 0 */
438 if ( !dkp )
444 lg_mesg (LG_NOTICE, "\"%s\": generated new standby KSK %d", domain, dkp->tag);
536 dki_t *dkp, *last;
556 dkp = *listp;
557 while ( dkp )
558 if ( !dki_isksk (dkp) &&
559 dki_status (dkp) == DKI_DEPRECIATED &&
560 dki_age (dkp, currtime) > lifetime )
564 lifetime, dkp->tag, dki_age (dkp, currtime));
565 lg_mesg (LG_INFO, "\"%s\": old ZSK %d removed", domain, dkp->tag);
566 dkp = dki_destroy (dkp); /* delete the keyfiles */
569 last->next = dkp;
571 *listp = dkp;
576 last = dkp;
577 dkp = dkp->next;