From: ASHUTOSH NARAYAN Date: Mon, 19 Jan 2015 01:45:00 +0000 (-0500) Subject: HS20: Fix TrustRoot path for PolicyUpdate node in PPS MO X-Git-Tag: hostap_2_4~335 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=73f1ee024362d67e4475c3eced36b3941b42627a;p=thirdparty%2Fhostap.git 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 --- 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; }