From 4939e2bb97c78292c5baa2cc66000b70be759e81 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 19 Oct 2018 18:07:37 +0300 Subject: [PATCH] HS 2.0: Rename PPS/Credential1 node to Cred01 This makes it a bit easier to use existing hardcoded PPS MO files for testing purposes when the subscription remediation and policy update operations target the same path. Signed-off-by: Jouni Malinen --- hs20/server/spp_server.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/hs20/server/spp_server.c b/hs20/server/spp_server.c index 1e6c7f74f..584a2bde6 100644 --- a/hs20/server/spp_server.c +++ b/hs20/server/spp_server.c @@ -768,7 +768,7 @@ static xml_node_t * build_sub_rem_resp(struct hs20_svc *ctx, } snprintf(buf, sizeof(buf), - "./Wi-Fi/%s/PerProviderSubscription/Credential1/Credential", + "./Wi-Fi/%s/PerProviderSubscription/Cred01/Credential", realm); if (add_update_node(ctx, spp_node, ns, buf, cred) < 0) { @@ -834,7 +834,7 @@ static xml_node_t * policy_remediation(struct hs20_svc *ctx, return NULL; snprintf(buf, sizeof(buf), - "./Wi-Fi/%s/PerProviderSubscription/Credential1/Policy", + "./Wi-Fi/%s/PerProviderSubscription/Cred01/Policy", realm); if (add_update_node(ctx, spp_node, ns, buf, policy) < 0) { @@ -1092,7 +1092,7 @@ static xml_node_t * hs20_policy_update(struct hs20_svc *ctx, return NULL; snprintf(buf, sizeof(buf), - "./Wi-Fi/%s/PerProviderSubscription/Credential1/Policy", + "./Wi-Fi/%s/PerProviderSubscription/Cred01/Policy", realm); if (add_update_node(ctx, spp_node, ns, buf, policy) < 0) { @@ -1276,7 +1276,7 @@ static xml_node_t * build_pps(struct hs20_svc *ctx, add_text_node(ctx, pps, "UpdateIdentifier", "1"); - c = xml_node_create(ctx->xml, pps, NULL, "Credential1"); + c = xml_node_create(ctx->xml, pps, NULL, "Cred01"); add_text_node(ctx, c, "CredentialPriority", "1"); @@ -1565,7 +1565,7 @@ static xml_node_t * hs20_user_input_free_remediation(struct hs20_svc *ctx, return NULL; snprintf(buf, sizeof(buf), - "./Wi-Fi/%s/PerProviderSubscription/Credential1/Credential", + "./Wi-Fi/%s/PerProviderSubscription/Cred01/Credential", realm); if (add_update_node(ctx, spp_node, ns, buf, cred) < 0) {