The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Data Structures | Functions | Variables
rlm_eap_gtc.c File Reference

EAP-GTC inner authentication method. More...

#include <freeradius-devel/eap/base.h>
#include <freeradius-devel/util/debug.h>
#include <freeradius-devel/server/virtual_servers.h>
#include <freeradius-devel/server/pair.h>
#include <freeradius-devel/unlang/call.h>
#include <freeradius-devel/unlang/interpret.h>
+ Include dependency graph for rlm_eap_gtc.c:

Go to the source code of this file.

Data Structures

struct  rlm_eap_gtc_t
 

Functions

static int auth_type_parse (TALLOC_CTX *ctx, void *out, UNUSED void *parent, CONF_ITEM *ci, UNUSED conf_parser_t const *rule)
 
static int auth_type_parse (UNUSED TALLOC_CTX *ctx, void *out, UNUSED void *parent, CONF_ITEM *ci, UNUSED conf_parser_t const *rule)
 Translate a string auth_type into an enumeration value. More...
 
static unlang_action_t gtc_resume (rlm_rcode_t *p_result, module_ctx_t const *mctx, request_t *request)
 
static unlang_action_t mod_process (rlm_rcode_t *p_result, module_ctx_t const *mctx, request_t *request)
 
static unlang_action_t mod_session_init (rlm_rcode_t *p_result, module_ctx_t const *mctx, request_t *request)
 

Variables

static fr_dict_attr_t const * attr_auth_type
 
static fr_dict_attr_t const * attr_user_password
 
static fr_dict_t const * dict_freeradius
 
static fr_dict_t const * dict_radius
 
rlm_eap_submodule_t rlm_eap_gtc
 
fr_dict_autoload_t rlm_eap_gtc_dict []
 
fr_dict_attr_autoload_t rlm_eap_gtc_dict_attr []
 
static conf_parser_t submodule_config []
 

Detailed Description

EAP-GTC inner authentication method.

Id
27661cb13a6695ea2649d9a9cf047677575a6858

Definition in file rlm_eap_gtc.c.


Data Structure Documentation

◆ rlm_eap_gtc_t

struct rlm_eap_gtc_t

Definition at line 41 of file rlm_eap_gtc.c.

+ Collaboration diagram for rlm_eap_gtc_t:
Data Fields
fr_dict_enum_value_t const * auth_type
char const * challenge

Function Documentation

◆ auth_type_parse() [1/2]

static int auth_type_parse ( TALLOC_CTX *  ctx,
void *  out,
UNUSED void *  parent,
CONF_ITEM ci,
UNUSED conf_parser_t const *  rule 
)
static

◆ auth_type_parse() [2/2]

static int auth_type_parse ( UNUSED TALLOC_CTX *  ctx,
void *  out,
UNUSED void *  parent,
CONF_ITEM ci,
UNUSED conf_parser_t const *  rule 
)
static

Translate a string auth_type into an enumeration value.

Parameters
[in]ctxto allocate data.
[out]outWhere to write the auth_type we created or resolved.
[in]parentBase structure address.
[in]ciCONF_PAIR specifying the name of the auth_type.
[in]ruleunused.
Returns
  • 0 on success.
  • -1 on failure.

Definition at line 85 of file rlm_eap_gtc.c.

+ Here is the call graph for this function:

◆ gtc_resume()

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

Definition at line 102 of file rlm_eap_gtc.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ mod_process()

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

Definition at line 123 of file rlm_eap_gtc.c.

+ Here is the call graph for this function:
+ Here is the caller 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 181 of file rlm_eap_gtc.c.

+ Here is the call graph for this function:

Variable Documentation

◆ attr_auth_type

fr_dict_attr_t const* attr_auth_type
static

Definition at line 62 of file rlm_eap_gtc.c.

◆ attr_user_password

fr_dict_attr_t const* attr_user_password
static

Definition at line 63 of file rlm_eap_gtc.c.

◆ dict_freeradius

fr_dict_t const* dict_freeradius
static

Definition at line 52 of file rlm_eap_gtc.c.

◆ dict_radius

fr_dict_t const* dict_radius
static

Definition at line 53 of file rlm_eap_gtc.c.

◆ rlm_eap_gtc

rlm_eap_submodule_t rlm_eap_gtc
Initial value:
= {
.common = {
.name = "eap_gtc",
.inst_size = sizeof(rlm_eap_gtc_t),
},
.provides = { FR_EAP_METHOD_GTC },
.session_init = mod_session_init,
.clone_parent_lists = true
}
#define MODULE_MAGIC_INIT
Stop people using different module/library/server versions together.
Definition: dl_module.h:65
@ FR_EAP_METHOD_GTC
Definition: types.h:51
static const conf_parser_t config[]
Definition: base.c:188
static conf_parser_t submodule_config[]
Definition: rlm_eap_gtc.c:46
static unlang_action_t mod_session_init(rlm_rcode_t *p_result, module_ctx_t const *mctx, request_t *request)
Definition: rlm_eap_gtc.c:181

Definition at line 223 of file rlm_eap_gtc.c.

◆ rlm_eap_gtc_dict

fr_dict_autoload_t rlm_eap_gtc_dict
Initial value:
= {
{ .out = &dict_freeradius, .proto = "freeradius" },
{ .out = &dict_radius, .proto = "radius" },
{ NULL }
}
static fr_dict_t const * dict_freeradius
Definition: rlm_eap_gtc.c:52
static fr_dict_t const * dict_radius
Definition: rlm_eap_gtc.c:53

Definition at line 56 of file rlm_eap_gtc.c.

◆ rlm_eap_gtc_dict_attr

fr_dict_attr_autoload_t rlm_eap_gtc_dict_attr
Initial value:
= {
{ .out = &attr_auth_type, .name = "Auth-Type", .type = FR_TYPE_UINT32, .dict = &dict_freeradius },
{ .out = &attr_user_password, .name = "User-Password", .type = FR_TYPE_STRING, .dict = &dict_radius },
{ NULL }
}
@ FR_TYPE_STRING
String of printable characters.
Definition: merged_model.c:83
@ FR_TYPE_UINT32
32 Bit unsigned integer.
Definition: merged_model.c:99
static fr_dict_attr_t const * attr_user_password
Definition: rlm_eap_gtc.c:63
static fr_dict_attr_t const * attr_auth_type
Definition: rlm_eap_gtc.c:62

Definition at line 66 of file rlm_eap_gtc.c.

◆ submodule_config

conf_parser_t submodule_config[]
static
Initial value:
= {
{ FR_CONF_OFFSET("challenge", rlm_eap_gtc_t, challenge), .dflt = "Password: " },
{ FR_CONF_OFFSET_TYPE_FLAGS("auth_type", FR_TYPE_VOID, 0, rlm_eap_gtc_t, auth_type), .func = auth_type_parse, .dflt = "pap" },
}
#define CONF_PARSER_TERMINATOR
Definition: cf_parse.h:626
#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_TYPE_VOID
User data.
Definition: merged_model.c:127
static int auth_type_parse(TALLOC_CTX *ctx, void *out, UNUSED void *parent, CONF_ITEM *ci, UNUSED conf_parser_t const *rule)

Definition at line 46 of file rlm_eap_gtc.c.