settings.c revision 94f11e46199ea913e4ae17198b3024771b1bef68
22f8827cd8892a298f9764ce862db6867307828dEugen Kuksa/* Copyright (C) 2002 Timo Sirainen */
22f8827cd8892a298f9764ce862db6867307828dEugen Kuksatypedef enum {
22f8827cd8892a298f9764ce862db6867307828dEugen Kuksatypedef struct {
22f8827cd8892a298f9764ce862db6867307828dEugen Kuksa const char *name;
22f8827cd8892a298f9764ce862db6867307828dEugen Kuksa { "log_timestamp", SET_STR, &set_log_timestamp },
22f8827cd8892a298f9764ce862db6867307828dEugen Kuksa { "ssl_cert_file", SET_STR, &set_ssl_cert_file },
22f8827cd8892a298f9764ce862db6867307828dEugen Kuksa { "disable_plaintext_auth",
22f8827cd8892a298f9764ce862db6867307828dEugen Kuksa { "login_executable", SET_STR, &set_login_executable },
22f8827cd8892a298f9764ce862db6867307828dEugen Kuksa { "login_processes_count", SET_INT, &set_login_processes_count },
22f8827cd8892a298f9764ce862db6867307828dEugen Kuksa { "max_logging_users", SET_INT, &set_max_logging_users },
22f8827cd8892a298f9764ce862db6867307828dEugen Kuksa { "imap_executable", SET_STR, &set_imap_executable },
22f8827cd8892a298f9764ce862db6867307828dEugen Kuksa { "valid_chroot_dirs", SET_STR, &set_valid_chroot_dirs },
22f8827cd8892a298f9764ce862db6867307828dEugen Kuksa { "max_imap_processes", SET_INT, &set_max_imap_processes },
22f8827cd8892a298f9764ce862db6867307828dEugen Kuksa { "verbose_proctitle", SET_BOOL,&set_verbose_proctitle },
22f8827cd8892a298f9764ce862db6867307828dEugen Kuksa { "first_valid_uid", SET_INT, &set_first_valid_uid },
22f8827cd8892a298f9764ce862db6867307828dEugen Kuksa { "last_valid_uid", SET_INT, &set_last_valid_uid },
22f8827cd8892a298f9764ce862db6867307828dEugen Kuksa { "first_valid_gid", SET_INT, &set_first_valid_gid },
22f8827cd8892a298f9764ce862db6867307828dEugen Kuksa { "last_valid_gid", SET_INT, &set_last_valid_gid },
22f8827cd8892a298f9764ce862db6867307828dEugen Kuksa { "mail_cache_fields", SET_STR, &set_mail_cache_fields },
22f8827cd8892a298f9764ce862db6867307828dEugen Kuksa { "mail_never_cache_fields",
22f8827cd8892a298f9764ce862db6867307828dEugen Kuksa { "mail_save_crlf", SET_BOOL,&set_mail_save_crlf },
22f8827cd8892a298f9764ce862db6867307828dEugen Kuksa { "maildir_copy_with_hardlinks",
static void get_login_uid(void)
static void settings_initialize(void)
static void auth_settings_verify(void)
static void settings_verify(void)
return auth;
return NULL;
char **ptr;
return NULL;
return NULL;
return NULL;
case SET_STR:
case SET_INT:
case SET_BOOL:
return NULL;
const char *errormsg;
if (fd < 0)
linenum = 0;
linenum++;
line++;
line++;