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