login-settings.c revision 02a0492affdff138f43903c19ca366363923044d
/* Copyright (c) 2005-2009 Dovecot authors, see the included COPYING file */
#include "common.h"
#include "settings-parser.h"
#include "master-service-settings.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
return FALSE;
#else
*error_r = "ssl enabled, but ssl_cert not set";
return FALSE;
}
*error_r = "ssl enabled, but ssl_key not set";
return FALSE;
}
*error_r = "ssl_verify_client_cert set, but ssl_ca_file not";
return FALSE;
}
#ifndef CONFIG_BINARY
set->ssl_ca_file);
return FALSE;
}
#endif
return TRUE;
#endif
}
const char **error_r)
{
/* 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> */
{
static const struct setting_parser_info *set_roots[] = {
};
struct master_service_settings_input input;
const char *error;
void **sets;
return sets[0];
}