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

Implements EAP-AKA. More...

#include <freeradius-devel/eap/base.h>
#include <freeradius-devel/eap_aka_sim/attrs.h>
#include <freeradius-devel/eap_aka_sim/base.h>
#include <freeradius-devel/eap_aka_sim/module.h>
#include <freeradius-devel/server/virtual_servers.h>
#include <freeradius-devel/unlang/module.h>
#include <freeradius-devel/util/rand.h>
#include <freeradius-devel/util/debug.h>
+ Include dependency graph for rlm_eap_aka.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 unlang_action_t mod_session_init (rlm_rcode_t *p_result, module_ctx_t const *mctx, request_t *request)
 
static eap_type_t mod_type_identity (UNUSED void *instance, char const *id, size_t len)
 
static void mod_unload (void)
 

Variables

rlm_eap_submodule_t rlm_eap_aka
 
static conf_parser_t submodule_config []
 

Detailed Description

Implements EAP-AKA.

Id
e0bf27f2f3786e19679fa86f82a6d29b1dea2d79
Author
Arran Cudbard-Bell (a.cud.nosp@m.bard.nosp@m.b@fre.nosp@m.erad.nosp@m.ius.o.nosp@m.rg)

Definition in file rlm_eap_aka.c.

Function Documentation

◆ mod_instantiate()

static int mod_instantiate ( module_inst_ctx_t const *  mctx)
static

Definition at line 62 of file rlm_eap_aka.c.

+ Here is the call graph for this function:

◆ mod_load()

static int mod_load ( void  )
static

Definition at line 99 of file rlm_eap_aka.c.

+ Here is the call graph for this function:

◆ mod_session_init()

static unlang_action_t mod_session_init ( rlm_rcode_t p_result,
module_ctx_t const *  mctx,
request_t request 
)
static

Definition at line 48 of file rlm_eap_aka.c.

+ Here is the call graph for this function:

◆ mod_type_identity()

static eap_type_t mod_type_identity ( UNUSED void *  instance,
char const *  id,
size_t  len 
)
static

Definition at line 92 of file rlm_eap_aka.c.

+ Here is the call graph for this function:

◆ mod_unload()

static void mod_unload ( void  )
static

Definition at line 108 of file rlm_eap_aka.c.

+ Here is the call graph for this function:

Variable Documentation

◆ rlm_eap_aka

rlm_eap_submodule_t rlm_eap_aka
Initial value:
= {
.common = {
.name = "eap_aka",
.inst_size = sizeof(eap_aka_sim_module_conf_t),
.inst_type = "eap_aka_sim_module_conf_t",
.onload = mod_load,
.unload = mod_unload,
},
.provides = { FR_EAP_METHOD_AKA },
.type_identity = mod_type_identity,
.session_init = mod_session_init,
.namespace = &dict_eap_aka_sim
}
#define MODULE_MAGIC_INIT
Stop people using different module/library/server versions together.
Definition: dl_module.h:63
@ FR_EAP_METHOD_AKA
Definition: types.h:68
fr_dict_t const * dict_eap_aka_sim
Definition: base.c:48
static const conf_parser_t config[]
Definition: base.c:183
static int mod_load(void)
Definition: rlm_eap_aka.c:99
static void mod_unload(void)
Definition: rlm_eap_aka.c:108
static conf_parser_t submodule_config[]
Definition: rlm_eap_aka.c:39
static int mod_instantiate(module_inst_ctx_t const *mctx)
Definition: rlm_eap_aka.c:62
static eap_type_t mod_type_identity(UNUSED void *instance, char const *id, size_t len)
Definition: rlm_eap_aka.c:92
static unlang_action_t mod_session_init(rlm_rcode_t *p_result, module_ctx_t const *mctx, request_t *request)
Definition: rlm_eap_aka.c:48
static int instantiate(module_inst_ctx_t const *mctx)
Definition: rlm_rest.c:1302

Definition at line 119 of file rlm_eap_aka.c.

◆ submodule_config

conf_parser_t submodule_config[]
static
Initial value:
= {
{ FR_CONF_OFFSET_TYPE_FLAGS("virtual_server", FR_TYPE_VOID, 0, eap_aka_sim_module_conf_t, virtual_server), .func = virtual_server_cf_parse },
{ FR_CONF_OFFSET_IS_SET("prefer_aka_prime", FR_TYPE_BOOL, 0, eap_aka_sim_module_conf_t, aka.send_at_bidding_prefer_prime ), .dflt = "no" },
}
#define CONF_PARSER_TERMINATOR
Definition: cf_parse.h:627
#define FR_CONF_OFFSET_IS_SET(_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:282
#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_TYPE_VOID
User data.
Definition: merged_model.c:127
@ FR_TYPE_BOOL
A truth value.
Definition: merged_model.c:95
int virtual_server_cf_parse(UNUSED TALLOC_CTX *ctx, void *out, UNUSED void *parent, CONF_ITEM *ci, UNUSED conf_parser_t const *rule)
Wrapper for the config parser to allow pass1 resolution of virtual servers.

Definition at line 39 of file rlm_eap_aka.c.