Lines Matching refs:eap

304 				      const u8 *eap, size_t len)  in ieee802_1x_learn_identity()  argument
308 const struct eap_hdr *hdr = (const struct eap_hdr *) eap; in ieee802_1x_learn_identity()
312 eap[sizeof(struct eap_hdr)] != EAP_TYPE_IDENTITY) || in ieee802_1x_learn_identity()
314 eap[sizeof(struct eap_hdr)] != EAP_ERP_TYPE_REAUTH) || in ieee802_1x_learn_identity()
319 identity = eap_get_identity(sm->eap, &identity_len); in ieee802_1x_learn_identity()
592 const u8 *eap, size_t len) in ieee802_1x_encapsulate_radius() argument
600 ieee802_1x_learn_identity(hapd, sm, eap, len); in ieee802_1x_encapsulate_radius()
639 if (!radius_msg_add_eap(msg, eap, len)) { in ieee802_1x_encapsulate_radius()
726 struct sta_info *sta, struct eap_hdr *eap, in handle_eap_response() argument
734 data = (u8 *) (eap + 1); in handle_eap_response()
736 if (len < sizeof(*eap) + 1) { in handle_eap_response()
746 eap->code, eap->identifier, be_to_host16(eap->length), in handle_eap_response()
752 sm->eap_if->eapRespData = wpabuf_alloc_copy(eap, len); in handle_eap_response()
758 struct sta_info *sta, struct eap_hdr *eap, in handle_eap_initiate() argument
768 if (len < sizeof(*eap) + 1) { in handle_eap_initiate()
774 data = (u8 *) (eap + 1); in handle_eap_initiate()
780 eap->code, eap->identifier, be_to_host16(eap->length), in handle_eap_initiate()
784 sm->eap_if->eapRespData = wpabuf_alloc_copy(eap, len); in handle_eap_initiate()
794 struct eap_hdr *eap; in handle_eap() local
797 if (len < sizeof(*eap)) { in handle_eap()
802 eap = (struct eap_hdr *) buf; in handle_eap()
804 eap_len = be_to_host16(eap->length); in handle_eap()
806 eap->code, eap->identifier, eap_len); in handle_eap()
807 if (eap_len < sizeof(*eap)) { in handle_eap()
819 switch (eap->code) { in handle_eap()
825 handle_eap_response(hapd, sta, eap, eap_len); in handle_eap()
835 handle_eap_initiate(hapd, sta, eap, eap_len); in handle_eap()
1035 eap_server_clear_identity(sta->eapol_sm->eap); in ieee802_1x_receive()
1048 eap_server_clear_identity(sta->eapol_sm->eap); in ieee802_1x_receive()
1170 if (sta->eapol_sm->eap) in ieee802_1x_new_station()
1171 eap_sm_notify_cached(sta->eapol_sm->eap); in ieee802_1x_new_station()
1190 if (sta->eapol_sm->eap) in ieee802_1x_new_station()
1191 eap_sm_notify_cached(sta->eapol_sm->eap); in ieee802_1x_new_station()
1240 struct wpabuf *eap; in ieee802_1x_decapsulate_radius() local
1255 eap = radius_msg_get_eap(msg); in ieee802_1x_decapsulate_radius()
1256 if (eap == NULL) { in ieee802_1x_decapsulate_radius()
1267 if (wpabuf_len(eap) < sizeof(*hdr)) { in ieee802_1x_decapsulate_radius()
1271 wpabuf_free(eap); in ieee802_1x_decapsulate_radius()
1276 if (wpabuf_len(eap) > sizeof(*hdr)) in ieee802_1x_decapsulate_radius()
1277 eap_type = (wpabuf_head_u8(eap))[sizeof(*hdr)]; in ieee802_1x_decapsulate_radius()
1279 hdr = wpabuf_head(eap); in ieee802_1x_decapsulate_radius()
1310 sm->eap_if->aaaEapReqData = eap; in ieee802_1x_decapsulate_radius()
1972 identity = eap_get_identity(sm->eap, &identity_len); in ieee802_1x_eapol_send()