From 050e200061d2b5002251c85a83c55bb7e1864a39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Ter=C3=A4s?= Date: Fri, 3 Sep 2010 13:41:04 +0300 Subject: auth-ip: implement logout Implement logout function and some minor fixes. --- authdb.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'authdb.c') diff --git a/authdb.c b/authdb.c index 77620a3..997e45c 100644 --- a/authdb.c +++ b/authdb.c @@ -224,6 +224,11 @@ void authdb_commit_login(void *token, struct authdb_entry *e, time_t now) authdb_set(token, e); } +void authdb_commit_logout(void *token) +{ + memset(token, 0, sizeof(struct authdb_entry)); +} + void authdb_commit_override(void *token, struct authdb_entry *e, time_t now) { struct authdb_entry *mme = token; -- cgit v1.2.3