#include <eapol_supp_sm.h>
Public Attributes | |
void(* | cb )(struct eapol_sm *eapol, int success, void *ctx) |
void * | cb_ctx |
void * | ctx |
void(* | eapol_done_cb )(void *ctx) |
int(* | eapol_send )(void *ctx, int type, const u8 *buf, size_t len) |
void * | eapol_send_ctx |
void * | msg_ctx |
int | preauth |
void * | scard_ctx |
void(* | set_config_blob )(void *ctx, struct wpa_config_blob *blob) |
int(* | set_wep_key )(void *ctx, int unicast, int keyidx, const u8 *key, size_t keylen) |
: Name of the blob | |
get_config_blob - Get a named configuration blob : Callback context (ctx) Returns: Pointer to blob data or NULL if not found | |
struct wpa_config_blob *(* | get_config_blob )(void *ctx, const char *name) |
void(* | aborted_cached )(void *ctx) |
const char * | opensc_engine_path |
const char * | pkcs11_engine_path |
const char * | pkcs11_module_path |
struct wps_context * | wps |
void(* | eap_param_needed )(void *ctx, const char *field, const char *txt) |
void(* | port_cb )(void *ctx, int authorized) |
struct eapol_ctx - Global (for all networks) EAPOL state machine context
Definition at line 70 of file eapol_supp_sm.h.
void(* eapol_ctx::aborted_cached)(void *ctx) |
aborted_cached - Notify that cached PMK attempt was aborted : Callback context (ctx)
Definition at line 174 of file eapol_supp_sm.h.
void(* eapol_ctx::cb)(struct eapol_sm *eapol, int success, void *ctx) |
cb - Function to be called when EAPOL negotiation has been completed : Pointer to EAPOL state machine data : Whether the authentication was completed successfully : Pointer to context data (cb_ctx)
This optional callback function will be called when the EAPOL authentication has been completed. This allows the owner of the EAPOL state machine to process the key and terminate the EAPOL state machine. Currently, this is used only in RSN pre-authentication.
Definition at line 95 of file eapol_supp_sm.h.
void* eapol_ctx::cb_ctx |
cb_ctx - Callback context for cb()
Definition at line 100 of file eapol_supp_sm.h.
void* eapol_ctx::ctx |
ctx - Pointer to arbitrary upper level context
Definition at line 74 of file eapol_supp_sm.h.
void(* eapol_ctx::eap_param_needed)(void *ctx, const char *field, const char *txt) |
eap_param_needed - Notify that EAP parameter is needed : Callback context (ctx) : Field name (e.g., "IDENTITY") : User readable text describing the required parameter
Definition at line 214 of file eapol_supp_sm.h.
void(* eapol_ctx::eapol_done_cb)(void *ctx) |
eapol_done_cb - Function to be called at successful completion : Callback context (ctx)
This function is called at the successful completion of EAPOL authentication. If dynamic WEP keys are used, this is called only after all the expected keys have been received.
Definition at line 127 of file eapol_supp_sm.h.
int(* eapol_ctx::eapol_send)(void *ctx, int type, const u8 *buf, size_t len) |
eapol_send - Send EAPOL packets : Callback context (eapol_send_ctx) : EAPOL type (IEEE802_1X_TYPE_*) : Pointer to EAPOL payload : Length of the EAPOL payload Returns: 0 on success, -1 on failure
Definition at line 137 of file eapol_supp_sm.h.
eapol_send_ctx - Callback context for eapol_send() calls
Definition at line 117 of file eapol_supp_sm.h.
struct wpa_config_blob*(* eapol_ctx::get_config_blob)(void *ctx, const char *name) [read] |
Definition at line 167 of file eapol_supp_sm.h.
void* eapol_ctx::msg_ctx |
msg_ctx - Callback context for wpa_msg() calls
Definition at line 105 of file eapol_supp_sm.h.
const char* eapol_ctx::opensc_engine_path |
opensc_engine_path - Path to the OpenSSL engine for opensc
This is an OpenSSL specific configuration option for loading OpenSC engine (engine_opensc.so); if NULL, this engine is not loaded.
Definition at line 182 of file eapol_supp_sm.h.
const char* eapol_ctx::pkcs11_engine_path |
pkcs11_engine_path - Path to the OpenSSL engine for PKCS#11
This is an OpenSSL specific configuration option for loading PKCS#11 engine (engine_pkcs11.so); if NULL, this engine is not loaded.
Definition at line 190 of file eapol_supp_sm.h.
const char* eapol_ctx::pkcs11_module_path |
pkcs11_module_path - Path to the OpenSSL OpenSC/PKCS#11 module
This is an OpenSSL specific configuration option for configuring path to OpenSC/PKCS#11 engine (opensc-pkcs11.so); if NULL, this module is not loaded.
Definition at line 199 of file eapol_supp_sm.h.
void(* eapol_ctx::port_cb)(void *ctx, int authorized) |
port_cb - Set port authorized/unauthorized callback (optional) : Callback context (ctx) : Whether the supplicant port is now in authorized state
Definition at line 222 of file eapol_supp_sm.h.
preauth - IEEE 802.11i/RSN pre-authentication
This EAPOL state machine is used for IEEE 802.11i/RSN pre-authentication
Definition at line 82 of file eapol_supp_sm.h.
void* eapol_ctx::scard_ctx |
scard_ctx - Callback context for PC/SC scard_*() function calls
This context can be updated with eapol_sm_register_scard_ctx().
Definition at line 112 of file eapol_supp_sm.h.
void(* eapol_ctx::set_config_blob)(void *ctx, struct wpa_config_blob *blob) |
set_config_blob - Set or add a named configuration blob : Callback context (ctx) : New value for the blob
Adds a new configuration blob or replaces the current value of an existing blob.
Definition at line 159 of file eapol_supp_sm.h.
int(* eapol_ctx::set_wep_key)(void *ctx, int unicast, int keyidx, const u8 *key, size_t keylen) |
set_wep_key - Configure WEP keys : Callback context (ctx) : Non-zero = unicast, 0 = multicast/broadcast key : Key index (0..3) : WEP key : Length of the WEP key Returns: 0 on success, -1 on failure
Definition at line 148 of file eapol_supp_sm.h.
struct wps_context* eapol_ctx::wps |
wps - WPS context data
This is only used by EAP-WSC and can be left NULL if not available.
Definition at line 206 of file eapol_supp_sm.h.