Lines Matching refs:json
1655 const char *json) in dpp_build_conf_req_attr() argument
1671 json_len = os_strlen(json); in dpp_build_conf_req_attr()
1672 wpa_hexdump_ascii(MSG_DEBUG, "DPP: configRequest JSON", (u8 *)json, json_len); in dpp_build_conf_req_attr()
1720 wpabuf_put_data(clear, json, json_len); in dpp_build_conf_req_attr()
1782 const char *json) in dpp_build_conf_req() argument
1786 conf_req = dpp_build_conf_req_attr(auth, json); in dpp_build_conf_req()
1816 struct wpabuf *buf, *json; in dpp_build_conf_req_helper() local
1833 json = wpabuf_alloc(len); in dpp_build_conf_req_helper()
1834 if (!json) in dpp_build_conf_req_helper()
1837 json_start_object(json, NULL); in dpp_build_conf_req_helper()
1838 if (json_add_string_escape(json, "name", dpp_name, name_len) < 0) { in dpp_build_conf_req_helper()
1839 wpabuf_free(json); in dpp_build_conf_req_helper()
1842 json_value_sep(json); in dpp_build_conf_req_helper()
1843 json_add_string(json, "wi-fi_tech", tech); in dpp_build_conf_req_helper()
1844 json_value_sep(json); in dpp_build_conf_req_helper()
1845 json_add_string(json, "netRole", dpp_netrole_str(netrole)); in dpp_build_conf_req_helper()
1847 json_value_sep(json); in dpp_build_conf_req_helper()
1848 json_add_string(json, "mudurl", mud_url); in dpp_build_conf_req_helper()
1853 json_value_sep(json); in dpp_build_conf_req_helper()
1854 json_start_array(json, "bandSupport"); in dpp_build_conf_req_helper()
1856 wpabuf_printf(json, "%s%u", i ? "," : "", opclasses[i]); in dpp_build_conf_req_helper()
1857 json_end_array(json); in dpp_build_conf_req_helper()
1859 json_end_object(json); in dpp_build_conf_req_helper()
1861 buf = dpp_build_conf_req(auth, wpabuf_head(json)); in dpp_build_conf_req_helper()
1862 wpabuf_free(json); in dpp_build_conf_req_helper()