#include <eap_i.h>
Collaboration diagram for eap_method:
Data Fields | |
int | vendor |
EAP Vendor-ID (EAP_VENDOR_*) (0 = IETF). | |
EapType | method |
EAP type number (EAP_TYPE_*). | |
const char * | name |
Name of the method (e.g., "TLS"). | |
void *(* | init )(struct eap_sm *sm) |
Initialize an EAP method. | |
void(* | deinit )(struct eap_sm *sm, void *priv) |
Deinitialize an EAP method. | |
u8 *(* | process )(struct eap_sm *sm, void *priv, struct eap_method_ret *ret, const u8 *reqData, size_t reqDataLen, size_t *respDataLen) |
Process an EAP request. | |
Boolean(* | isKeyAvailable )(struct eap_sm *sm, void *priv) |
Find out whether EAP method has keying material. | |
u8 *(* | getKey )(struct eap_sm *sm, void *priv, size_t *len) |
Get EAP method specific keying material (eapKeyData). | |
int(* | get_status )(struct eap_sm *sm, void *priv, char *buf, size_t buflen, int verbose) |
Get EAP method status. | |
Boolean(* | has_reauth_data )(struct eap_sm *sm, void *priv) |
Whether method is ready for fast reauthentication. | |
void(* | deinit_for_reauth )(struct eap_sm *sm, void *priv) |
Release data that is not needed for fast re-auth. | |
void *(* | init_for_reauth )(struct eap_sm *sm, void *priv) |
Prepare for start of fast re-authentication. | |
const u8 *(* | get_identity )(struct eap_sm *sm, void *priv, size_t *len) |
Get method specific identity for re-authentication. | |
void(* | free )(struct eap_method *method) |
Free EAP method data. | |
int | version |
Version of the EAP peer method interface. | |
eap_method * | next |
Pointer to the next EAP method. | |
u8 *(* | get_emsk )(struct eap_sm *sm, void *priv, size_t *len) |
Get EAP method specific keying extended material (EMSK). |
This structure defines the EAP method interface. Each method will need to register its own EAP type, EAP name, and set of function pointers for method specific operations. This interface is based on section 4.4 of RFC 4137.
Definition at line 74 of file eap_i.h.
|
Deinitialize an EAP method.
|
|
Release data that is not needed for fast re-auth.
|
|
Free EAP method data.
|
|
Get EAP method specific keying extended material (EMSK).
|
|
Get method specific identity for re-authentication.
|
|
Get EAP method status.
|
|
Get EAP method specific keying material (eapKeyData).
|
|
Whether method is ready for fast reauthentication.
|
|
Initialize an EAP method.
|
|
Prepare for start of fast re-authentication.
|
|
Find out whether EAP method has keying material.
|
|
Pointer to the next EAP method. This variable is used internally in the EAP method registration code to create a linked list of registered EAP methods. |
|
Process an EAP request.
|
|
Version of the EAP peer method interface. The EAP peer method implementation should set this variable to EAP_PEER_METHOD_INTERFACE_VERSION. This is used to verify that the EAP method is using supported API version when using dynamically loadable EAP methods. |