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 <quic_jouni@quicinc.com>
This commit is contained in:
Jouni Malinen 2021-12-03 12:22:58 +02:00 committed by Jouni Malinen
parent 77ddd38b66
commit 0cfb726895

View 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));