The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Functions | Variables
base.c File Reference

EAP-SIM process module. More...

#include <freeradius-devel/eap_aka_sim/base.h>
#include <freeradius-devel/eap_aka_sim/attrs.h>
#include <freeradius-devel/eap_aka_sim/state_machine.h>
#include <freeradius-devel/server/virtual_servers.h>
#include <freeradius-devel/server/process.h>
+ Include dependency graph for base.c:

Go to the source code of this file.

Functions

static int mod_instantiate (module_inst_ctx_t const *mctx)
 
static int mod_load (void)
 
static void mod_unload (void)
 

Variables

static virtual_server_compile_t compile_list []
 
fr_process_module_t process_eap_sim
 
static conf_parser_t submodule_config []
 

Detailed Description

EAP-SIM process module.

Id
1f920fe6ace7f57f57e6aab2d91158ec23853754

The state machine for EAP-SIM, EAP-AKA and EAP-AKA' is common to all methods and is in src/lib/eap_aka_sim/state_machine.c

The process modules for the different EAP methods just define the sections for that EAP method, and parse different config items.

Definition in file base.c.

Function Documentation

◆ mod_instantiate()

static int mod_instantiate ( module_inst_ctx_t const *  mctx)
static

Definition at line 203 of file base.c.

◆ mod_load()

static int mod_load ( void  )
static

Definition at line 218 of file base.c.

+ Here is the call graph for this function:

◆ mod_unload()

static void mod_unload ( void  )
static

Definition at line 227 of file base.c.

+ Here is the call graph for this function:

Variable Documentation

◆ compile_list

virtual_server_compile_t compile_list[]
static

Definition at line 49 of file base.c.

◆ process_eap_sim

fr_process_module_t process_eap_sim
Initial value:
= {
.common = {
.name = "eap_sim",
.onload = mod_load,
.unload = mod_unload,
.config = submodule_config,
.instantiate = mod_instantiate,
.inst_size = sizeof(eap_aka_sim_process_conf_t),
.inst_type = "eap_aka_sim_process_conf_t"
},
.compile_list = compile_list,
.dict = &dict_eap_aka_sim,
}
#define MODULE_MAGIC_INIT
Stop people using different module/library/server versions together.
Definition: dl_module.h:63
fr_dict_t const * dict_eap_aka_sim
Definition: base.c:48
static int mod_load(void)
Definition: base.c:218
static virtual_server_compile_t compile_list[]
Definition: base.c:49
static void mod_unload(void)
Definition: base.c:227
static conf_parser_t submodule_config[]
Definition: base.c:37
static int mod_instantiate(module_inst_ctx_t const *mctx)
Definition: base.c:203
unlang_action_t eap_aka_sim_state_machine_process(rlm_rcode_t *p_result, module_ctx_t const *mctx, request_t *request)
Resumes the state machine when receiving a new response packet.

Definition at line 235 of file base.c.

◆ submodule_config

conf_parser_t submodule_config[]
static
Initial value:
= {
{ FR_CONF_OFFSET("request_identity", eap_aka_sim_process_conf_t, request_identity ),
{ FR_CONF_OFFSET("strip_permanent_identity_hint", eap_aka_sim_process_conf_t,
strip_permanent_identity_hint ), .dflt = "yes" },
{ FR_CONF_OFFSET_TYPE_FLAGS("ephemeral_id_length", FR_TYPE_SIZE, 0, eap_aka_sim_process_conf_t, ephemeral_id_length ), .dflt = "14" },
{ FR_CONF_OFFSET("protected_success", eap_aka_sim_process_conf_t, protected_success ), .dflt = "no" },
}
int cf_table_parse_int(UNUSED TALLOC_CTX *ctx, void *out, UNUSED void *parent, CONF_ITEM *ci, conf_parser_t const *rule)
Generic function for parsing conf pair values as int.
Definition: cf_parse.c:1474
#define CONF_PARSER_TERMINATOR
Definition: cf_parse.h:627
#define FR_CONF_OFFSET(_name, _struct, _field)
conf_parser_t which parses a single CONF_PAIR, writing the result to a field in a struct
Definition: cf_parse.h:268
#define FR_CONF_OFFSET_TYPE_FLAGS(_name, _type, _flags, _struct, _field)
conf_parser_t which parses a single CONF_PAIR, writing the result to a field in a struct
Definition: cf_parse.h:241
fr_table_num_sorted_t const fr_aka_sim_id_request_table[]
Definition: id.c:33
size_t fr_aka_sim_id_request_table_len
Definition: id.c:41
@ FR_TYPE_SIZE
Unsigned integer capable of representing any memory address on the local system.
Definition: merged_model.c:115

Definition at line 37 of file base.c.