#include "defs.h"
#include "eap_defs.h"
Include dependency graph for eap.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Enumerations | |
enum | eapol_bool_var { EAPOL_eapSuccess, EAPOL_eapRestart, EAPOL_eapFail, EAPOL_eapResp, EAPOL_eapNoResp, EAPOL_eapReq, EAPOL_portEnabled, EAPOL_altAccept, EAPOL_altReject } |
enum | eapol_int_var { EAPOL_idleWhile } |
Functions | |
eap_sm * | eap_sm_init (void *eapol_ctx, struct eapol_callbacks *eapol_cb, void *msg_ctx, 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. | |
int | eap_sm_step (struct eap_sm *sm) |
Step EAP state machine. | |
void | eap_sm_abort (struct eap_sm *sm) |
Abort EAP authentication. | |
int | eap_sm_get_status (struct eap_sm *sm, char *buf, size_t buflen, int verbose) |
Get EAP state machine status. | |
u8 * | eap_sm_buildIdentity (struct eap_sm *sm, int id, size_t *len, int encrypted) |
Build EAP-Identity/Response for the current network. | |
const struct eap_method * | eap_sm_get_eap_methods (int method) |
Get EAP method based on type number. | |
void | eap_sm_request_identity (struct eap_sm *sm, struct wpa_ssid *config) |
Request identity from user (ctrl_iface). | |
void | eap_sm_request_password (struct eap_sm *sm, struct wpa_ssid *config) |
Request password from user (ctrl_iface). | |
void | eap_sm_request_new_password (struct eap_sm *sm, struct wpa_ssid *config) |
Request new password from user (ctrl_iface). | |
void | eap_sm_request_pin (struct eap_sm *sm, struct wpa_ssid *config) |
Request SIM or smart card PIN from user (ctrl_iface). | |
void | eap_sm_request_otp (struct eap_sm *sm, struct wpa_ssid *config, const char *msg, size_t msg_len) |
Request one time password from user (ctrl_iface). | |
void | eap_sm_request_passphrase (struct eap_sm *sm, struct wpa_ssid *config) |
Request passphrase from user (ctrl_iface). | |
void | eap_sm_notify_ctrl_attached (struct eap_sm *sm) |
Notification of attached monitor. | |
u8 | eap_get_type (const char *name) |
Get EAP type for the given EAP method name. | |
const char * | eap_get_name (EapType type) |
Get EAP method name for the given EAP type. | |
size_t | eap_get_names (char *buf, size_t buflen) |
Get space separated list of names for supported EAP methods. | |
u8 | eap_get_phase2_type (const char *name) |
Get EAP type for the given EAP phase 2 method name. | |
u8 * | eap_get_phase2_types (struct wpa_ssid *config, size_t *count) |
Get list of allowed EAP phase 2 types. | |
void | eap_set_fast_reauth (struct eap_sm *sm, int enabled) |
Update fast_reauth setting. | |
void | eap_set_workaround (struct eap_sm *sm, unsigned int workaround) |
Update EAP workarounds setting. | |
void | eap_set_force_disabled (struct eap_sm *sm, int disabled) |
Set force_disabled flag. | |
wpa_ssid * | eap_get_config (struct eap_sm *sm) |
Get current network configuration. | |
int | eap_key_available (struct eap_sm *sm) |
Get key availability (eapKeyAvailable variable). | |
void | eap_notify_success (struct eap_sm *sm) |
Notify EAP state machine about external success trigger. | |
void | eap_notify_lower_layer_success (struct eap_sm *sm) |
Notification of lower layer success. | |
const u8 * | eap_get_eapKeyData (struct eap_sm *sm, size_t *len) |
Get master session key (MSK) from EAP state machine. | |
u8 * | eap_get_eapRespData (struct eap_sm *sm, size_t *len) |
Get EAP response data. | |
void | eap_register_scard_ctx (struct eap_sm *sm, void *ctx) |
Notification of smart card context. |
Alternatively, this software may be distributed under the terms of BSD license.
See README and COPYING for more details.
Definition in file eap.h.
|
|
enum eapol_int_var - EAPOL integer state variables for EAP state machine These variables are used in the interface between EAP peer state machine and lower layer. These are defined in RFC 4137, Sect. 4.1. Lower layer code is expected to maintain these variables and register a callback functions for EAP state machine to get and set the variables.
|
|
Get current network configuration.
|
|
Get master session key (MSK) from EAP state machine.
|
|
Get EAP response data.
|
|
Get EAP method name for the given EAP type.
|
|
Get space separated list of names for supported EAP methods.
|
|
Get EAP type for the given EAP phase 2 method name.
Definition at line 1667 of file eap.c. Here is the call graph for this function: |
|
Get list of allowed EAP phase 2 types.
|
|
Get EAP type for the given EAP method name.
|
|
Get key availability (eapKeyAvailable variable).
|
|
Notification of lower layer success.
|
|
Notify EAP state machine about external success trigger.
|
|
Notification of smart card context.
|
|
Update fast_reauth setting.
|
|
Set force_disabled flag.
|
|
Update EAP workarounds setting.
|
|
Abort EAP authentication.
|
|
Build EAP-Identity/Response for the current network.
Definition at line 940 of file eap.c. Here is the call graph for this function: |
|
Deinitialize and free an EAP state machine.
Definition at line 1177 of file eap.c. Here is the call graph for this function: |
|
Get EAP method based on type number.
|
|
Get EAP state machine status.
Definition at line 1313 of file eap.c. Here is the call graph for this function: |
|
Allocate and initialize EAP state machine.
Definition at line 1138 of file eap.c. Here is the call graph for this function: |
|
Notification of attached monitor.
Definition at line 1559 of file eap.c. Here is the call graph for this function: |
|
Request identity from user (ctrl_iface).
|
|
Request new password from user (ctrl_iface).
|
|
Request one time password from user (ctrl_iface).
|
|
Request passphrase from user (ctrl_iface).
|
|
Request password from user (ctrl_iface).
|
|
Request SIM or smart card PIN from user (ctrl_iface).
|
|
Step EAP state machine.
|