DPP: Allow 3rd party information to be added into config request obj

This allows the DPP Configuration Request Object from an Enrollee to be
extended with 3rd party information. The new dpp_extra_conf_req_name and
dpp_extra_conf_req_value configuration parameters specify the name of
the added JSON node and its contents. For example:
dpp_extra_conf_req_name=org.example
dpp_extra_conf_req_value={"a":1,"b":"test"}

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
This commit is contained in:
Jouni Malinen 2022-07-16 12:31:28 +03:00 committed by Jouni Malinen
parent 3d82fbe058
commit 0e2217c95b
12 changed files with 113 additions and 13 deletions

View file

@ -1543,6 +1543,16 @@ static void wpa_config_write_global(FILE *f, struct wpa_config *config)
if (config->dpp_config_processing)
fprintf(f, "dpp_config_processing=%d\n",
config->dpp_config_processing);
if (config->dpp_name)
fprintf(f, "dpp_name=%s\n", config->dpp_name);
if (config->dpp_mud_url)
fprintf(f, "dpp_mud_url=%s\n", config->dpp_mud_url);
if (config->dpp_extra_conf_req_name)
fprintf(f, "dpp_extra_conf_req_name=%s\n",
config->dpp_extra_conf_req_name);
if (config->dpp_extra_conf_req_value)
fprintf(f, "dpp_extra_conf_req_value=%s\n",
config->dpp_extra_conf_req_value);
if (config->coloc_intf_reporting)
fprintf(f, "coloc_intf_reporting=%d\n",
config->coloc_intf_reporting);