From 0cfb726895c82f853e307683d4b2a7131e0588fa Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 3 Dec 2021 12:22:58 +0200 Subject: [PATCH] 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 --- src/common/dpp.c | 4 ++++ 1 file changed, 4 insertions(+) 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)); -- 2.47.2