aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <jouni@codeaurora.org>2018-10-19 16:00:37 (GMT)
committerJouni Malinen <j@w1.fi>2018-10-19 16:00:37 (GMT)
commitba7d3fe920347719a8a2d61da8e9175b7f300080 (patch)
tree7d228677ba693148d912b7110a501ca0a0906555
parent4939e2bb97c78292c5baa2cc66000b70be759e81 (diff)
downloadhostap-ba7d3fe920347719a8a2d61da8e9175b7f300080.zip
hostap-ba7d3fe920347719a8a2d61da8e9175b7f300080.tar.gz
hostap-ba7d3fe920347719a8a2d61da8e9175b7f300080.tar.bz2
HS 2.0: Record policy update into users table
This makes it easier to track whether a policy update has been successfully completed. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
-rw-r--r--hs20/server/spp_server.c3
-rw-r--r--hs20/server/sql.txt3
2 files changed, 5 insertions, 1 deletions
diff --git a/hs20/server/spp_server.c b/hs20/server/spp_server.c
index 584a2bd..e5af4c2 100644
--- a/hs20/server/spp_server.c
+++ b/hs20/server/spp_server.c
@@ -2262,6 +2262,9 @@ static xml_node_t * hs20_spp_update_response(struct hs20_svc *ctx,
"", dmacc);
free(val);
}
+ if (oper == POLICY_UPDATE)
+ db_update_val(ctx, user, realm, "polupd_done", "1",
+ dmacc);
ret = build_spp_exchange_complete(
ctx, session_id,
"Exchange complete, release TLS connection", NULL);
diff --git a/hs20/server/sql.txt b/hs20/server/sql.txt
index 8fa019f..666ef13 100644
--- a/hs20/server/sql.txt
+++ b/hs20/server/sql.txt
@@ -55,7 +55,8 @@ CREATE TABLE users(
cert_pem TEXT,
t_c_timestamp INTEGER,
mac_addr TEXT,
- last_msk TEXT
+ last_msk TEXT,
+ polupd_done TEXT,
);
CREATE TABLE wildcards(