Commit | Line | Data |
---|---|---|
d9898ee8 | 1 | #ifndef authpgsql_h |
2 | #define authpgsql_h | |
3 | ||
4 | #include "courier_auth_config.h" | |
5 | #include <stdlib.h> | |
6 | #include <string.h> | |
7 | #include <sys/types.h> | |
8 | #include <libpq-fe.h> | |
9 | ||
10 | /* | |
11 | #include <errmsg.h> | |
12 | */ | |
d9898ee8 | 13 | |
0e333c05 CE |
14 | extern int auth_pgsql_login(const char *service, char *authdata, |
15 | int (*callback_func)(struct authinfo *, void *), | |
16 | void *callback_arg); | |
17 | extern int auth_pgsql_changepw(const char *service, const char *user, | |
18 | const char *pass, | |
19 | const char *newpass); | |
d9898ee8 | 20 | |
0e333c05 | 21 | extern void auth_pgsql_cleanup(); |
d9898ee8 | 22 | |
23 | struct authinfo; | |
24 | ||
25 | extern int auth_pgsql_pre(const char *, const char *, | |
26 | int (*)(struct authinfo *, void *), void *arg); | |
27 | ||
28 | #endif |