hostapd
Public Attributes | List of all members
eapol_ctx Struct Reference

struct eapol_ctx - Global (for all networks) EAPOL state machine context More...

#include <eapol_supp_sm.h>

Public Attributes

void * ctx
 ctx - Pointer to arbitrary upper level context
 
int preauth
 preauth - IEEE 802.11i/RSN pre-authentication More...
 
void(* cb )(struct eapol_sm *eapol, enum eapol_supp_result result, void *ctx)
 cb - Function to be called when EAPOL negotiation has been completed : Pointer to EAPOL state machine data More...
 
void * cb_ctx
 cb_ctx - Callback context for cb()
 
void * msg_ctx
 msg_ctx - Callback context for wpa_msg() calls
 
void * scard_ctx
 scard_ctx - Callback context for PC/SC scard_*() function calls More...
 
void * eapol_send_ctx
 eapol_send_ctx - Callback context for eapol_send() calls
 
void(* eapol_done_cb )(void *ctx)
 eapol_done_cb - Function to be called at successful completion : Callback context (ctx) More...
 
int(* 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
 
int(* 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
 
void(* 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 More...
 
: 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

const struct wpa_config_blob *(* get_config_blob )(void *ctx, const char *name)
 
void(* aborted_cached )(void *ctx)
 aborted_cached - Notify that cached PMK attempt was aborted : Callback context (ctx)
 
const char * opensc_engine_path
 opensc_engine_path - Path to the OpenSSL engine for opensc More...
 
const char * pkcs11_engine_path
 pkcs11_engine_path - Path to the OpenSSL engine for PKCS#11 More...
 
const char * pkcs11_module_path
 pkcs11_module_path - Path to the OpenSSL OpenSC/PKCS#11 module More...
 
const char * openssl_ciphers
 openssl_ciphers - OpenSSL cipher string More...
 
struct wps_contextwps
 wps - WPS context data More...
 
void(* eap_param_needed )(void *ctx, enum wpa_ctrl_req_type field, const char *txt)
 eap_param_needed - Notify that EAP parameter is needed : Callback context (ctx) : Field indicator (e.g., WPA_CTRL_REQ_EAP_IDENTITY) : User readable text describing the required parameter
 
void(* 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
 
void(* cert_cb )(void *ctx, int depth, const char *subject, const char *altsubject[], int num_altsubject, const char *cert_hash, const struct wpabuf *cert)
 cert_cb - Notification of a peer certificate : Callback context (ctx) : Depth in certificate chain (0 = server) : Subject of the peer certificate : Select fields from AltSubject of the peer certificate : Number of altsubject values : SHA-256 hash of the certificate : Peer certificate
 
int cert_in_cb
 cert_in_cb - Include server certificates in callback
 
void(* status_cb )(void *ctx, const char *status, const char *parameter)
 status_cb - Notification of a change in EAP status : Callback context (ctx) : Step in the process of EAP authentication : Step-specific parameter, e.g., EAP method name
 
void(* set_anon_id )(void *ctx, const u8 *id, size_t len)
 set_anon_id - Set or add anonymous identity : eapol_ctx from eap_peer_sm_init() call : Anonymous identity (e.g., EAP-SIM pseudonym) : Length of anonymous identity in octets
 

Detailed Description

struct eapol_ctx - Global (for all networks) EAPOL state machine context

Member Data Documentation

§ cb

void(* eapol_ctx::cb) (struct eapol_sm *eapol, enum eapol_supp_result result, void *ctx)

cb - Function to be called when EAPOL negotiation has been completed : Pointer to EAPOL state machine data

Returns
: 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.

§ eapol_done_cb

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.

§ opensc_engine_path

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.

§ openssl_ciphers

const char* eapol_ctx::openssl_ciphers

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.

§ pkcs11_engine_path

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.

§ pkcs11_module_path

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.

§ preauth

int eapol_ctx::preauth

preauth - IEEE 802.11i/RSN pre-authentication

This EAPOL state machine is used for IEEE 802.11i/RSN pre-authentication

§ scard_ctx

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().

§ set_config_blob

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.

§ wps

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.


The documentation for this struct was generated from the following file: