aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorJouni Malinen <jouni@codeaurora.org>2018-04-30 17:07:55 (GMT)
committerJouni Malinen <j@w1.fi>2018-04-30 17:12:36 (GMT)
commit04ee197f87685d2042240742e88670e25d8b0ea3 (patch)
tree46ce1d060b8a197e857c86e4eccd4315f3020ab7 /hostapd
parent625a8c86ba1c9ba7bc469184c07cef48f68d47da (diff)
downloadhostap-04ee197f87685d2042240742e88670e25d8b0ea3.zip
hostap-04ee197f87685d2042240742e88670e25d8b0ea3.tar.gz
hostap-04ee197f87685d2042240742e88670e25d8b0ea3.tar.bz2
HS 2.0: Maintain a database of pending T&C acceptance sessions
The new SQLite table pending_tc is used to maintain a list of sessions that need to accept Terms and Conditions. This information can be used on an external Terms and Conditions server to map the incoming MAC address information into user identity. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/hostapd.eap_user_sqlite5
1 files changed, 5 insertions, 0 deletions
diff --git a/hostapd/hostapd.eap_user_sqlite b/hostapd/hostapd.eap_user_sqlite
index 1ee1843..fdae4e0 100644
--- a/hostapd/hostapd.eap_user_sqlite
+++ b/hostapd/hostapd.eap_user_sqlite
@@ -25,3 +25,8 @@ CREATE TABLE authlog(
username TEXT,
note TEXT
);
+
+CREATE TABLE pending_tc(
+ mac_addr TEXT PRIMARY KEY,
+ identity TEXT
+);