Lines Matching defs:phase
136 static void ksk_roll (const char *keyname, int phase, const dki_t *list, const zconf_t *conf);
137 static int create_parent_file (const char *fname, int phase, int ttl, const dki_t *dkp);
525 int phase;
530 phase = 0;
531 if ( fscanf (fp, "; KSK rollover phase%d", &phase) != 1 )
532 phase = 0;
535 return phase;
538 static void ksk_roll (const char *keyname, int phase, const dki_t *list, const zconf_t *conf)
553 if ( phase == 9 ) /* usage */
587 dbg_val2 ("ksk_roll: keyname %s, phase = %d\n", keyname, phase);
627 switch ( phase )
632 fprintf (stdout, "\t phase = %d\n", parent_phase);
663 if ( !create_parent_file (path, phase, key_ttl, dkp) )
673 fatal ("Parent file exists but is in wrong state (phase = %d)\n", parent_phase);
681 if ( !create_parent_file (path, phase, key_ttl, dkp) )
688 fatal ("Parent file exists but is in wrong state (phase = %d)\n", parent_phase);
701 default: assert (phase == 1 || phase == 2 || phase == 3);
708 static int create_parent_file (const char *fname, int phase, int ttl, const dki_t *dkp)
714 if ( dkp == NULL || (phase != 1 && phase != 2) )
720 if ( phase == 1 )
728 return phase;