#ifndef LIBPW_PW_H #define LIBPW_PW_H #include #include #include bool pw_set(sqlite3 *db, char *user, char *pass); bool pw_check(sqlite3 *db, char *user, char *pass); bool pw_reset_with_token(sqlite3 *db, char *user, char *newpass, char *token); char *pw_token_create(sqlite3 *db, char *user, bool nocase, struct tm *issued_at, struct tm *expires_at); bool pw_token_redeem(sqlite3 *db, char *token); bool pw_token_revoke(sqlite3 *db, char *token); //bool pw_token_is_active(sqlite3 *db, char *token, char *user, bool nocase); #endif