Lines Matching refs:resp

148 	struct wpabuf *resp;  in eap_sake_process_identity()  local
168 resp = eap_sake_build_msg(data, id, 2 + data->peerid_len, in eap_sake_process_identity()
170 if (resp == NULL) in eap_sake_process_identity()
174 eap_sake_add_attr(resp, EAP_SAKE_AT_PEERID, in eap_sake_process_identity()
179 return resp; in eap_sake_process_identity()
191 struct wpabuf *resp; in eap_sake_process_challenge() local
251 resp = eap_sake_build_msg(data, id, rlen, EAP_SAKE_SUBTYPE_CHALLENGE); in eap_sake_process_challenge()
252 if (resp == NULL) in eap_sake_process_challenge()
256 eap_sake_add_attr(resp, EAP_SAKE_AT_RAND_P, in eap_sake_process_challenge()
261 eap_sake_add_attr(resp, EAP_SAKE_AT_PEERID, in eap_sake_process_challenge()
266 wpabuf_put_u8(resp, EAP_SAKE_AT_MIC_P); in eap_sake_process_challenge()
267 wpabuf_put_u8(resp, 2 + EAP_SAKE_MIC_LEN); in eap_sake_process_challenge()
268 rpos = wpabuf_put(resp, EAP_SAKE_MIC_LEN); in eap_sake_process_challenge()
272 wpabuf_head(resp), wpabuf_len(resp), rpos, in eap_sake_process_challenge()
275 wpabuf_free(resp); in eap_sake_process_challenge()
281 return resp; in eap_sake_process_challenge()
295 struct wpabuf *resp; in eap_sake_process_confirm() local
342 resp = eap_sake_build_msg(data, id, 2 + EAP_SAKE_MIC_LEN, in eap_sake_process_confirm()
344 if (resp == NULL) in eap_sake_process_confirm()
348 wpabuf_put_u8(resp, EAP_SAKE_AT_MIC_P); in eap_sake_process_confirm()
349 wpabuf_put_u8(resp, 2 + EAP_SAKE_MIC_LEN); in eap_sake_process_confirm()
350 rpos = wpabuf_put(resp, EAP_SAKE_MIC_LEN); in eap_sake_process_confirm()
354 wpabuf_head(resp), wpabuf_len(resp), rpos, in eap_sake_process_confirm()
357 wpabuf_free(resp); in eap_sake_process_confirm()
366 return resp; in eap_sake_process_confirm()
376 struct wpabuf *resp; in eap_sake_process() local
415 resp = eap_sake_process_identity(sm, data, ret, id, in eap_sake_process()
419 resp = eap_sake_process_challenge(sm, data, ret, id, in eap_sake_process()
423 resp = eap_sake_process_confirm(sm, data, ret, id, reqData, in eap_sake_process()
436 return resp; in eap_sake_process()