All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
eapsimlib.c File Reference
#include <freeradius-devel/libradius.h>
#include "eap_types.h"
#include "eap_sim.h"
#include <freeradius-devel/sha1.h>
+ Include dependency graph for eapsimlib.c:

Go to the source code of this file.

Functions

int eapsim_checkmac (TALLOC_CTX *ctx, VALUE_PAIR *rvps, uint8_t key[EAPSIM_AUTH_SIZE], uint8_t *extra, int extralen, uint8_t calcmac[20])
 
int map_eapsim_basictypes (RADIUS_PACKET *r, eap_packet_t *ep)
 
char const * sim_state2name (enum eapsim_clientstates state, char *statenamebuf, int statenamebuflen)
 
char const * sim_subtype2name (enum eapsim_subtype subtype, char *subtypenamebuf, int subtypenamebuflen)
 
int unmap_eapsim_basictypes (RADIUS_PACKET *r, uint8_t *attr, unsigned int attrlen)
 

Variables

static char const * simstates [] = { "init", "start", NULL }
 
static char const * subtypes []
 

Function Documentation

int eapsim_checkmac ( TALLOC_CTX *  ctx,
VALUE_PAIR rvps,
uint8_t  key[EAPSIM_AUTH_SIZE],
uint8_t *  extra,
int  extralen,
uint8_t  calcmac[20] 
)

Definition at line 357 of file eapsimlib.c.

+ Here is the call graph for this function:

int map_eapsim_basictypes ( RADIUS_PACKET r,
eap_packet_t ep 
)

Definition at line 63 of file eapsimlib.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

char const* sim_state2name ( enum eapsim_clientstates  state,
char *  statenamebuf,
int  statenamebuflen 
)

Definition at line 437 of file eapsimlib.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

char const* sim_subtype2name ( enum eapsim_subtype  subtype,
char *  subtypenamebuf,
int  subtypenamebuflen 
)

Definition at line 459 of file eapsimlib.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int unmap_eapsim_basictypes ( RADIUS_PACKET r,
uint8_t *  attr,
unsigned int  attrlen 
)

Definition at line 284 of file eapsimlib.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

char const* simstates[] = { "init", "start", NULL }
static

Definition at line 435 of file eapsimlib.c.

char const* subtypes[]
static
Initial value:
= { "subtype0", "subtype1", "subtype2", "subtype3",
"subtype4", "subtype5", "subtype6", "subtype7",
"subtype8", "subtype9",
"start",
"challenge",
"notification",
"reauth",
"client-error",
NULL }

Definition at line 449 of file eapsimlib.c.