client-common.h revision 68a4946b12583b88fa802e52ebee45cd96056772
#ifndef CLIENT_COMMON_H
#define CLIENT_COMMON_H
#include "network.h"
#include "master.h"
#include "sasl-server.h"
struct client {
unsigned int local_port, remote_port;
int fd;
char *auth_mech_name;
struct auth_request *auth_request;
unsigned int master_tag;
unsigned int auth_attempts;
char *virtual_user;
unsigned int tls:1;
unsigned int secured:1;
unsigned int authenticating:1;
unsigned int auth_tried_disabled_plaintext:1;
/* ... */
};
unsigned int clients_get_count(void) ATTR_PURE;
void clients_notify_auth_connected(void);
void client_destroy_oldest(void);
void clients_destroy_all(void);
void clients_init(void);
void clients_deinit(void);
#endif