/* The secnet program goes through a number of phases in its lifetime.
Module code may arrange to be called just as various phases are
/* The secnet program goes through a number of phases in its lifetime.
Module code may arrange to be called just as various phases are
enum phase {
PHASE_INIT,
PHASE_GETOPTS, /* Process command-line arguments */
PHASE_READCONFIG, /* Parse and process configuration file */
PHASE_SETUP, /* Process information in configuration */
enum phase {
PHASE_INIT,
PHASE_GETOPTS, /* Process command-line arguments */
PHASE_READCONFIG, /* Parse and process configuration file */
PHASE_SETUP, /* Process information in configuration */
PHASE_GETRESOURCES, /* Obtain all external resources */
PHASE_DROPPRIV, /* Last chance for privileged operations */
PHASE_RUN,
PHASE_GETRESOURCES, /* Obtain all external resources */
PHASE_DROPPRIV, /* Last chance for privileged operations */
PHASE_RUN,