view src/login-common/common.h @ 9235:2e2b957f1cca HEAD

Implemented anvil service, which is used to implement mail_max_userip_connections.
author Timo Sirainen <tss@iki.fi>
date Tue, 05 May 2009 21:28:34 -0400
parents 6324a79d3ee1
children 02721ba17309
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 struct auth_client *auth_client;
extern bool closing_down;
extern int anvil_fd;

extern struct master_service *service;
extern struct login_settings *login_settings;

#endif