ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/ermyth/include/authcookie.h
Revision: 1.3
Committed: Tue Aug 28 17:08:06 2007 UTC (16 years, 9 months ago) by pippijn
Content type: text/plain
Branch: MAIN
Changes since 1.2: +3 -3 lines
Log Message:
- changed name
- updated the example config to the new system
- added more documentation
- enhanced documentation generators
- added a link to the pdf to the website
- added an RSS feed generator
- transitioned hooks to c++ callbacks
- did various merges with upstream along the way
- added const where appropriate
- removed the old block allocator
- fixed most memory leaks
- transitioned some dictionaries to std::map
- transitioned some lists to std::vector
- made some free functions members where appropriate
- renamed string to dynstr and added a static string ststr
- use NOW instead of time (NULL) if possible
- completely reworked database backends, crypto handlers and protocol handlers
  to use an object factory
- removed the old module system. ermyth does not do any dynamic loading anymore
- fixed most of the build system
- reworked how protocol commands work

File Contents

# Content
1 /*
2 * Copyright © 2005 Atheme Development Group
3 * Rights to this code are as documented in doc/pod/license.pod.
4 *
5 * Remote authentication ticket management.
6 *
7 * $Id: authcookie.h,v 1.2 2007-07-21 01:29:07 pippijn Exp $
8 */
9
10 #ifndef AUTHCOOKIE_H
11 #define AUTHCOOKIE_H
12
13 struct authcookie_t : zero_initialised
14 {
15 char *ticket;
16 myuser_t *myuser;
17 time_t expire;
18 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