From 73f1ee024362d67e4475c3eced36b3941b42627a Mon Sep 17 00:00:00 2001 From: ASHUTOSH NARAYAN Date: Sun, 18 Jan 2015 20:45:00 -0500 Subject: [PATCH] HS20: Fix TrustRoot path for PolicyUpdate node in PPS MO Incorrect TrustRoot path "PolicyUpdate/TrustRoot" was used. The TrustRoot path is required to be "Policy/PolicyUpdate/TrustRoot" as defined in Section 9.1 of Hotspot 2.0 (Release 2) specification. Fix the path to "Policy/PolicyUpdate/TrustRoot". Signed-off-by: ASHUTOSH NARAYAN --- hs20/client/osu_client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hs20/client/osu_client.c b/hs20/client/osu_client.c index d3f583ebe..e452aa704 100644 --- a/hs20/client/osu_client.c +++ b/hs20/client/osu_client.c @@ -397,9 +397,9 @@ static int cmd_dl_polupd_ca(struct hs20_osu_client *ctx, const char *pps_fname, } node = get_child_node(ctx->xml, pps, - "PolicyUpdate/TrustRoot"); + "Policy/PolicyUpdate/TrustRoot"); if (node == NULL) { - wpa_printf(MSG_INFO, "No PolicyUpdate/TrustRoot/CertURL found from PPS"); + wpa_printf(MSG_INFO, "No Policy/PolicyUpdate/TrustRoot/CertURL found from PPS"); xml_node_free(ctx->xml, pps); return -1; }