HS20: Fix TrustRoot path for PolicyUpdate node in PPS MO
authorASHUTOSH NARAYAN <ashutoshx.narayan@intel.com>
Mon, 19 Jan 2015 01:45:00 +0000 (20:45 -0500)
committerJouni Malinen <j@w1.fi>
Tue, 20 Jan 2015 00:25:41 +0000 (02:25 +0200)
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>
hs20/client/osu_client.c

index d3f583e..e452aa7 100644 (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;
        }