Lines Matching refs:resp
423 struct wpabuf **resp) in eap_fast_phase2_request() argument
453 *resp = eap_sm_buildIdentity(sm, hdr->identifier, 1); in eap_fast_phase2_request()
474 hdr, resp)) in eap_fast_phase2_request()
492 *resp = data->phase2_method->process(sm, data->phase2_priv, &iret, in eap_fast_phase2_request()
494 if (*resp == NULL || in eap_fast_phase2_request()
506 if (*resp == NULL && config && in eap_fast_phase2_request()
512 } else if (*resp == NULL) in eap_fast_phase2_request()
584 struct wpabuf *resp = NULL; in eap_fast_process_eap_payload_tlv() local
606 if (eap_fast_phase2_request(sm, data, ret, hdr, &resp)) { in eap_fast_process_eap_payload_tlv()
612 return eap_fast_tlv_eap_payload(resp); in eap_fast_process_eap_payload_tlv()
768 struct wpabuf *resp; in eap_fast_process_crypto_binding() local
804 resp = wpabuf_alloc(len); in eap_fast_process_crypto_binding()
805 if (resp == NULL) in eap_fast_process_crypto_binding()
814 wpabuf_clear_free(resp); in eap_fast_process_crypto_binding()
828 wpabuf_clear_free(resp); in eap_fast_process_crypto_binding()
833 pos = wpabuf_put(resp, sizeof(struct eap_tlv_crypto_binding_tlv)); in eap_fast_process_crypto_binding()
837 return resp; in eap_fast_process_crypto_binding()
1098 struct wpabuf **resp) in eap_fast_parse_decrypted() argument
1131 *resp = eap_fast_tlv_nak(0, tlv_type); in eap_fast_parse_decrypted()
1149 struct wpabuf *resp, in eap_fast_encrypt_response() argument
1152 if (resp == NULL) in eap_fast_encrypt_response()
1156 resp); in eap_fast_encrypt_response()
1159 resp, out_data)) { in eap_fast_encrypt_response()
1163 wpabuf_clear_free(resp); in eap_fast_encrypt_response()
1194 struct wpabuf *resp = NULL, *tmp; in eap_fast_process_decrypted() local
1198 if (eap_fast_parse_decrypted(decrypted, &tlv, &resp) < 0) in eap_fast_process_decrypted()
1200 if (resp) in eap_fast_process_decrypted()
1201 return eap_fast_encrypt_response(sm, data, resp, in eap_fast_process_decrypted()
1205 resp = eap_fast_tlv_result(EAP_TLV_RESULT_FAILURE, 0); in eap_fast_process_decrypted()
1206 return eap_fast_encrypt_response(sm, data, resp, in eap_fast_process_decrypted()
1211 resp = eap_fast_tlv_result(EAP_TLV_RESULT_FAILURE, 1); in eap_fast_process_decrypted()
1212 return eap_fast_encrypt_response(sm, data, resp, in eap_fast_process_decrypted()
1223 resp = wpabuf_concat(resp, tmp); in eap_fast_process_decrypted()
1229 resp = wpabuf_concat(resp, tmp); in eap_fast_process_decrypted()
1236 resp = wpabuf_concat(resp, tmp); in eap_fast_process_decrypted()
1246 resp = wpabuf_concat(resp, tmp); in eap_fast_process_decrypted()
1259 resp = wpabuf_concat(resp, tmp); in eap_fast_process_decrypted()
1264 resp = wpabuf_concat(tmp, resp); in eap_fast_process_decrypted()
1267 resp = wpabuf_concat(tmp, resp); in eap_fast_process_decrypted()
1270 if (resp && tlv.result == EAP_TLV_RESULT_SUCCESS && !failed && in eap_fast_process_decrypted()
1289 if (resp == NULL) { in eap_fast_process_decrypted()
1292 resp = wpabuf_alloc(1); in eap_fast_process_decrypted()
1295 return eap_fast_encrypt_response(sm, data, resp, identifier, in eap_fast_process_decrypted()
1545 struct wpabuf *resp; in eap_fast_process() local
1567 resp = NULL; in eap_fast_process()
1571 res = eap_fast_decrypt(sm, data, ret, id, &msg, &resp); in eap_fast_process()
1589 resp = data->pending_resp; in eap_fast_process()
1592 return resp; in eap_fast_process()
1614 &resp); in eap_fast_process()
1620 return resp; in eap_fast_process()
1627 data->pending_resp = resp; in eap_fast_process()
1654 wpabuf_clear_free(resp); in eap_fast_process()
1664 data->pending_phase2_req = resp; in eap_fast_process()
1665 resp = NULL; in eap_fast_process()
1666 res = eap_fast_decrypt(sm, data, ret, id, &msg, &resp); in eap_fast_process()
1671 wpabuf_clear_free(resp); in eap_fast_process()
1676 return resp; in eap_fast_process()