common.h revision 7ceee001c11865a88a311c50c4430867b2d32ce6
e59faf65ce864fe95dc00f5d52b8323cdbd0608aTimo Sirainen#ifndef COMMON_H
a27e065f1a1f91c7fbdf7c2ea1c387441af0cbb3Timo Sirainen#define COMMON_H
a27e065f1a1f91c7fbdf7c2ea1c387441af0cbb3Timo Sirainen
a27e065f1a1f91c7fbdf7c2ea1c387441af0cbb3Timo Sirainen#include "lib.h"
a27e065f1a1f91c7fbdf7c2ea1c387441af0cbb3Timo Sirainen#include "login-settings.h"
472369cba85d9f7c995dda60e7cd01d78b4a960aTimo Sirainen
e28fa207d1a097fa6e4a867f74ee0761472ef1ceTimo Sirainen/* Used only for string sanitization */
37847ec8eaec9ad55c9df10ae109efe7b37ac573Timo Sirainen#define MAX_MECH_NAME 64
adb6413686e52e00dded4932babcc08ff041876bTimo Sirainen
37847ec8eaec9ad55c9df10ae109efe7b37ac573Timo Sirainen#define AUTH_FAILED_MSG "Authentication failed."
37847ec8eaec9ad55c9df10ae109efe7b37ac573Timo Sirainen#define AUTH_TEMP_FAILED_MSG "Temporary authentication failure."
37847ec8eaec9ad55c9df10ae109efe7b37ac573Timo Sirainen#define AUTH_PLAINTEXT_DISABLED_MSG \
37847ec8eaec9ad55c9df10ae109efe7b37ac573Timo Sirainen "Plaintext authentication disallowed on non-secure (SSL/TLS) connections."
37847ec8eaec9ad55c9df10ae109efe7b37ac573Timo Sirainen
b039dabf4c53f72454e795930e7643b6e0e625f9Timo Sirainenextern const char *login_protocol, *login_process_name;
94d8e51119003d2bc5a100c663f90141f297385dTimo Sirainenextern unsigned int login_default_port;
ef50336eefcb9ba99f73c6af37420eaf8857a39bTimo Sirainen
e28fa207d1a097fa6e4a867f74ee0761472ef1ceTimo Sirainenextern struct auth_client *auth_client;
37847ec8eaec9ad55c9df10ae109efe7b37ac573Timo Sirainenextern bool closing_down;
ef50336eefcb9ba99f73c6af37420eaf8857a39bTimo Sirainenextern int anvil_fd;
91b203fd2132510a47a4b34252c0ae0efd688a19Timo Sirainen
a27e065f1a1f91c7fbdf7c2ea1c387441af0cbb3Timo Sirainenextern const struct login_settings *global_login_settings;
a27e065f1a1f91c7fbdf7c2ea1c387441af0cbb3Timo Sirainen
a27e065f1a1f91c7fbdf7c2ea1c387441af0cbb3Timo Sirainenvoid login_process_preinit(void);
5694eeb99b69dea8033ca77ad69743c6b4871370Timo Sirainen
a27e065f1a1f91c7fbdf7c2ea1c387441af0cbb3Timo Sirainen#endif
5694eeb99b69dea8033ca77ad69743c6b4871370Timo Sirainen