#include "includes.h"
#include "hostapd.h"
#include "sta_info.h"
#include "eap_i.h"
#include "state_machine.h"
Include dependency graph for eap.c:
Go to the source code of this file.
Defines | |
#define | STATE_MACHINE_DATA struct eap_sm |
#define | STATE_MACHINE_DEBUG_PREFIX "EAP" |
#define | EAP_MAX_AUTH_ROUNDS 50 |
Functions | |
int | eap_user_get (struct eap_sm *sm, const u8 *identity, size_t identity_len, int phase2) |
Fetch user information from the database. | |
SM_STATE (EAP, DISABLED) | |
SM_STATE (EAP, INITIALIZE) | |
SM_STATE (EAP, PICK_UP_METHOD) | |
SM_STATE (EAP, IDLE) | |
SM_STATE (EAP, RETRANSMIT) | |
SM_STATE (EAP, RECEIVED) | |
SM_STATE (EAP, DISCARD) | |
SM_STATE (EAP, SEND_REQUEST) | |
SM_STATE (EAP, INTEGRITY_CHECK) | |
SM_STATE (EAP, METHOD_REQUEST) | |
SM_STATE (EAP, METHOD_RESPONSE) | |
SM_STATE (EAP, PROPOSE_METHOD) | |
SM_STATE (EAP, NAK) | |
SM_STATE (EAP, SELECT_ACTION) | |
SM_STATE (EAP, TIMEOUT_FAILURE) | |
SM_STATE (EAP, FAILURE) | |
SM_STATE (EAP, SUCCESS) | |
SM_STEP (EAP) | |
void | eap_sm_process_nak (struct eap_sm *sm, u8 *nak_list, size_t len) |
Process EAP-Response/Nak. | |
int | eap_sm_step (struct eap_sm *sm) |
Step EAP state machine. | |
void | eap_set_eapRespData (struct eap_sm *sm, const u8 *eapRespData, size_t eapRespDataLen) |
Set EAP response (eapRespData). | |
eap_sm * | eap_sm_init (void *eapol_ctx, struct eapol_callbacks *eapol_cb, struct eap_config *conf) |
Allocate and initialize EAP state machine. | |
void | eap_sm_deinit (struct eap_sm *sm) |
Deinitialize and free an EAP state machine. | |
void | eap_sm_notify_cached (struct eap_sm *sm) |
Notify EAP state machine of cached PMK. | |
void | eap_sm_pending_cb (struct eap_sm *sm) |
EAP state machine callback for a pending EAP request. | |
int | eap_sm_method_pending (struct eap_sm *sm) |
Query whether EAP method is waiting for pending data. | |
const u8 * | eap_hdr_validate (int vendor, EapType eap_type, const u8 *msg, size_t msglen, size_t *plen) |
Validate EAP header. | |
eap_hdr * | eap_msg_alloc (int vendor, EapType type, size_t *len, size_t payload_len, u8 code, u8 identifier, u8 **payload) |
Allocate a buffer for an EAP message. |
Alternatively, this software may be distributed under the terms of BSD license.
See README and COPYING for more details.
Definition in file eap.c.
|
Validate EAP header.
Definition at line 1048 of file eap.c. Here is the call graph for this function: |
|
Allocate a buffer for an EAP message.
|
|
Set EAP response (eapRespData).
Definition at line 900 of file eap.c. Here is the call graph for this function: |
|
Deinitialize and free an EAP state machine.
Definition at line 965 of file eap.c. Here is the call graph for this function: |
|
Allocate and initialize EAP state machine.
Definition at line 936 of file eap.c. Here is the call graph for this function: |
|
Query whether EAP method is waiting for pending data.
|
|
Notify EAP state machine of cached PMK.
|
|
EAP state machine callback for a pending EAP request.
Definition at line 1006 of file eap.c. Here is the call graph for this function: |
|
Process EAP-Response/Nak.
Definition at line 714 of file eap.c. Here is the call graph for this function: |
|
Step EAP state machine.
|
|
Fetch user information from the database.
|