login-settings.c revision 1cbc0c6372d24168962698c5f4d3e15df8943ebf
/* Copyright (c) 2005-2008 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "settings-parser.h"
#include "login-settings.h"
#include <stddef.h>
#include <unistd.h>
static struct setting_define login_setting_defines[] = {
};
static struct login_settings login_default_settings = {
};
struct setting_parser_info login_setting_parser_info = {
};
/* <settings checks> */
{
#ifndef HAVE_SSL
*error_r = "SSL support not compiled in but ssl_disable=no";
return FALSE;
#else
*error_r = "ssl_cert_file not set";
return FALSE;
}
*error_r = "ssl_key_file not set";
return FALSE;
}
*error_r = "ssl_verify_client_cert set, but ssl_ca_file not";
return FALSE;
}
#ifndef CONFIG_BINARY
set->ssl_cert_file);
return FALSE;
}
set->ssl_key_file);
return FALSE;
}
set->ssl_ca_file);
return FALSE;
}
#endif
return TRUE;
#endif
}
{
/* if we require valid cert, make sure we also ask for it */
}
*error_r = "login_max_connections must be at least 1";
return FALSE;
}
/* disabled */
return FALSE;
return FALSE;
} else {
return FALSE;
}
return TRUE;
}
/* </settings checks> */
struct login_settings *login_settings_read(void)
{
struct setting_parser_context *parser;
struct login_settings *set;
const char *error;
if (settings_pool == NULL)
else
if (settings_parse_environ(parser) < 0) {
i_fatal("Error reading configuration: %s",
}
return set;
}