wpa_supplicant / hostapd
2.5
|
Global (for all networks) EAPOL state machine context. More...
#include <eapol_supp_sm.h>
Data Fields | |
void * | ctx |
Pointer to arbitrary upper level context. | |
int | preauth |
IEEE 802.11i/RSN pre-authentication. More... | |
void(* | cb )(struct eapol_sm *eapol, enum eapol_supp_result result, void *ctx) |
Function to be called when EAPOL negotiation has been completed. More... | |
void * | cb_ctx |
Callback context for cb() | |
void * | msg_ctx |
Callback context for wpa_msg() calls. | |
void * | scard_ctx |
Callback context for PC/SC scard_*() function calls. More... | |
void * | eapol_send_ctx |
Callback context for eapol_send() calls. | |
void(* | eapol_done_cb )(void *ctx) |
Function to be called at successful completion. More... | |
int(* | eapol_send )(void *ctx, int type, const u8 *buf, size_t len) |
Send EAPOL packets. More... | |
int(* | set_wep_key )(void *ctx, int unicast, int keyidx, const u8 *key, size_t keylen) |
Configure WEP keys. More... | |
void(* | set_config_blob )(void *ctx, struct wpa_config_blob *blob) |
Set or add a named configuration blob. More... | |
const struct wpa_config_blob *(* | get_config_blob )(void *ctx, const char *name) |
Get a named configuration blob. More... | |
void(* | aborted_cached )(void *ctx) |
Notify that cached PMK attempt was aborted. More... | |
const char * | opensc_engine_path |
Path to the OpenSSL engine for opensc. More... | |
const char * | pkcs11_engine_path |
Path to the OpenSSL engine for PKCS#11. More... | |
const char * | pkcs11_module_path |
Path to the OpenSSL OpenSC/PKCS#11 module. More... | |
const char * | openssl_ciphers |
OpenSSL cipher string. More... | |
struct wps_context * | wps |
WPS context data. More... | |
void(* | eap_param_needed )(void *ctx, enum wpa_ctrl_req_type field, const char *txt) |
Notify that EAP parameter is needed. More... | |
void(* | port_cb )(void *ctx, int authorized) |
Set port authorized/unauthorized callback (optional) More... | |
void(* | cert_cb )(void *ctx, int depth, const char *subject, const char *altsubject[], int num_altsubject, const char *cert_hash, const struct wpabuf *cert) |
Notification of a peer certificate. More... | |
int | cert_in_cb |
Include server certificates in callback. | |
void(* | status_cb )(void *ctx, const char *status, const char *parameter) |
Notification of a change in EAP status. More... | |
void(* | set_anon_id )(void *ctx, const u8 *id, size_t len) |
Set or add anonymous identity. More... | |
Global (for all networks) EAPOL state machine context.
void(* eapol_ctx::aborted_cached)(void *ctx) |
Notify that cached PMK attempt was aborted.
ctx | Callback context (ctx) |
Function to be called when EAPOL negotiation has been completed.
eapol | Pointer to EAPOL state machine data |
result | Whether the authentication was completed successfully |
ctx | 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. |
void(* eapol_ctx::cert_cb)(void *ctx, int depth, const char *subject, const char *altsubject[], int num_altsubject, const char *cert_hash, const struct wpabuf *cert) |
Notification of a peer certificate.
ctx | Callback context (ctx) |
depth | Depth in certificate chain (0 = server) |
subject | Subject of the peer certificate |
altsubject | Select fields from AltSubject of the peer certificate |
num_altsubject | Number of altsubject values |
cert_hash | SHA-256 hash of the certificate |
cert | Peer certificate |
void(* eapol_ctx::eap_param_needed)(void *ctx, enum wpa_ctrl_req_type field, const char *txt) |
Notify that EAP parameter is needed.
ctx | Callback context (ctx) |
field | Field indicator (e.g., WPA_CTRL_REQ_EAP_IDENTITY) |
txt | User readable text describing the required parameter |
void(* eapol_ctx::eapol_done_cb)(void *ctx) |
Function to be called at successful completion.
ctx | 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. |
int(* eapol_ctx::eapol_send)(void *ctx, int type, const u8 *buf, size_t len) |
Send EAPOL packets.
ctx | Callback context (eapol_send_ctx) |
type | EAPOL type (IEEE802_1X_TYPE_*) |
buf | Pointer to EAPOL payload |
len | Length of the EAPOL payload |
const struct wpa_config_blob*(* eapol_ctx::get_config_blob)(void *ctx, const char *name) |
Get a named configuration blob.
ctx | Callback context (ctx) |
name | Name of the blob |
const char* eapol_ctx::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.
const char* eapol_ctx::openssl_ciphers |
OpenSSL cipher string.
This is an OpenSSL specific configuration option for configuring the default ciphers. If not set, "DEFAULT:!EXP:!LOW" is used as the default.
const char* eapol_ctx::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.
const char* eapol_ctx::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.
void(* eapol_ctx::port_cb)(void *ctx, int authorized) |
Set port authorized/unauthorized callback (optional)
ctx | Callback context (ctx) |
authorized | Whether the supplicant port is now in authorized state |
int eapol_ctx::preauth |
IEEE 802.11i/RSN pre-authentication.
This EAPOL state machine is used for IEEE 802.11i/RSN pre-authentication
void* eapol_ctx::scard_ctx |
Callback context for PC/SC scard_*() function calls.
This context can be updated with eapol_sm_register_scard_ctx().
void(* eapol_ctx::set_anon_id)(void *ctx, const u8 *id, size_t len) |
Set or add anonymous identity.
ctx | eapol_ctx from eap_peer_sm_init() call |
id | Anonymous identity (e.g., EAP-SIM pseudonym) |
len | Length of anonymous identity in octets |
void(* eapol_ctx::set_config_blob)(void *ctx, struct wpa_config_blob *blob) |
Set or add a named configuration blob.
ctx | Callback context (ctx) |
blob | New value for the blob Adds a new configuration blob or replaces the current value of an existing blob. |
int(* eapol_ctx::set_wep_key)(void *ctx, int unicast, int keyidx, const u8 *key, size_t keylen) |
Configure WEP keys.
ctx | Callback context (ctx) |
unicast | Non-zero = unicast, 0 = multicast/broadcast key |
keyidx | Key index (0..3) |
key | WEP key |
keylen | Length of the WEP key |
void(* eapol_ctx::status_cb)(void *ctx, const char *status, const char *parameter) |
Notification of a change in EAP status.
ctx | Callback context (ctx) |
status | Step in the process of EAP authentication |
parameter | Step-specific parameter, e.g., EAP method name |
struct wps_context* eapol_ctx::wps |
WPS context data.
This is only used by EAP-WSC and can be left NULL if not available.