X-Git-Url: http://git.bytex64.net/?a=blobdiff_plain;f=common%2Fauth.h;h=647bd6fb3c94c83d506b03d4db6298561155534a;hb=13ce437d1c9120ac0813abbbf7602097e7ac14dc;hp=f73701b7ad59789a9a6d2082ca3bf8c869d092bf;hpb=a65aeec9e6152703de9c770e56e689b1356cddb0;p=blerg.git diff --git a/common/auth.h b/common/auth.h index f73701b..647bd6f 100644 --- a/common/auth.h +++ b/common/auth.h @@ -1,11 +1,14 @@ +/* Blerg is (C) 2011 The Dominion of Awesome, and is distributed under a + * BSD-style license. Please see the COPYING file for details. + */ #ifndef _AUTH_H #define _AUTH_H int auth_set_password(const char *, const char *); int auth_get_password(const char *, char *); int auth_check_password(const char *, const char *); -int auth_login(const char *username, const char *password); -int auth_logout(const char *username); -char *auth_get_token(const char *username); +char * auth_login(const char *username, const char *password); +int auth_logout(const char *username, const char *token); +int auth_check_token(const char *username, const char *given_token); #endif //_AUTH_H