From: Jouni Malinen Date: Fri, 3 Dec 2021 10:22:58 +0000 (+0200) Subject: DPP3: Add version member to Connector X-Git-Tag: hostap_2_10~52 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0cfb726895c82f853e307683d4b2a7131e0588fa;p=thirdparty%2Fhostap.git DPP3: Add version member to Connector 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 --- diff --git a/src/common/dpp.c b/src/common/dpp.c index f54b86f97..d36fcb84f 100644 --- a/src/common/dpp.c +++ b/src/common/dpp.c @@ -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));