Home | History | Annotate | Download | only in wpa_supplicant

Lines Matching defs:eap

24 #include "eap_peer/eap.h"
61 u8 *last_eap_radius; /* last received EAP Response from Authentication
172 const u8 *eap, size_t len)
179 wpa_printf(MSG_DEBUG, "Encapsulating EAP message into a RADIUS "
192 hdr = (const struct eap_hdr *) eap;
203 "EAP-Response-Identity",
259 if (eap && !radius_msg_add_eap(msg, eap, len)) {
260 printf("Could not add EAP-Message\n");
297 wpa_hexdump(MSG_DEBUG, "TX EAP -> RADIUS", buf, len);
329 printf("\n\n\n\n\neapol_test: Triggering EAP reauthentication\n\n");
426 eapol_sm_notify_config(wpa_s->eapol, &ssid->eap, &eapol_conf);
480 struct eap_hdr *eap;
487 eap = (struct eap_hdr *) (hdr + 1);
488 eap->code = EAP_CODE_REQUEST;
489 eap->identifier = 0;
490 eap->length = htons(5);
491 pos = (u8 *) (eap + 1);
494 printf("Sending fake EAP-Request-Identity\n");
532 u8 *eap;
544 eap = radius_msg_get_eap(msg, &len);
545 if (eap == NULL) {
547 * RADIUS server SHOULD NOT send Access-Reject/no EAP-Message
550 "EAP-Message from RADIUS message");
558 wpa_printf(MSG_DEBUG, "too short EAP packet "
560 os_free(eap);
565 eap_type = eap[sizeof(*hdr)];
567 hdr = (struct eap_hdr *) eap;
570 os_snprintf(buf, sizeof(buf), "EAP-Request-%s (%d)",
575 os_snprintf(buf, sizeof(buf), "EAP Response-%s (%d)",
580 os_strlcpy(buf, "EAP Success", sizeof(buf));
581 /* LEAP uses EAP Success within an authentication, so must not
585 os_strlcpy(buf, "EAP Failure", sizeof(buf));
589 os_strlcpy(buf, "unknown EAP code", sizeof(buf));
590 wpa_hexdump(MSG_DEBUG, "Decapsulated EAP packet", eap, len);
593 wpa_printf(MSG_DEBUG, "decapsulated EAP packet (code=%d "
600 e->last_eap_radius = eap;
610 os_memcpy((u8 *) (dot1x + 1), eap, len);
674 * present when packet contains an EAP-Message attribute */
681 "since it does not include EAP-Message\n");
1134 wpa_printf(MSG_ERROR, "Failed to register EAP methods");