Debian Codegraph @

include/authcookie.h

raw
1 /*
2 * Copyright (c) 2005 Atheme Development Group
3 * Rights to this code are as documented in doc/LICENSE.
4 *
5 * Remote authentication ticket management.
6 *
7 */
8
9 #ifndef AUTHCOOKIE_H
10 #define AUTHCOOKIE_H
11
12 typedef struct authcookie_ authcookie_t;
13
14 struct authcookie_ {
15 char *ticket;
16 myuser_t *myuser;
17 time_t expire;
18 mowgli_node_t node;
19 };
20
21 E void authcookie_init(void);
22 E authcookie_t *authcookie_create(myuser_t *mu);
23 E authcookie_t *authcookie_find(char *ticket, myuser_t *myuser);
24 E void authcookie_destroy(authcookie_t *ac);
25 E void authcookie_destroy_all(myuser_t *mu);
26 E bool authcookie_validate(char *ticket, myuser_t *myuser);
27 E void authcookie_expire(void *arg);
28
29 #endif
30
31 /* vim:cinoptions=>s,e0,n0,f0,{0,}0,^0,=s,ps,t0,c3,+s,(2s,us,)20,*30,gs,hs
32 * vim:ts=8
33 * vim:sw=8
34 * vim:noexpandtab
35 */