login-settings.c revision 0f5dc4da3982053036be65190e44bf28a67b1ca2
/* Copyright (c) 2005-2016 Dovecot authors, see the included COPYING file */
#include "login-common.h"
#include "hostpid.h"
#include "var-expand.h"
#include "settings-parser.h"
#include "master-service.h"
#include "master-service-settings.h"
#include "master-service-ssl-settings.h"
#include "master-service-settings-cache.h"
#include "login-settings.h"
#include <stddef.h>
#include <unistd.h>
static const struct setting_define login_setting_defines[] = {
};
static const struct login_settings login_default_settings = {
.login_trusted_networks = "",
.login_source_ips = "",
.login_log_format_elements = "user=<%u> method=%m rip=%r lip=%l mpid=%e %c session=<%{session}>",
.login_log_format = "%$: %s",
.login_access_sockets = "",
.login_plugins = "",
.director_username_hash = "%u",
.ssl_client_cert = "",
.ssl_client_key = "",
.ssl_require_crl = TRUE,
.auth_verbose = FALSE,
.auth_debug = FALSE,
};
const struct setting_parser_info login_setting_parser_info = {
.module_name = "login",
.struct_size = sizeof(struct login_settings),
};
static const struct setting_parser_info *default_login_set_roots[] = {
};
static struct master_service_settings_cache *set_cache;
/* <settings checks> */
const char **error_r ATTR_UNUSED)
{
if (set->auth_debug_passwords)
if (set->auth_debug)
return TRUE;
}
/* </settings checks> */
static const struct var_expand_table *
{
const struct var_expand_table stack_tab[] = {
};
struct var_expand_table *tab;
return tab;
}
static void *
const void *src_set)
{
const char *error;
void *dest;
i_fatal("settings_check(%s) failed: %s",
}
return dest;
}
struct login_settings *
const char *local_name,
const struct master_service_ssl_settings **ssl_set_r,
void ***other_settings_r)
{
struct master_service_settings_input input;
const char *error;
const struct setting_parser_context *parser;
void *const *cache_sets;
void **sets;
unsigned int i, count;
}
for (i = 0; i < count; i++)
*ssl_set_r =
return sets[0];
}
void login_settings_deinit(void)
{
}