summaryrefslogtreecommitdiff
path: root/jni/iodine/src/user.h
diff options
context:
space:
mode:
Diffstat (limited to 'jni/iodine/src/user.h')
-rw-r--r--jni/iodine/src/user.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/jni/iodine/src/user.h b/jni/iodine/src/user.h
index 51a6092..76fc54b 100644
--- a/jni/iodine/src/user.h
+++ b/jni/iodine/src/user.h
@@ -1,5 +1,6 @@
/*
- * Copyright (c) 2006-2009 Bjorn Andersson <flex@kryo.se>, Erik Ekman <yarrick@kryo.se>
+ * Copyright (c) 2006-2014 Erik Ekman <yarrick@kryo.se>,
+ * 2006-2009 Bjorn Andersson <flex@kryo.se>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -33,9 +34,11 @@
#define QMEMDATA_LEN 15
/* Max advisable: 36/2 = 18. Total mem usage: QMEMDATA_LEN * USERS * 6 bytes */
-struct user {
+struct tun_user {
char id;
int active;
+ int authenticated;
+ int authenticated_raw;
int disabled;
time_t last_pkt;
int seed;
@@ -73,7 +76,7 @@ struct user {
#endif
};
-extern struct user users[USERS];
+extern struct tun_user *users;
int init_users(in_addr_t, int);
const char* users_get_first_ip();