d9898ee8 |
1 | /* |
2 | ** Copyright 1998 - 2004 Double Precision, Inc. See COPYING for |
3 | ** distribution information. |
4 | */ |
5 | |
6 | #ifndef authstaticlist_h |
7 | #define authstaticlist_h |
8 | |
9 | #if HAVE_CONFIG_H |
10 | #include "courier_auth_config.h" |
11 | #endif |
12 | #include <sys/types.h> |
13 | |
14 | #ifdef __cplusplus |
15 | extern "C" { |
16 | #endif |
17 | |
18 | static const char authstaticlist_h_rcsid[]="$Id: authstaticlist.h,v 1.13 2004/11/14 02:58:16 mrsam Exp $"; |
19 | |
20 | struct authinfo; |
21 | |
22 | struct authstaticinfo { |
23 | const char *auth_name; |
24 | int (*auth_func)(const char *, const char *, char *, |
25 | int (*)(struct authinfo *, void *), |
26 | void *); |
27 | int (*auth_prefunc)(const char *, const char *, |
28 | int (*)(struct authinfo *, void *), |
29 | void *); |
30 | void (*auth_cleanupfunc)(); |
31 | int (*auth_changepwd)(const char *, /* service */ |
32 | const char *, /* userid */ |
33 | const char *, /* oldpassword */ |
34 | const char *); /* new password */ |
35 | |
36 | void (*auth_idle)(); |
37 | /* Not null - gets called every 5 mins when we're idle */ |
38 | |
39 | void (*auth_enumerate)( void(*cb_func)(const char *name, |
40 | uid_t uid, |
41 | gid_t gid, |
42 | const char *homedir, |
43 | const char *maildir, |
44 | const char *options, |
45 | void *void_arg), |
46 | void *void_arg); |
47 | } ; |
48 | |
49 | extern int auth_syspasswd(const char *, |
50 | const char *, |
51 | const char *, |
52 | const char *); |
53 | |
54 | #ifdef __cplusplus |
55 | } |
56 | #endif |
57 | |
58 | #endif |