X-Git-Url: http://git.bytex64.net/?a=blobdiff_plain;f=common%2Fauth.h;h=d180bfde8d4d72ee5a579e8d07a133da906ba100;hb=54789cc8538714fc3622646721f6f2ecceae94ac;hp=f73701b7ad59789a9a6d2082ca3bf8c869d092bf;hpb=a65aeec9e6152703de9c770e56e689b1356cddb0;p=blerg.git diff --git a/common/auth.h b/common/auth.h index f73701b..d180bfd 100644 --- a/common/auth.h +++ b/common/auth.h @@ -1,3 +1,6 @@ +/* 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 @@ -7,5 +10,6 @@ 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); +int auth_check_token(const char *username, const char *given_token); #endif //_AUTH_H