Home | History | Annotate | Download | only in wpa_supplicant

Lines Matching defs:eap

19 #include "eap_peer/eap.h"
57 /* last received EAP Response from Authentication Server */
174 const u8 *eap, size_t len)
181 wpa_printf(MSG_DEBUG, "Encapsulating EAP message into a RADIUS "
194 hdr = (const struct eap_hdr *) eap;
205 "EAP-Response-Identity",
220 printf("Could not add EAP-Key-Name\n");
268 if (eap && !radius_msg_add_eap(msg, eap, len)) {
269 printf("Could not add EAP-Message\n");
307 wpa_hexdump(MSG_DEBUG, "TX EAP -> RADIUS", buf, len);
339 printf("\n\n\n\n\neapol_test: Triggering EAP reauthentication\n\n");
383 wpa_printf(MSG_INFO, "No EAP-Key-Name received from server");
391 "Locally derived EAP Session-Id does not match EAP-Key-Name from server");
392 wpa_hexdump(MSG_DEBUG, "EAP Session-Id", sess_id, sess_id_len);
393 wpa_hexdump(MSG_DEBUG, "EAP-Key-Name from server",
398 "Locally derived EAP Session-Id matches EAP-Key-Name from server");
452 wpa_printf(MSG_WARNING, "Unhandled EAP param %d needed",
522 wpa_hexdump_ascii(MSG_DEBUG, "EAP method updated anonymous_identity",
590 eapol_sm_notify_config(wpa_s->eapol, &ssid->eap, &eapol_conf);
646 struct eap_hdr *eap;
653 eap = (struct eap_hdr *) (hdr + 1);
654 eap->code = EAP_CODE_REQUEST;
655 eap->identifier = 0;
656 eap->length = htons(5);
657 pos = (u8 *) (eap + 1);
660 printf("Sending fake EAP-Request-Identity\n");
698 struct wpabuf *eap;
709 eap = radius_msg_get_eap(msg);
710 if (eap == NULL) {
712 * RADIUS server SHOULD NOT send Access-Reject/no EAP-Message
715 "EAP-Message from RADIUS message");
721 if (wpabuf_len(eap) < sizeof(*hdr)) {
722 wpa_printf(MSG_DEBUG, "too short EAP packet "
724 wpabuf_free(eap);
728 if (wpabuf_len(eap) > sizeof(*hdr))
729 eap_type = (wpabuf_head_u8(eap))[sizeof(*hdr)];
731 hdr = wpabuf_head(eap);
734 os_snprintf(buf, sizeof(buf), "EAP-Request-%s (%d)",
739 os_snprintf(buf, sizeof(buf), "EAP Response-%s (%d)",
744 os_strlcpy(buf, "EAP Success", sizeof(buf));
745 /* LEAP uses EAP Success within an authentication, so must not
749 os_strlcpy(buf, "EAP Failure", sizeof(buf));
753 os_strlcpy(buf, "unknown EAP code", sizeof(buf));
754 wpa_hexdump_buf(MSG_DEBUG, "Decapsulated EAP packet", eap);
757 wpa_printf(MSG_DEBUG, "decapsulated EAP packet (code=%d "
764 e->last_eap_radius = eap;
768 dot1x = os_malloc(sizeof(*dot1x) + wpabuf_len(eap));
772 dot1x->length = htons(wpabuf_len(eap));
773 os_memcpy((u8 *) (dot1x + 1), wpabuf_head(eap),
774 wpabuf_len(eap));
777 sizeof(*dot1x) + wpabuf_len(eap));
850 * present when packet contains an EAP-Message attribute */
857 "since it does not include EAP-Message\n");
1166 " -e = Request EAP-Key-Name\n"
1333 wpa_printf(MSG_ERROR, "Failed to register EAP methods");