login-common.h revision a87eeb418cb3776380a1e1ffa8a9127e2b181ff0
51cbc45fc1ac5dde29bc2adbb175945df1b4f7d4Timo Sirainen/* Used only for string sanitization */
51cbc45fc1ac5dde29bc2adbb175945df1b4f7d4Timo Sirainen#define AUTH_FAILED_MSG "Authentication failed."
51cbc45fc1ac5dde29bc2adbb175945df1b4f7d4Timo Sirainen#define AUTH_TEMP_FAILED_MSG "Temporary authentication failure."
51cbc45fc1ac5dde29bc2adbb175945df1b4f7d4Timo Sirainen "Plaintext authentication disallowed on non-secure (SSL/TLS) connections."
51cbc45fc1ac5dde29bc2adbb175945df1b4f7d4Timo Sirainen#define LOGIN_TOKEN_DEFAULT_SOCKET "tokenlogin"
51cbc45fc1ac5dde29bc2adbb175945df1b4f7d4Timo Sirainen /* e.g. imap, pop3 */
51cbc45fc1ac5dde29bc2adbb175945df1b4f7d4Timo Sirainen /* e.g. imap-login, pop3-login */
51cbc45fc1ac5dde29bc2adbb175945df1b4f7d4Timo Sirainen /* e.g. 143, 110 */
51cbc45fc1ac5dde29bc2adbb175945df1b4f7d4Timo Sirainen /* e.g. 993, 995. if there is no ssl port, use 0. */
51cbc45fc1ac5dde29bc2adbb175945df1b4f7d4Timo Sirainen /* if value is NULL, LOGIN_DEFAULT_SOCKET is used as the default */
51cbc45fc1ac5dde29bc2adbb175945df1b4f7d4Timo Sirainen void (*preinit)(void);
51cbc45fc1ac5dde29bc2adbb175945df1b4f7d4Timo Sirainen void (*init)(void);
44f93baa7b8dca7d00bf187cd3db1c15eed384d2Timo Sirainen void (*deinit)(void);
51cbc45fc1ac5dde29bc2adbb175945df1b4f7d4Timo Sirainen unsigned int id;
51cbc45fc1ac5dde29bc2adbb175945df1b4f7d4Timo Sirainenextern struct login_module_register login_module_register;
51cbc45fc1ac5dde29bc2adbb175945df1b4f7d4Timo Sirainenextern const struct login_binary *login_binary;
51cbc45fc1ac5dde29bc2adbb175945df1b4f7d4Timo Sirainenextern const char *login_rawlog_dir;
51cbc45fc1ac5dde29bc2adbb175945df1b4f7d4Timo Sirainenextern unsigned int initial_service_count;
51cbc45fc1ac5dde29bc2adbb175945df1b4f7d4Timo Sirainen/* NULL-terminated array of all alt_usernames seen so far. Existing fields are
51cbc45fc1ac5dde29bc2adbb175945df1b4f7d4Timo Sirainen never removed. */
51cbc45fc1ac5dde29bc2adbb175945df1b4f7d4Timo Sirainenextern ARRAY_TYPE(string) global_alt_usernames;
51cbc45fc1ac5dde29bc2adbb175945df1b4f7d4Timo Sirainenextern const struct login_settings *global_login_settings;
51cbc45fc1ac5dde29bc2adbb175945df1b4f7d4Timo Sirainenextern const struct master_service_ssl_settings *global_ssl_settings;
51cbc45fc1ac5dde29bc2adbb175945df1b4f7d4Timo Sirainenextern unsigned int login_source_ips_idx, login_source_ips_count;
e27db67b4549773e5015643e776bda9e7025719fTimo Sirainen/* Call to guarantee that the "anvil" global variable is initialized. */