Lines Matching refs:plain

205 	struct wpabuf *msg, *plain;  in wps_build_m5()  local
209 plain = wpabuf_alloc(200); in wps_build_m5()
210 if (plain == NULL) in wps_build_m5()
215 wpabuf_free(plain); in wps_build_m5()
222 wps_build_e_snonce1(wps, plain) || in wps_build_m5()
223 wps_build_key_wrap_auth(wps, plain) || in wps_build_m5()
224 wps_build_encr_settings(wps, msg, plain) || in wps_build_m5()
227 wpabuf_free(plain); in wps_build_m5()
231 wpabuf_free(plain); in wps_build_m5()
344 static int wps_build_ap_settings(struct wps_data *wps, struct wpabuf *plain) in wps_build_ap_settings() argument
351 wpabuf_put_data(plain, wps->wps->ap_settings, in wps_build_ap_settings()
357 start = wpabuf_put(plain, 0); in wps_build_ap_settings()
358 ret = wps_build_cred_ssid(wps, plain) || in wps_build_ap_settings()
359 wps_build_cred_mac_addr(wps, plain) || in wps_build_ap_settings()
360 wps_build_cred_auth_type(wps, plain) || in wps_build_ap_settings()
361 wps_build_cred_encr_type(wps, plain) || in wps_build_ap_settings()
362 wps_build_cred_network_key(wps, plain); in wps_build_ap_settings()
363 end = wpabuf_put(plain, 0); in wps_build_ap_settings()
374 struct wpabuf *msg, *plain; in wps_build_m7() local
378 plain = wpabuf_alloc(500 + wps->wps->ap_settings_len); in wps_build_m7()
379 if (plain == NULL) in wps_build_m7()
384 wpabuf_free(plain); in wps_build_m7()
391 wps_build_e_snonce2(wps, plain) || in wps_build_m7()
392 (wps->wps->ap && wps_build_ap_settings(wps, plain)) || in wps_build_m7()
393 wps_build_key_wrap_auth(wps, plain) || in wps_build_m7()
394 wps_build_encr_settings(wps, msg, plain) || in wps_build_m7()
397 wpabuf_free(plain); in wps_build_m7()
401 wpabuf_free(plain); in wps_build_m7()