view src/login-common/common.h @ 10111:9a71228ea41c HEAD

imap-login: If imap_capability is set, use it.
author Timo Sirainen <tss@iki.fi>
date Tue, 20 Oct 2009 18:11:00 -0400
parents 4fe8c4382712
children 3e7e08af2991
line wrap: on
line source

#ifndef COMMON_H
#define COMMON_H

#include "lib.h"
#include "login-settings.h"

/* Used only for string sanitization */
#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."

extern const char *login_protocol, *login_process_name;
extern unsigned int login_default_port;

extern struct auth_client *auth_client;
extern struct master_auth *master_auth;
extern bool closing_down;
extern int anvil_fd;

extern const struct login_settings *global_login_settings;
extern void **global_other_settings;

void login_process_preinit(void);

#endif