Lines Matching defs:phase
124 static void ksk_roll (const char *keyname, int phase, const dki_t *list, const zconf_t *conf);
125 static int create_parent_file (const char *fname, int phase, int ttl, const dki_t *dkp);
432 int phase;
437 phase = 0;
438 if ( fscanf (fp, "; KSK rollover phase%d", &phase) != 1 )
439 phase = 0;
442 return phase;
445 static void ksk_roll (const char *keyname, int phase, const dki_t *list, const zconf_t *conf)
460 if ( phase == 9 ) /* usage */
494 dbg_val2 ("ksk_roll: keyname %s, phase = %d\n", keyname, phase);
534 switch ( phase )
539 fprintf (stdout, "\t phase = %d\n", parent_phase);
570 if ( !create_parent_file (path, phase, key_ttl, dkp) )
580 fatal ("Parent file exists but is in wrong state (phase = %d)\n", parent_phase);
588 if ( !create_parent_file (path, phase, key_ttl, dkp) )
595 fatal ("Parent file exists but is in wrong state (phase = %d)\n", parent_phase);
608 default: assert (phase == 1 || phase == 2 || phase == 3);
615 static int create_parent_file (const char *fname, int phase, int ttl, const dki_t *dkp)
621 if ( dkp == NULL || (phase != 1 && phase != 2) )
627 if ( phase == 1 )
635 return phase;