All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
eap.c File Reference
#include <freeradius-devel/modpriv.h>
#include "rlm_eap.h"
#include <ctype.h>
+ Include dependency graph for eap.c:

Go to the source code of this file.

Functions

static int _eap_module_free (eap_module_t *inst)
 
static eap_round_teap_buildds (eap_session_t *eap_session, eap_packet_raw_t **eap_packet_p)
 
rlm_rcode_t eap_compose (eap_session_t *eap_session)
 
void eap_fail (eap_session_t *eap_session)
 
static char * eap_identity (REQUEST *request, eap_session_t *eap_session, eap_packet_raw_t *eap_packet)
 
eap_rcode_t eap_method_select (rlm_eap_t *inst, eap_session_t *eap_session)
 Select the correct callback based on a response. More...
 
static int eap_module_call (eap_module_t *module, eap_session_t *eap_session)
 
int eap_module_instantiate (rlm_eap_t *inst, eap_module_t **m_inst, eap_type_t num, CONF_SECTION *cs)
 Load required EAP sub-modules (methods) More...
 
static eap_type_t eap_process_nak (rlm_eap_t *inst, REQUEST *request, eap_type_t type, eap_type_data_t *nak)
 Process NAK data from EAP peer. More...
 
eap_session_teap_session_get (rlm_eap_t *inst, eap_packet_raw_t **eap_packet_p, REQUEST *request)
 
int eap_start (rlm_eap_t *inst, REQUEST *request)
 
void eap_success (eap_session_t *eap_session)
 
static int eap_validation (REQUEST *request, eap_packet_raw_t **eap_packet_p)
 

Variables

static char const * eap_codes []
 

Function Documentation

static int _eap_module_free ( eap_module_t inst)
static

Definition at line 72 of file eap.c.

+ Here is the caller graph for this function:

static eap_round_t* eap_buildds ( eap_session_t eap_session,
eap_packet_raw_t **  eap_packet_p 
)
static

Definition at line 1013 of file eap.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

rlm_rcode_t eap_compose ( eap_session_t eap_session)

Definition at line 445 of file eap.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void eap_fail ( eap_session_t eap_session)

Definition at line 850 of file eap.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static char* eap_identity ( REQUEST request,
eap_session_t eap_session,
eap_packet_raw_t eap_packet 
)
static

Definition at line 976 of file eap.c.

+ Here is the caller graph for this function:

eap_rcode_t eap_method_select ( rlm_eap_t inst,
eap_session_t eap_session 
)

Select the correct callback based on a response.

Based on the EAP response from the supplicant, call the appropriate method callback.

Default to the configured EAP-Type for all Unsupported EAP-Types.

Parameters
instConfiguration data for this instance of rlm_eap.
eap_sessionState data that persists over multiple rounds of EAP.
Returns
a status code.

Definition at line 317 of file eap.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int eap_module_call ( eap_module_t module,
eap_session_t eap_session 
)
static

Definition at line 176 of file eap.c.

+ Here is the caller graph for this function:

int eap_module_instantiate ( rlm_eap_t inst,
eap_module_t **  m_inst,
eap_type_t  num,
CONF_SECTION cs 
)

Load required EAP sub-modules (methods)

Definition at line 96 of file eap.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static eap_type_t eap_process_nak ( rlm_eap_t inst,
REQUEST request,
eap_type_t  type,
eap_type_data_t nak 
)
static

Process NAK data from EAP peer.

Definition at line 198 of file eap.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

eap_session_t* eap_session_get ( rlm_eap_t inst,
eap_packet_raw_t **  eap_packet_p,
REQUEST request 
)

Definition at line 1069 of file eap.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int eap_start ( rlm_eap_t inst,
REQUEST request 
)

Definition at line 608 of file eap.c.

+ Here is the call graph for this function:

void eap_success ( eap_session_t eap_session)

Definition at line 868 of file eap.c.

+ Here is the call graph for this function:

static int eap_validation ( REQUEST request,
eap_packet_raw_t **  eap_packet_p 
)
static

Definition at line 878 of file eap.c.

+ Here is the caller graph for this function:

Variable Documentation

char const* eap_codes[]
static
Initial value:
= {
"",
"Request",
"Response",
"Success",
"Failure"
}

Definition at line 64 of file eap.c.