Lines Matching defs:resp
199 struct wpabuf *resp;
204 resp = eap_eke_build_msg(data, id, 4, EAP_EKE_FAILURE);
205 if (resp)
206 wpabuf_put_be32(resp, failure_code);
216 return resp;
226 struct wpabuf *resp;
321 resp = eap_eke_build_msg(data, id,
324 if (resp == NULL) {
329 wpabuf_put_u8(resp, 1); /* NumProposals */
330 wpabuf_put_u8(resp, 0); /* Reserved */
331 wpabuf_put_data(resp, prop, 4); /* Selected Proposal */
332 wpabuf_put_u8(resp, EAP_EKE_ID_NAI);
334 wpabuf_put_data(resp, data->peerid, data->peerid_len);
337 data->msgs = wpabuf_alloc(wpabuf_len(reqData) + wpabuf_len(resp));
339 wpabuf_free(resp);
344 wpabuf_put_buf(data->msgs, resp);
348 return resp;
359 struct wpabuf *resp;
441 resp = eap_eke_build_msg(data, id,
444 if (resp == NULL) {
451 rpos = wpabuf_put(resp, data->sess.dhcomp_len);
453 wpabuf_free(resp);
465 wpabuf_free(resp);
471 prot_len = wpabuf_tailroom(resp);
473 wpabuf_put(resp, 0), &prot_len) < 0) {
474 wpabuf_free(resp);
479 wpabuf_put(resp, 0), prot_len);
480 wpabuf_put(resp, prot_len);
484 if (wpabuf_resize(&data->msgs, wpabuf_len(reqData) + wpabuf_len(resp))
486 wpabuf_free(resp);
491 wpabuf_put_buf(data->msgs, resp);
495 return resp;
505 struct wpabuf *resp;
579 resp = eap_eke_build_msg(data, id,
582 if (resp == NULL) {
587 prot_len = wpabuf_tailroom(resp);
589 wpabuf_put(resp, 0), &prot_len) < 0) {
590 wpabuf_free(resp);
594 wpabuf_put(resp, prot_len);
596 auth = wpabuf_put(resp, data->sess.prf_len);
598 wpabuf_free(resp);
609 wpabuf_free(resp);
622 return resp;
652 struct wpabuf *resp;
676 resp = eap_eke_process_id(data, ret, reqData, pos, end - pos);
679 resp = eap_eke_process_commit(sm, data, ret, reqData,
683 resp = eap_eke_process_confirm(data, ret, reqData,
687 resp = eap_eke_process_failure(data, ret, reqData,
699 return resp;