Home
last modified time | relevance | path

Searched refs:eap_hdr (Results 1 – 25 of 27) sorted by relevance

12

/freebsd/contrib/wpa/src/eap_common/
H A Deap_common.c27 const struct eap_hdr *hdr; in eap_hdr_len_valid()
69 const struct eap_hdr *hdr; in eap_hdr_validate()
132 struct eap_hdr *hdr; in eap_msg_alloc()
135 len = sizeof(struct eap_hdr) + (vendor == EAP_VENDOR_IETF ? 1 : 8) + in eap_msg_alloc()
169 struct eap_hdr *hdr; in eap_update_len()
184 const struct eap_hdr *eap; in eap_get_id()
201 if (wpabuf_len(msg) < sizeof(struct eap_hdr) + 1) in eap_get_type()
204 return ((const u8 *) wpabuf_head(msg))[sizeof(struct eap_hdr)]; in eap_get_type()
H A Deap_defs.h18 struct eap_hdr { struct
H A Deap_sim_common.c983 struct eap_hdr *eap; in eap_sim_msg_init()
1013 struct eap_hdr *eap; in eap_sim_msg_finish()
/freebsd/contrib/wpa/src/eap_peer/
H A Deap_peap.c601 struct eap_hdr *hdr = wpabuf_mhead(req); in eap_peap_phase2_request()
609 if (len <= sizeof(struct eap_hdr)) { in eap_peap_phase2_request()
675 if (len < sizeof(struct eap_hdr) + 8) { in eap_peap_phase2_request()
760 const struct eap_hdr *req, in eap_peap_decrypt()
766 struct eap_hdr *hdr, *rhdr; in eap_peap_decrypt()
829 struct eap_hdr *nhdr; in eap_peap_decrypt()
915 resp = wpabuf_alloc(sizeof(struct eap_hdr)); in eap_peap_decrypt()
940 resp = wpabuf_alloc(sizeof(struct eap_hdr)); in eap_peap_decrypt()
970 sizeof(struct eap_hdr), in eap_peap_decrypt()
971 wpabuf_len(resp) - sizeof(struct eap_hdr)); in eap_peap_decrypt()
[all …]
H A Deap_ttls.c350 struct eap_hdr *hdr, size_t len, in eap_ttls_phase2_eap_process()
376 struct eap_hdr *hdr, size_t len, in eap_ttls_phase2_request_eap_method()
451 struct eap_hdr *hdr, in eap_ttls_phase2_request_eap()
458 if (len <= sizeof(struct eap_hdr)) { in eap_ttls_phase2_request_eap()
470 if (len < sizeof(struct eap_hdr) + 8) { in eap_ttls_phase2_request_eap()
841 struct eap_hdr *hdr, in eap_ttls_phase2_request()
1070 struct eap_hdr *hdr; in eap_ttls_fake_identity_request()
1082 hdr = (struct eap_hdr *) buf; in eap_ttls_fake_identity_request()
1122 struct eap_hdr *hdr; in eap_ttls_process_phase2_eap()
1133 hdr = (struct eap_hdr *) parse->eapdata; in eap_ttls_process_phase2_eap()
[all …]
H A Deap_tls_common.h138 struct eap_hdr *hdr, struct wpabuf **resp);
H A Deap_gtc.c115 wpabuf_head_u8(resp) + sizeof(struct eap_hdr) + in eap_gtc_process()
H A Deap_fast.c421 struct eap_hdr *hdr, in eap_fast_phase2_request()
432 if (len <= sizeof(struct eap_hdr)) { in eap_fast_phase2_request()
440 if (len < sizeof(struct eap_hdr) + 8) { in eap_fast_phase2_request()
582 struct eap_hdr *hdr; in eap_fast_process_eap_payload_tlv()
592 hdr = (struct eap_hdr *) eap_payload_tlv; in eap_fast_process_eap_payload_tlv()
1551 const struct eap_hdr *req; in eap_fast_process()
H A Deap.h372 void eap_peer_finish(struct eap_sm *sm, const struct eap_hdr *hdr, size_t len);
H A Deap_psk.c284 sizeof(struct eap_hdr) + 1 + in eap_psk_process_3()
348 sizeof(struct eap_hdr) + 1 + sizeof(*hdr4), in eap_psk_process_3()
H A Deap_teap.c400 struct eap_hdr *hdr, in eap_teap_phase2_request()
411 if (len <= sizeof(struct eap_hdr)) { in eap_teap_phase2_request()
420 if (len < sizeof(struct eap_hdr) + 8) { in eap_teap_phase2_request()
554 struct eap_hdr *hdr; in eap_teap_process_eap_payload_tlv()
564 hdr = (struct eap_hdr *) eap_payload_tlv; in eap_teap_process_eap_payload_tlv()
1833 const struct eap_hdr *req; in eap_teap_process()
H A Deap_leap.c281 const struct eap_hdr *eap; in eap_leap_process()
H A Deap.c1466 sizeof(struct eap_hdr) + 1 + count + 1, in eap_sm_buildNak()
1772 static void eap_peer_initiate(struct eap_sm *sm, const struct eap_hdr *hdr, in eap_peer_initiate()
1823 void eap_peer_finish(struct eap_sm *sm, const struct eap_hdr *hdr, size_t len) in eap_peer_finish()
1986 const struct eap_hdr *hdr; in eap_sm_parseEapReq()
H A Deap_tls_common.c1186 struct eap_hdr *hdr, struct wpabuf **resp) in eap_peer_tls_phase2_nak()
H A Deap_sim.c1095 const struct eap_hdr *req; in eap_sim_process()
/freebsd/contrib/wpa/src/eap_server/
H A Deap_server_peap.c255 req += sizeof(struct eap_hdr); in eap_peap_build_phase2_req()
256 req_len -= sizeof(struct eap_hdr); in eap_peap_build_phase2_req()
295 req += sizeof(struct eap_hdr); in eap_peap_build_phase2_soh()
296 req_len -= sizeof(struct eap_hdr); in eap_peap_build_phase2_soh()
497 struct eap_hdr *hdr; in eap_peap_build_phase2_term()
946 const struct eap_hdr *hdr; in eap_peap_process_phase2_response()
1095 const struct eap_hdr *hdr; in eap_peap_process_phase2()
1124 const struct eap_hdr *resp; in eap_peap_process_phase2()
1125 struct eap_hdr *nhdr; in eap_peap_process_phase2()
1127 wpabuf_alloc(sizeof(struct eap_hdr) + in eap_peap_process_phase2()
[all …]
H A Deap_server.c598 const struct eap_hdr *nak; in SM_STATE()
800 const struct eap_hdr *ehdr; in SM_STATE()
1490 const struct eap_hdr *hdr; in eap_sm_parseEapResp()
1550 const struct eap_hdr *hdr; in eap_sm_getId()
1564 struct eap_hdr *resp; in eap_sm_buildSuccess()
1582 struct eap_hdr *resp; in eap_sm_buildFailure()
2012 const struct eap_hdr *hdr; in eap_erp_update_identity()
2018 hdr = (const struct eap_hdr *) eap; in eap_erp_update_identity()
H A Deap_server_ttls.c855 struct eap_hdr *hdr; in eap_ttls_process_phase2_eap_response()
868 hdr = (struct eap_hdr *) in_data; in eap_ttls_process_phase2_eap_response()
968 struct eap_hdr *hdr; in eap_ttls_process_phase2_eap()
987 hdr = (struct eap_hdr *) eap; in eap_ttls_process_phase2_eap()
H A Deap_server_fast.c980 struct eap_hdr *hdr; in eap_fast_process_phase2_response()
993 hdr = (struct eap_hdr *) in_data; in eap_fast_process_phase2_response()
1112 struct eap_hdr *hdr; in eap_fast_process_phase2_eap()
1115 hdr = (struct eap_hdr *) in_data; in eap_fast_process_phase2_eap()
H A Deap_server_teap.c1046 struct eap_hdr *hdr; in eap_teap_process_phase2_response()
1060 hdr = (struct eap_hdr *) in_data; in eap_teap_process_phase2_response()
1192 struct eap_hdr *hdr; in eap_teap_process_phase2_eap()
1195 hdr = (struct eap_hdr *) in_data; in eap_teap_process_phase2_eap()
H A Deap_server_pax.c213 mlen = sizeof(struct eap_hdr) + 1 + len; in eap_pax_check()
/freebsd/contrib/wpa/src/eapol_supp/
H A Deapol_supp_sm.c1318 len - sizeof(*hdr) > sizeof(struct eap_hdr)) { in eapol_sm_rx_eapol()
1319 const struct eap_hdr *ehdr = in eapol_sm_rx_eapol()
1320 (const struct eap_hdr *) (hdr + 1); in eapol_sm_rx_eapol()
1353 const struct eap_hdr *ehdr = in eapol_sm_rx_eapol()
1354 (const struct eap_hdr *) (hdr + 1); in eapol_sm_rx_eapol()
2241 eap_peer_finish(sm->eap, (const struct eap_hdr *) buf, len); in eapol_sm_process_erp_finish()
/freebsd/contrib/wpa/src/ap/
H A Dieee802_1x.c340 const struct eap_hdr *hdr = (const struct eap_hdr *) eap; in ieee802_1x_learn_identity()
342 if (len <= sizeof(struct eap_hdr) || in ieee802_1x_learn_identity()
344 eap[sizeof(struct eap_hdr)] != EAP_TYPE_IDENTITY) || in ieee802_1x_learn_identity()
346 eap[sizeof(struct eap_hdr)] != EAP_ERP_TYPE_REAUTH) || in ieee802_1x_learn_identity()
853 struct sta_info *sta, struct eap_hdr *eap, in handle_eap_response()
886 struct sta_info *sta, struct eap_hdr *eap, in handle_eap_initiate()
944 struct eap_hdr *eap; in handle_eap()
952 eap = (struct eap_hdr *) buf; in handle_eap()
1410 const struct eap_hdr *hdr; in ieee802_1x_decapsulate_radius()
/freebsd/contrib/wpa/wpa_supplicant/
H A Deapol_test.c183 const struct eap_hdr *hdr; in ieee802_1x_encapsulate_radius()
199 hdr = (const struct eap_hdr *) eap; in ieee802_1x_encapsulate_radius()
699 struct eap_hdr *eap; in send_eap_request_identity()
706 eap = (struct eap_hdr *) (hdr + 1); in send_eap_request_identity()
753 const struct eap_hdr *hdr; in ieee802_1x_decapsulate_radius()
/freebsd/contrib/wpa/src/eapol_auth/
H A Deapol_auth_sm.c89 struct eap_hdr eap; in eapol_auth_tx_canned_eap()
110 wpabuf_len(sm->eap_if->eapReqData) < sizeof(struct eap_hdr)) { in eapol_auth_tx_req()

12