Mercurial > dovecot > core-2.2
view src/lib-auth/auth-server-connection.h @ 9984:097588a7903c HEAD
lib-auth: Changed API to connect to only a single specified auth socket.
Login processes now always connect to socket called "auth".
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 07 Oct 2009 17:46:14 -0400 |
parents | 5c25f5d7b29d |
children | aa30fc7d771a |
line wrap: on
line source
#ifndef AUTH_SERVER_CONNECTION_H #define AUTH_SERVER_CONNECTION_H struct auth_server_connection { pool_t pool; struct auth_client *client; int fd; time_t last_connect; struct io *io; struct timeout *to; struct istream *input; struct ostream *output; unsigned int server_pid; unsigned int connect_uid; ARRAY_DEFINE(available_auth_mechs, struct auth_mech_desc); struct hash_table *requests; unsigned int version_received:1; unsigned int handshake_received:1; unsigned int has_plain_mech:1; }; struct auth_server_connection * auth_server_connection_init(struct auth_client *client); void auth_server_connection_deinit(struct auth_server_connection **conn); int auth_server_connection_connect(struct auth_server_connection *conn); unsigned int auth_server_connection_add_request(struct auth_server_connection *conn, struct auth_client_request *request); #endif