login-settings.c revision bbba7d0fce1b6ce5baa2d7ef946eb1b63e2ab518
/* 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
}
{
/* 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 *
{
static const struct setting_parser_info *set_roots[] = {
};
struct master_service_settings_input input;
const char *error;
void **sets;
struct login_settings *set;
/* this function always clears the previous settings pool. since we're
doing per-connection lookups, we always need to duplicate the
settings using another pool. */
return set;
}