Check auth for logout
[blerg.git] / common / auth.h
1 #ifndef _AUTH_H
2 #define _AUTH_H
3
4 int auth_set_password(const char *, const char *);
5 int auth_get_password(const char *, char *);
6 int auth_check_password(const char *, const char *);
7 int auth_login(const char *username, const char *password);
8 int auth_logout(const char *username);
9 char *auth_get_token(const char *username);
10 int auth_check_token(const char *username, const char *given_token);
11
12 #endif //_AUTH_H