Lines Matching refs:resp
91 struct wpabuf *resp; in eap_tnc_build_msg() local
113 resp = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_TNC, plen, in eap_tnc_build_msg()
115 if (resp == NULL) in eap_tnc_build_msg()
118 wpabuf_put_u8(resp, flags); /* Flags */ in eap_tnc_build_msg()
120 wpabuf_put_be32(resp, wpabuf_len(data->out_buf)); in eap_tnc_build_msg()
122 wpabuf_put_data(resp, wpabuf_head_u8(data->out_buf) + data->out_used, in eap_tnc_build_msg()
144 return resp; in eap_tnc_build_msg()
206 struct wpabuf *resp; in eap_tnc_process() local
354 resp = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_TNC, 1, in eap_tnc_process()
356 if (resp == NULL) in eap_tnc_process()
359 wpabuf_put_u8(resp, EAP_TNC_VERSION); in eap_tnc_process()
362 return resp; in eap_tnc_process()
379 resp = wpabuf_alloc(rlen); in eap_tnc_process()
380 if (resp == NULL) { in eap_tnc_process()
386 wpabuf_put_data(resp, start_buf, start_len); in eap_tnc_process()
389 rpos1 = wpabuf_put(resp, 0); in eap_tnc_process()
391 wpabuf_put(resp, rpos - rpos1); in eap_tnc_process()
393 wpabuf_put_data(resp, end_buf, end_len); in eap_tnc_process()
397 wpabuf_head(resp), wpabuf_len(resp)); in eap_tnc_process()
399 data->out_buf = resp; in eap_tnc_process()