9 typedef struct pw_context pw_context;
11 typedef enum pw_status
22 pw_status pw_init_context(sqlite3 *db, pw_context **ctx);
24 pw_status pw_set(pw_context *, char *user, char *pass);
25 pw_status pw_check(pw_context *, char *user, char *pass);
26 pw_status pw_reset_with_token(
27 pw_context *, char *user, char *newpass, char *token
30 pw_status pw_token_create(
31 pw_context *ctx, char *user,
32 unsigned char **token, unsigned int *token_len
34 pw_status pw_token_redeem(pw_context *, char *token);
35 pw_status pw_token_revoke(pw_context *, char *token);