#include "common/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.
Classes | |
struct | eap_config |
struct | eap_eapol_interface |
struct | eap_user |
struct | eapol_callbacks |
Defines | |
#define | EAP_MAX_METHODS 8 |
#define | EAP_TTLS_AUTH_CHAP 2 |
#define | EAP_TTLS_AUTH_MSCHAP 4 |
#define | EAP_TTLS_AUTH_MSCHAPV2 8 |
#define | EAP_TTLS_AUTH_PAP 1 |
Functions | |
const u8 * | eap_get_identity (struct eap_sm *sm, size_t *len) |
struct eap_eapol_interface * | eap_get_interface (struct eap_sm *sm) |
void | eap_server_sm_deinit (struct eap_sm *sm) |
struct eap_sm * | eap_server_sm_init (void *eapol_ctx, struct eapol_callbacks *eapol_cb, struct eap_config *eap_conf) |
int | eap_server_sm_step (struct eap_sm *sm) |
int | eap_sm_method_pending (struct eap_sm *sm) |
void | eap_sm_notify_cached (struct eap_sm *sm) |
void | eap_sm_pending_cb (struct eap_sm *sm) |
#define EAP_MAX_METHODS 8 |
Definition at line 25 of file eap_server/eap.h.
#define EAP_TTLS_AUTH_CHAP 2 |
Definition at line 28 of file eap_server/eap.h.
#define EAP_TTLS_AUTH_MSCHAP 4 |
Definition at line 29 of file eap_server/eap.h.
#define EAP_TTLS_AUTH_MSCHAPV2 8 |
Definition at line 30 of file eap_server/eap.h.
#define EAP_TTLS_AUTH_PAP 1 |
Definition at line 27 of file eap_server/eap.h.
const u8* eap_get_identity | ( | struct eap_sm * | sm, |
size_t * | len | ||
) |
eap_get_identity - Get the user identity (from EAP-Response/Identity) : Pointer to EAP state machine allocated with eap_server_sm_init() : Buffer for returning identity length Returns: Pointer to the user identity or NULL if not available
Definition at line 1349 of file eap_server.c.
struct eap_eapol_interface* eap_get_interface | ( | struct eap_sm * | sm | ) | [read] |
eap_get_interface - Get pointer to EAP-EAPOL interface data : Pointer to EAP state machine allocated with eap_server_sm_init() Returns: Pointer to the EAP-EAPOL interface data
Definition at line 1361 of file eap_server.c.
void eap_server_sm_deinit | ( | struct eap_sm * | sm | ) |
eap_server_sm_deinit - Deinitialize and free an EAP server state machine : 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 1274 of file eap_server.c.
struct eap_sm* eap_server_sm_init | ( | void * | eapol_ctx, |
struct eapol_callbacks * | eapol_cb, | ||
struct eap_config * | conf | ||
) | [read] |
eap_server_sm_init - Allocate and initialize EAP server state machine : Context data to be used with eapol_cb calls : Pointer to EAPOL callback functions : EAP configuration Returns: Pointer to the allocated EAP state machine or NULL on failure
This function allocates and initializes an EAP state machine.
Definition at line 1216 of file eap_server.c.
int eap_server_sm_step | ( | struct eap_sm * | sm | ) |
eap_server_sm_step - Step EAP server state machine : Pointer to EAP state machine allocated with eap_server_sm_init() Returns: 1 if EAP state was changed or 0 if not
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.
Definition at line 1184 of file eap_server.c.
int eap_sm_method_pending | ( | struct eap_sm * | sm | ) |
eap_sm_method_pending - Query whether EAP method is waiting for pending data : Pointer to EAP state machine allocated with eap_server_sm_init() Returns: 1 if method is waiting for pending data or 0 if not
Definition at line 1335 of file eap_server.c.
void eap_sm_notify_cached | ( | struct eap_sm * | sm | ) |
eap_sm_notify_cached - Notify EAP state machine of cached PMK : Pointer to EAP state machine allocated with eap_server_sm_init()
This function is called when PMKSA caching is used to skip EAP authentication.
Definition at line 1305 of file eap_server.c.
void eap_sm_pending_cb | ( | struct eap_sm * | sm | ) |
eap_sm_pending_cb - EAP state machine callback for a pending EAP request : 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 1320 of file eap_server.c.