hostapd / EAP Full Authenticator state machine (RFC 4137) More...
#include "defs.h"#include "eap_common/eap_defs.h"#include "eap_server/eap_methods.h"#include "wpabuf.h"

Go to the source code of this file.
Data Structures | |
| struct | eap_user |
| struct | eap_eapol_interface |
| struct | eapol_callbacks |
| struct | eap_config |
Defines | |
| #define | EAP_MAX_METHODS 8 |
| #define | EAP_TTLS_AUTH_PAP 1 |
| #define | EAP_TTLS_AUTH_CHAP 2 |
| #define | EAP_TTLS_AUTH_MSCHAP 4 |
| #define | EAP_TTLS_AUTH_MSCHAPV2 8 |
Functions | |
| struct eap_sm * | eap_server_sm_init (void *eapol_ctx, struct eapol_callbacks *eapol_cb, struct eap_config *eap_conf) |
| Allocate and initialize EAP server state machine. | |
| void | eap_server_sm_deinit (struct eap_sm *sm) |
| Deinitialize and free an EAP server state machine. | |
| int | eap_server_sm_step (struct eap_sm *sm) |
| Step EAP server 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_get_identity (struct eap_sm *sm, size_t *len) |
| Get the user identity (from EAP-Response/Identity). | |
| struct eap_eapol_interface * | eap_get_interface (struct eap_sm *sm) |
| Get pointer to EAP-EAPOL interface data. | |
hostapd / EAP Full Authenticator state machine (RFC 4137)
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.
Alternatively, this software may be distributed under the terms of BSD license.
See README and COPYING for more details.
Definition in file eap.h.
| const u8* eap_get_identity | ( | struct eap_sm * | sm, | |
| size_t * | len | |||
| ) |
Get the user identity (from EAP-Response/Identity).
| sm | Pointer to EAP state machine allocated with eap_server_sm_init() | |
| len | Buffer for returning identity length |
| struct eap_eapol_interface* eap_get_interface | ( | struct eap_sm * | sm | ) | [read] |
Get pointer to EAP-EAPOL interface data.
| sm | Pointer to EAP state machine allocated with eap_server_sm_init() |
| void eap_server_sm_deinit | ( | struct eap_sm * | sm | ) |
Deinitialize and free an EAP server state machine.
| sm | Pointer to EAP state machine allocated with eap_server_sm_init() |
This function deinitializes EAP state machine and frees all allocated resources.
Definition at line 1263 of file eap.c.

| struct eap_sm* eap_server_sm_init | ( | void * | eapol_ctx, | |
| struct eapol_callbacks * | eapol_cb, | |||
| struct eap_config * | conf | |||
| ) | [read] |
Allocate and initialize EAP server state machine.
| eapol_ctx | Context data to be used with eapol_cb calls | |
| eapol_cb | Pointer to EAPOL callback functions | |
| conf | EAP configuration |
This function allocates and initializes an EAP state machine.
Definition at line 1205 of file eap.c.

| int eap_server_sm_step | ( | struct eap_sm * | sm | ) |
Step EAP server state machine.
| sm | Pointer to EAP state machine allocated with eap_server_sm_init() |
This function advances EAP state machine to a new state to match with the current variables. This should be called whenever variables used by the EAP state machine have changed.
| int eap_sm_method_pending | ( | struct eap_sm * | sm | ) |
Query whether EAP method is waiting for pending data.
| sm | Pointer to EAP state machine allocated with eap_server_sm_init() |
| void eap_sm_notify_cached | ( | struct eap_sm * | sm | ) |
Notify EAP state machine of cached PMK.
| sm | Pointer to EAP state machine allocated with eap_server_sm_init() |
This function is called when PMKSA caching is used to skip EAP authentication.
| void eap_sm_pending_cb | ( | struct eap_sm * | sm | ) |
EAP state machine callback for a pending EAP request.
| sm | Pointer to EAP state machine allocated with eap_server_sm_init() |
This function is called when data for a pending EAP-Request is received.
Definition at line 1311 of file eap.c.

1.6.1