#ifndef LOGIN_COMMON_H
#define LOGIN_COMMON_H
#include "lib.h"
#include "login-settings.h"
#define MAX_MECH_NAME 64
#define AUTH_FAILED_MSG "Authentication failed."
#define AUTH_TEMP_FAILED_MSG "Temporary authentication failure."
#define AUTH_PLAINTEXT_DISABLED_MSG \
"Plaintext authentication disallowed on non-secure (SSL/TLS) connections."
struct login_binary {
const char *protocol;
const char *process_name;
unsigned int default_port;
unsigned int default_ssl_port;
};
extern const struct login_binary login_binary;
extern struct auth_client *auth_client;
extern struct master_auth *master_auth;
extern bool closing_down;
extern struct anvil_client *anvil;
extern const struct login_settings *global_login_settings;
extern void **global_other_settings;
void login_refresh_proctitle(void);
void login_client_destroyed(void);
void login_process_preinit(void);
#endif