X-Git-Url: https://git.hcoop.net/hcoop/debian/courier-authlib.git/blobdiff_plain/1420868b3e321353480efbb7eb35e1e8d9943223..463a5c942956f42fce366796356201639cb0d92b:/authpgsql.h diff --git a/authpgsql.h b/authpgsql.h index e89b521..4a87932 100644 --- a/authpgsql.h +++ b/authpgsql.h @@ -10,24 +10,15 @@ /* #include */ -struct authpgsqluserinfo { - char *username; - char *fullname; - char *cryptpw; - char *clearpw; - char *home; - char *maildir; - char *quota; - char *options; - uid_t uid; - gid_t gid; - } ; -extern struct authpgsqluserinfo *auth_pgsql_getuserinfo(const char *, - const char *service); -extern void auth_pgsql_cleanup(); +extern int auth_pgsql_login(const char *service, char *authdata, + int (*callback_func)(struct authinfo *, void *), + void *callback_arg); +extern int auth_pgsql_changepw(const char *service, const char *user, + const char *pass, + const char *newpass); -extern int auth_pgsql_setpass(const char *, const char *, const char *); +extern void auth_pgsql_cleanup(); struct authinfo;