]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
DPP3: Add version member to Connector
authorJouni Malinen <quic_jouni@quicinc.com>
Fri, 3 Dec 2021 10:22:58 +0000 (12:22 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 3 Dec 2021 19:24:59 +0000 (21:24 +0200)
Indicate the protocol version number that the Enrollee used during the
DPP exchange that resulted in the generation of the Connector.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
src/common/dpp.c

index f54b86f97cb623f620df1060a6c328f11f2f4e24..d36fcb84f09ff5da6f30e4e555974d02f6da3137 100644 (file)
@@ -1504,6 +1504,10 @@ skip_groups:
                json_value_sep(dppcon);
                json_add_string(dppcon, "expiry", expiry);
        }
+#ifdef CONFIG_DPP3
+       json_value_sep(dppcon);
+       json_add_int(dppcon, "version", auth->peer_version);
+#endif /* CONFIG_DPP3 */
        json_end_object(dppcon);
        wpa_printf(MSG_DEBUG, "DPP: dppCon: %s",
                   (const char *) wpabuf_head(dppcon));