X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=server%2Foptions.h;h=88496cc7a919d3bd6a369bc0164d0edb66b40060;hb=15a32ab1123375e1a52c319fca71ab8d02c58261;hp=a15e14a5e693f74fb06d5bd461b6a19e7a2580b1;hpb=2e3ab88d1282fc893c9bd615911aaedc9e552178;p=matches%2FMCTX3420.git diff --git a/server/options.h b/server/options.h index a15e14a..88496cc 100644 --- a/server/options.h +++ b/server/options.h @@ -1,6 +1,6 @@ /** * @file options.h - * @purpose Define the Options structure and the g_options variable + * @brief Define the Options structure and the g_options variable */ #ifndef _OPTIONS_H @@ -15,10 +15,24 @@ typedef struct /** Determines at what level log messages are shown **/ int verbosity; /** Time at which program begins to run **/ - struct timeval start_time; + struct timespec start_time; /** Time at which program exits **/ - struct timeval end_time; + struct timespec end_time; + /** Whether or not to enable the pin_test module **/ + bool enable_pin; + + /** URI for authentication **/ + const char * auth_uri; + + /** Additional options for authentication (to be parsed in Login_Handler) **/ + const char * auth_options; + + /** Authentication method **/ + enum {AUTH_NONE, AUTH_LDAP, AUTH_SHADOW, AUTH_MYSQL} auth_method; + + /** Experiments directory **/ + const char *experiment_dir; } Options; /** The only instance of the Options struct **/