login-settings.c revision 9990cf6923b648420e9bd102e38ebfc2b9322dcc
/* 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 = {
};
static const struct setting_parser_info *default_login_set_roots[] = {
};
/* <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 */
}
/* disabled */
return FALSE;
return FALSE;
} else {
return FALSE;
}
return TRUE;
}
/* </settings checks> */
struct login_settings *
void ***other_settings_r)
{
struct master_service_settings_input input;
const char *error;
void **sets;
unsigned int i;
/* 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. */
i_fatal("settings_check(%s) failed: %s",
}
}
return sets[0];
}