summaryrefslogtreecommitdiffstats
path: root/src/authdb.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/authdb.h')
-rw-r--r--src/authdb.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/authdb.h b/src/authdb.h
index 7bfa2f4..562ed17 100644
--- a/src/authdb.h
+++ b/src/authdb.h
@@ -18,6 +18,7 @@ struct authdb_config {
uint64_t block_categories;
uint64_t hard_block_categories;
blob_t redirect_url_base;
+ unsigned int logout_timeout;
};
struct authdb {
@@ -52,7 +53,7 @@ void *authdb_get(struct authdb *adb, sockaddr_any *addr, struct authdb_entry *en
void authdb_clear_entry(struct authdb_entry *entry);
int authdb_set(void *token, struct authdb_entry *entry);
-int authdb_check_login(void *token, struct authdb_entry *e, blob_t username, time_t now);
+int authdb_check_login(void *token, struct authdb_entry *e, blob_t username, time_t now, struct authdb_config *cfg);
void authdb_commit_login(void *token, struct authdb_entry *e, time_t now, struct authdb_config *cfg);
void authdb_commit_logout(void *token);
void authdb_commit_override(void *token, struct authdb_entry *entry, time_t now);