Commit | Line | Data |
---|---|---|
b0322a85 CE |
1 | #ifndef authsqlite_h |
2 | #define authsqlite_h | |
3 | ||
4 | #include "courier_auth_config.h" | |
5 | #include <stdlib.h> | |
6 | #include <string.h> | |
7 | #include <sys/types.h> | |
8 | #include <sqlite3.h> | |
9 | ||
10 | struct authsqliteuserinfo { | |
11 | char *username; | |
12 | char *fullname; | |
13 | char *cryptpw; | |
14 | char *clearpw; | |
15 | char *home; | |
16 | char *maildir; | |
17 | char *quota; | |
18 | char *options; | |
19 | uid_t uid; | |
20 | gid_t gid; | |
21 | } ; | |
22 | ||
23 | extern struct authsqliteuserinfo *auth_sqlite_getuserinfo(const char *, | |
24 | const char *); | |
25 | extern void auth_sqlite_cleanup(); | |
26 | ||
27 | extern int auth_sqlite_setpass(const char *, const char *, const char *); | |
28 | ||
29 | struct authinfo; | |
30 | ||
31 | extern int auth_sqlite_pre(const char *, const char *, | |
32 | int (*)(struct authinfo *, void *), void *arg); | |
33 | ||
34 | #endif |