[PATCH 2/4] HS20: Fix for TrustRoot path for PolicyUpdate node in PPS MO

Ilan Peer ilan.peer
Sun Jan 18 17:45:00 PST 2015


From: ASHUTOSH NARAYAN <ashutoshx.narayan at intel.com>

In the original code, the TrustRoot path is "PolicyUpdate/TrustRoot", which is
incorrect. The TrustRoot path is required to be "Policy/PolicyUpdate/TrustRoot"
as defined in Section 9.1 of the spec Hotspot2.0_rel_2(version 5.0). This patch
corrects the path to "Policy/PolicyUpdate/TrustRoot".

Signed-off-by: ASHUTOSH NARAYAN <ashutoshx.narayan at intel.com>
---
 hs20/client/osu_client.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hs20/client/osu_client.c b/hs20/client/osu_client.c
index c3e4bec..1d898dc 100644
--- a/hs20/client/osu_client.c
+++ b/hs20/client/osu_client.c
@@ -397,7 +397,7 @@ 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");
 		xml_node_free(ctx->xml, pps);
-- 
1.8.3.2




More information about the Hostap mailing list