Lines Matching refs:resp

268 static int eap_ttls_avp_encapsulate(struct wpabuf **resp, u32 avp_code,  in eap_ttls_avp_encapsulate()  argument
274 msg = wpabuf_alloc(sizeof(struct ttls_avp) + wpabuf_len(*resp) + 4); in eap_ttls_avp_encapsulate()
276 wpabuf_clear_free(*resp); in eap_ttls_avp_encapsulate()
277 *resp = NULL; in eap_ttls_avp_encapsulate()
282 pos = eap_ttls_avp_hdr(avp, avp_code, 0, mandatory, wpabuf_len(*resp)); in eap_ttls_avp_encapsulate()
283 os_memcpy(pos, wpabuf_head(*resp), wpabuf_len(*resp)); in eap_ttls_avp_encapsulate()
284 pos += wpabuf_len(*resp); in eap_ttls_avp_encapsulate()
286 wpabuf_clear_free(*resp); in eap_ttls_avp_encapsulate()
288 *resp = msg; in eap_ttls_avp_encapsulate()
376 struct wpabuf **resp) in eap_ttls_phase2_eap_process() argument
383 *resp = data->phase2_method->process(sm, data->phase2_priv, &iret, in eap_ttls_phase2_eap_process()
403 struct wpabuf **resp) in eap_ttls_phase2_request_eap_method() argument
411 resp); in eap_ttls_phase2_request_eap_method()
449 hdr, resp)) in eap_ttls_phase2_request_eap_method()
469 return eap_ttls_phase2_eap_process(sm, data, ret, hdr, len, resp); in eap_ttls_phase2_request_eap_method()
477 struct wpabuf **resp) in eap_ttls_phase2_request_eap() argument
492 *resp = eap_sm_buildIdentity(sm, hdr->identifier, 1); in eap_ttls_phase2_request_eap()
504 resp) < 0) in eap_ttls_phase2_request_eap()
510 resp) < 0) in eap_ttls_phase2_request_eap()
515 if (*resp == NULL && in eap_ttls_phase2_request_eap()
521 if (*resp == NULL) in eap_ttls_phase2_request_eap()
525 *resp); in eap_ttls_phase2_request_eap()
526 return eap_ttls_avp_encapsulate(resp, RADIUS_ATTR_EAP_MESSAGE, 1); in eap_ttls_phase2_request_eap()
533 struct wpabuf **resp) in eap_ttls_phase2_request_mschapv2() argument
614 *resp = msg; in eap_ttls_phase2_request_mschapv2()
628 struct wpabuf **resp) in eap_ttls_phase2_request_mschap() argument
716 *resp = msg; in eap_ttls_phase2_request_mschap()
731 struct wpabuf **resp) in eap_ttls_phase2_request_pap() argument
771 *resp = msg; in eap_ttls_phase2_request_pap()
785 struct wpabuf **resp) in eap_ttls_phase2_request_chap() argument
851 *resp = msg; in eap_ttls_phase2_request_chap()
867 struct wpabuf **resp) in eap_ttls_phase2_request() argument
903 res = eap_ttls_phase2_request_eap(sm, data, ret, hdr, resp); in eap_ttls_phase2_request()
906 res = eap_ttls_phase2_request_mschapv2(sm, data, ret, resp); in eap_ttls_phase2_request()
909 res = eap_ttls_phase2_request_mschap(sm, data, ret, resp); in eap_ttls_phase2_request()
912 res = eap_ttls_phase2_request_pap(sm, data, ret, resp); in eap_ttls_phase2_request()
915 res = eap_ttls_phase2_request_chap(sm, data, ret, resp); in eap_ttls_phase2_request()
1119 struct wpabuf *resp, u8 identifier, in eap_ttls_encrypt_response() argument
1122 if (resp == NULL) in eap_ttls_encrypt_response()
1126 resp); in eap_ttls_encrypt_response()
1129 resp, out_data)) { in eap_ttls_encrypt_response()
1132 wpabuf_clear_free(resp); in eap_ttls_encrypt_response()
1135 wpabuf_clear_free(resp); in eap_ttls_encrypt_response()
1145 struct wpabuf **resp) in eap_ttls_process_phase2_eap() argument
1181 if (eap_ttls_phase2_request(sm, data, ret, hdr, resp)) { in eap_ttls_process_phase2_eap()
1263 struct wpabuf **resp) in eap_ttls_process_tnc_start() argument
1282 if (eap_ttls_process_phase2_eap(sm, data, ret, parse, resp) < 0) in eap_ttls_process_tnc_start()
1298 struct wpabuf *resp = NULL; in eap_ttls_process_decrypted() local
1310 if (eap_ttls_process_phase2_eap(sm, data, ret, parse, &resp) < in eap_ttls_process_decrypted()
1325 &resp) == 0) in eap_ttls_process_decrypted()
1334 if (eap_ttls_process_tnc_start(sm, data, ret, parse, &resp) < in eap_ttls_process_decrypted()
1347 if (resp) { in eap_ttls_process_decrypted()
1348 if (eap_ttls_encrypt_response(sm, data, resp, identifier, in eap_ttls_process_decrypted()
1372 struct wpabuf *resp; in eap_ttls_implicit_identity_request() local
1381 resp = NULL; in eap_ttls_implicit_identity_request()
1382 if (eap_ttls_phase2_request(sm, data, ret, hdr, &resp)) { in eap_ttls_implicit_identity_request()
1388 if (resp == NULL && in eap_ttls_implicit_identity_request()
1403 retval = eap_ttls_encrypt_response(sm, data, resp, identifier, in eap_ttls_implicit_identity_request()
1680 struct wpabuf *resp; in eap_ttls_process() local
1706 resp = NULL; in eap_ttls_process()
1709 res = eap_ttls_decrypt(sm, data, ret, id, &msg, &resp); in eap_ttls_process()
1712 &msg, &resp); in eap_ttls_process()
1720 wpabuf_clear_free(resp); in eap_ttls_process()
1724 return resp; in eap_ttls_process()