auth-connection.h revision c0a708fa3f7b8f4fbca32052da5faf7a0125189d
#ifndef __AUTH_CONNECTION_H
#define __AUTH_CONNECTION_H
struct client;
struct auth_request;
/* reply is NULL if auth connection died */
struct auth_login_reply *reply,
struct auth_connection {
struct auth_connection *next;
char *path;
int fd;
unsigned int pid;
struct auth_login_reply reply;
struct hash_table *requests;
unsigned int handshake_received:1;
unsigned int reply_received:1;
};
struct auth_request {
struct auth_connection *conn;
unsigned int id;
void *context;
unsigned int init_sent:1;
};
extern enum auth_mech available_auth_mechs;
void auth_connection_init(void);
void auth_connection_deinit(void);
#endif