Lines Matching refs:eap
20 #include "eap_peer/eap.h"
58 /* last received EAP Response from Authentication Server */
178 const u8 *eap, size_t len)
185 wpa_printf(MSG_DEBUG, "Encapsulating EAP message into a RADIUS "
198 hdr = (const struct eap_hdr *) eap;
209 "EAP-Response-Identity",
224 printf("Could not add EAP-Key-Name\n");
279 if (eap && !radius_msg_add_eap(msg, eap, len)) {
280 printf("Could not add EAP-Message\n");
318 wpa_hexdump(MSG_DEBUG, "TX EAP -> RADIUS", buf, len);
354 printf("\n\n\n\n\neapol_test: Triggering EAP reauthentication\n\n");
398 wpa_printf(MSG_INFO, "No EAP-Key-Name received from server");
406 "Locally derived EAP Session-Id does not match EAP-Key-Name from server");
407 wpa_hexdump(MSG_DEBUG, "EAP Session-Id", sess_id, sess_id_len);
408 wpa_hexdump(MSG_DEBUG, "EAP-Key-Name from server",
413 "Locally derived EAP Session-Id matches EAP-Key-Name from server");
470 wpa_printf(MSG_WARNING, "Unhandled EAP param %d needed",
549 wpa_hexdump_ascii(MSG_DEBUG, "EAP method updated anonymous_identity",
647 eapol_sm_notify_config(wpa_s->eapol, &ssid->eap, &eapol_conf);
705 struct eap_hdr *eap;
712 eap = (struct eap_hdr *) (hdr + 1);
713 eap->code = EAP_CODE_REQUEST;
714 eap->identifier = 0;
715 eap->length = htons(5);
716 pos = (u8 *) (eap + 1);
719 printf("Sending fake EAP-Request-Identity\n");
757 struct wpabuf *eap;
768 eap = radius_msg_get_eap(msg);
769 if (eap == NULL) {
771 * RADIUS server SHOULD NOT send Access-Reject/no EAP-Message
774 "EAP-Message from RADIUS message");
780 if (wpabuf_len(eap) < sizeof(*hdr)) {
781 wpa_printf(MSG_DEBUG, "too short EAP packet "
783 wpabuf_free(eap);
787 if (wpabuf_len(eap) > sizeof(*hdr))
788 eap_type = (wpabuf_head_u8(eap))[sizeof(*hdr)];
790 hdr = wpabuf_head(eap);
793 os_snprintf(buf, sizeof(buf), "EAP-Request-%s (%d)",
798 os_snprintf(buf, sizeof(buf), "EAP Response-%s (%d)",
803 os_strlcpy(buf, "EAP Success", sizeof(buf));
804 /* LEAP uses EAP Success within an authentication, so must not
808 os_strlcpy(buf, "EAP Failure", sizeof(buf));
814 os_strlcpy(buf, "unknown EAP code", sizeof(buf));
815 wpa_hexdump_buf(MSG_DEBUG, "Decapsulated EAP packet", eap);
818 wpa_printf(MSG_DEBUG, "decapsulated EAP packet (code=%d "
825 e->last_eap_radius = eap;
829 dot1x = os_malloc(sizeof(*dot1x) + wpabuf_len(eap));
833 dot1x->length = htons(wpabuf_len(eap));
834 os_memcpy((u8 *) (dot1x + 1), wpabuf_head(eap),
835 wpabuf_len(eap));
838 sizeof(*dot1x) + wpabuf_len(eap));
911 * present when packet contains an EAP-Message attribute */
918 "since it does not include EAP-Message\n");
1271 " -e = Request EAP-Key-Name\n"
1451 wpa_printf(MSG_ERROR, "Failed to register EAP methods");