auth-server-connection.h revision 6ef7e31619edfaa17ed044b45861d106a86191ef
0N/A#ifndef __AUTH_SERVER_CONNECTION_H
1135N/A#define __AUTH_SERVER_CONNECTION_H
0N/A
0N/Astruct auth_client {
0N/A unsigned int pid;
0N/A char *socket_paths;
0N/A
0N/A input_func_add_t *ext_input_add;
0N/A input_func_remove_t *ext_input_remove;
0N/A
0N/A struct auth_server_connection *connections;
0N/A struct timeout *to_reconnect;
0N/A
0N/A unsigned int conn_waiting_handshake_count;
0N/A
0N/A buffer_t *available_auth_mechs;
0N/A unsigned int request_id_counter;
0N/A unsigned int last_used_auth_process;
553N/A
553N/A auth_connect_notify_callback_t *connect_notify_callback;
553N/A void *connect_notify_context;
0N/A
0N/A unsigned int reconnect:1;
0N/A};
0N/A
1135N/Astruct auth_server_connection {
0N/A struct auth_server_connection *next;
0N/A
0N/A pool_t pool;
0N/A int refcount;
0N/A
0N/A struct auth_client *client;
0N/A const char *path;
0N/A int fd;
0N/A
0N/A struct io *io;
1135N/A void *ext_input_io;
0N/A struct istream *input;
0N/A struct ostream *output;
0N/A
0N/A unsigned int server_pid;
0N/A unsigned int connect_uid;
0N/A
0N/A buffer_t *auth_mechs_buf;
0N/A const struct auth_mech_desc *available_auth_mechs;
0N/A unsigned int available_auth_mechs_count;
0N/A
0N/A struct hash_table *requests;
0N/A
0N/A unsigned int version_received:1;
0N/A unsigned int handshake_received:1;
0N/A unsigned int has_plain_mech:1;
0N/A};
0N/A
0N/Astruct auth_server_connection *
0N/Aauth_server_connection_new(struct auth_client *client, const char *path);
926N/Avoid auth_server_connection_destroy(struct auth_server_connection *conn,
926N/A bool reconnect);
926N/A
926N/Astruct auth_server_connection *
926N/Aauth_server_connection_find_path(struct auth_client *client, const char *path);
926N/A
926N/Astruct auth_server_connection *
926N/Aauth_server_connection_find_mech(struct auth_client *client,
926N/A const char *name, const char **error_r);
926N/A
1135N/A#endif
1135N/A