25 |
|
#ifndef INCLUDED_s_auth_h |
26 |
|
#define INCLUDED_s_auth_h |
27 |
|
|
28 |
– |
#include "irc_res.h" |
28 |
|
#include "hook.h" |
29 |
|
|
31 |
– |
|
32 |
– |
struct Client; |
33 |
– |
|
34 |
– |
struct AuthRequest |
35 |
– |
{ |
36 |
– |
dlink_node node; /* auth_doing_list */ |
37 |
– |
int flags; |
38 |
– |
struct Client* client; /* pointer to client struct for request */ |
39 |
– |
fde_t fd; /* file descriptor for auth queries */ |
40 |
– |
time_t timeout; /* time when query expires */ |
41 |
– |
}; |
42 |
– |
|
30 |
|
/* |
31 |
|
* flag values for AuthRequest |
32 |
|
* NAMESPACE: AM_xxx - Authentication Module |
42 |
|
#define ClearAuth(x) ((x)->flags &= ~AM_DOING_AUTH) |
43 |
|
#define IsDoingAuth(x) ((x)->flags & AM_DOING_AUTH) |
44 |
|
|
45 |
+ |
struct Client; |
46 |
+ |
|
47 |
+ |
struct AuthRequest |
48 |
+ |
{ |
49 |
+ |
dlink_node node; /* auth_doing_list */ |
50 |
+ |
int flags; |
51 |
+ |
struct Client* client; /* pointer to client struct for request */ |
52 |
+ |
fde_t fd; /* file descriptor for auth queries */ |
53 |
+ |
time_t timeout; /* time when query expires */ |
54 |
+ |
}; |
55 |
+ |
|
56 |
|
extern struct Callback *auth_cb; |
57 |
|
|
58 |
< |
extern void init_auth(void); |
58 |
> |
extern void auth_init(void); |
59 |
|
extern void send_auth_query(struct AuthRequest *); |
60 |
|
extern void remove_auth_request(struct AuthRequest *); |
61 |
|
extern void delete_auth(struct AuthRequest *); |