projects
/
blerg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix latest posts and tags on the welcome screen
[blerg.git]
/
common
/
auth.h
diff --git
a/common/auth.h
b/common/auth.h
index
da024c9
..
647bd6f
100644
(file)
--- a/
common/auth.h
+++ b/
common/auth.h
@@
-1,8
+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 *);
#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 *);
+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
#endif //_AUTH_H