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 <ashutoshx.narayan@intel.com>
This commit is contained in:
ASHUTOSH NARAYAN 2015-01-18 20:45:00 -05:00 committed by Jouni Malinen
parent 54a0ac0ccf
commit 73f1ee0243

View file

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