]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
DPP2: Add ppKey into Connector
authorJouni Malinen <jouni@codeaurora.org>
Tue, 13 Oct 2020 17:16:58 +0000 (20:16 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 13 Oct 2020 20:38:47 +0000 (23:38 +0300)
This provides the new privacy protection key to the Enrollee so that
this can be used to protect E-id in Reconfig Announcement frames.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
src/common/dpp.c

index b3bbbf855c31969c9465e05643e2966e71dbe8d6..72ddd4e0573faf011927fb17030e5c56094e908a 100644 (file)
@@ -1586,6 +1586,16 @@ skip_groups:
                wpa_printf(MSG_DEBUG, "DPP: Failed to build csign JWK");
                goto fail;
        }
+#ifdef CONFIG_DPP2
+       if (auth->peer_version >= 2 && auth->conf->pp_key) {
+               json_value_sep(buf);
+               if (dpp_build_jwk(buf, "ppKey", auth->conf->pp_key, NULL,
+                                 curve) < 0) {
+                       wpa_printf(MSG_DEBUG, "DPP: Failed to build ppKey JWK");
+                       goto fail;
+               }
+       }
+#endif /* CONFIG_DPP2 */
 
        json_end_object(buf);
        json_end_object(buf);