eapol_callbacks Struct Reference

Callback functions from EAP to lower layer. More...

#include <eap.h>

Collaboration diagram for eapol_callbacks:

Collaboration graph
[legend]

Data Fields

wpa_ssid *(* get_config )(void *ctx)
 Get pointer to the current network configuration.
Boolean(* get_bool )(void *ctx, enum eapol_bool_var variable)
 Get a boolean EAPOL state variable.
void(* set_bool )(void *ctx, enum eapol_bool_var variable, Boolean value)
 Set a boolean EAPOL state variable.
unsigned int(* get_int )(void *ctx, enum eapol_int_var variable)
 Get an integer EAPOL state variable.
void(* set_int )(void *ctx, enum eapol_int_var variable, unsigned int value)
 Set an integer EAPOL state variable.
u8 *(* get_eapReqData )(void *ctx, size_t *len)
 Get EAP-Request data.
void(* set_config_blob )(void *ctx, struct wpa_config_blob *blob)
 Set named configuration blob.
const struct wpa_config_blob *(* get_config_blob )(void *ctx, const char *name)
 Get a named configuration blob.
void(* notify_pending )(void *ctx)
 Notify that a pending request can be retried.

Detailed Description

Callback functions from EAP to lower layer.

This structure defines the callback functions that EAP state machine requires from the lower layer (usually EAPOL state machine) for updating state variables and requesting information. eapol_ctx from eap_sm_init() call will be used as the ctx parameter for these callback functions.

Definition at line 147 of file eap.h.


Field Documentation

Boolean(* eapol_callbacks::get_bool)(void *ctx, enum eapol_bool_var variable)
 

Get a boolean EAPOL state variable.

Parameters:
variable EAPOL boolean variable to get
Returns:
Value of the EAPOL variable

struct wpa_ssid*(* eapol_callbacks::get_config)(void *ctx)
 

Get pointer to the current network configuration.

Parameters:
ctx eapol_ctx from eap_sm_init() call

const struct wpa_config_blob*(* eapol_callbacks::get_config_blob)(void *ctx, const char *name)
 

Get a named configuration blob.

Parameters:
ctx eapol_ctx from eap_sm_init() call
name Name of the blob
Returns:
Pointer to blob data or NULL if not found

u8*(* eapol_callbacks::get_eapReqData)(void *ctx, size_t *len)
 

Get EAP-Request data.

Parameters:
ctx eapol_ctx from eap_sm_init() call
len Pointer to variable that will be set to eapReqDataLen
Returns:
Reference to eapReqData (EAP state machine will not free this) or NULL if eapReqData not available.

unsigned int(* eapol_callbacks::get_int)(void *ctx, enum eapol_int_var variable)
 

Get an integer EAPOL state variable.

Parameters:
ctx eapol_ctx from eap_sm_init() call
variable EAPOL integer variable to get
Returns:
Value of the EAPOL variable

void(* eapol_callbacks::notify_pending)(void *ctx)
 

Notify that a pending request can be retried.

Parameters:
ctx eapol_ctx from eap_sm_init() call
An EAP method can perform a pending operation (e.g., to get a response from an external process). Once the response is available, this callback function can be used to request EAPOL state machine to retry delivering the previously received (and still unanswered) EAP request to EAP state machine.

void(* eapol_callbacks::set_bool)(void *ctx, enum eapol_bool_var variable, Boolean value)
 

Set a boolean EAPOL state variable.

Parameters:
ctx eapol_ctx from eap_sm_init() call
variable EAPOL boolean variable to set
value Value for the EAPOL variable

void(* eapol_callbacks::set_config_blob)(void *ctx, struct wpa_config_blob *blob)
 

Set named configuration blob.

Parameters:
ctx eapol_ctx from eap_sm_init() call
blob New value for the blob
Adds a new configuration blob or replaces the current value of an existing blob.

void(* eapol_callbacks::set_int)(void *ctx, enum eapol_int_var variable, unsigned int value)
 

Set an integer EAPOL state variable.

Parameters:
ctx eapol_ctx from eap_sm_init() call
variable EAPOL integer variable to set
value Value for the EAPOL variable


The documentation for this struct was generated from the following file:
Generated on Sun Dec 31 13:55:54 2006 for wpa_supplicant by  doxygen 1.4.2