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>
This commit is contained in:
Jouni Malinen 2018-10-19 19:00:37 +03:00 committed by Jouni Malinen
parent 4939e2bb97
commit ba7d3fe920
2 changed files with 5 additions and 1 deletions

View File

@ -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);

View File

@ -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(