eap.h File Reference

hostapd / EAP Standalone Authenticator state machine (RFC 4137) More...

#include "defs.h"
#include "eap_defs.h"
#include "eap_methods.h"

Include dependency graph for eap.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define EAP_MAX_METHODS   8

Enumerations

enum  eapol_bool_var {
  EAPOL_eapSuccess, EAPOL_eapRestart, EAPOL_eapFail, EAPOL_eapResp,
  EAPOL_eapReq, EAPOL_eapNoReq, EAPOL_portEnabled, EAPOL_eapTimeout
}

Functions

eap_smeap_sm_init (void *eapol_ctx, struct eapol_callbacks *eapol_cb, struct eap_config *eap_conf)
 Allocate and initialize EAP state machine.
void eap_sm_deinit (struct eap_sm *sm)
 Deinitialize and free an EAP state machine.
int eap_sm_step (struct eap_sm *sm)
 Step EAP state machine.
void eap_set_eapRespData (struct eap_sm *sm, const u8 *eapRespData, size_t eapRespDataLen)
 Set EAP response (eapRespData).
void eap_sm_notify_cached (struct eap_sm *sm)
 Notify EAP state machine of cached PMK.
void eap_sm_pending_cb (struct eap_sm *sm)
 EAP state machine callback for a pending EAP request.
int eap_sm_method_pending (struct eap_sm *sm)
 Query whether EAP method is waiting for pending data.


Detailed Description

hostapd / EAP Standalone Authenticator state machine (RFC 4137)

Copyright
Copyright (c) 2004-2005, Jouni Malinen <[email protected]>
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.

Alternatively, this software may be distributed under the terms of BSD license.

See README and COPYING for more details.

Definition in file eap.h.


Function Documentation

void eap_set_eapRespData struct eap_sm sm,
const u8 *  eapRespData,
size_t  eapRespDataLen
 

Set EAP response (eapRespData).

Parameters:
sm Pointer to EAP state machine allocated with eap_sm_init()
eapRespData EAP-Response payload from the supplicant
eapRespDataLen Length of eapRespData in bytes
This function is called when an EAP-Response is received from a supplicant.

Definition at line 900 of file eap.c.

Here is the call graph for this function:

void eap_sm_deinit struct eap_sm sm  ) 
 

Deinitialize and free an EAP state machine.

Parameters:
sm Pointer to EAP state machine allocated with eap_sm_init()
This function deinitializes EAP state machine and frees all allocated resources.

Definition at line 965 of file eap.c.

Here is the call graph for this function:

struct eap_sm* eap_sm_init void *  eapol_ctx,
struct eapol_callbacks *  eapol_cb,
struct eap_config *  conf
 

Allocate and initialize EAP state machine.

Parameters:
eapol_ctx Context data to be used with eapol_cb calls
eapol_cb Pointer to EAPOL callback functions
conf EAP configuration
Returns:
Pointer to the allocated EAP state machine or NULL on failure
This function allocates and initializes an EAP state machine.

Definition at line 936 of file eap.c.

Here is the call graph for this function:

int eap_sm_method_pending struct eap_sm sm  ) 
 

Query whether EAP method is waiting for pending data.

Parameters:
sm Pointer to EAP state machine allocated with eap_sm_init()
Returns:
1 if method is waiting for pending data or 0 if not

Definition at line 1022 of file eap.c.

void eap_sm_notify_cached struct eap_sm sm  ) 
 

Notify EAP state machine of cached PMK.

Parameters:
sm Pointer to EAP state machine allocated with eap_sm_init()
This function is called when PMKSA caching is used to skip EAP authentication.

Definition at line 990 of file eap.c.

void eap_sm_pending_cb struct eap_sm sm  ) 
 

EAP state machine callback for a pending EAP request.

Parameters:
sm Pointer to EAP state machine allocated with eap_sm_init()
This function is called when data for a pending EAP-Request is received.

Definition at line 1006 of file eap.c.

Here is the call graph for this function:

int eap_sm_step struct eap_sm sm  ) 
 

Step EAP state machine.

Parameters:
sm Pointer to EAP state machine allocated with eap_sm_init()
Returns:
1 if EAP state was changed or 0 if not
This function advances EAP state machine to a new state to match with the current variables. This should be called whenever variables used by the EAP state machine have changed.

Definition at line 878 of file eap.c.


Generated on Sun Dec 31 13:44:07 2006 for hostapd by  doxygen 1.4.2