The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Data Structures | Functions | Variables
rlm_eap_peap.c File Reference
#include <freeradius-devel/eap/tls.h>
#include "eap_peap.h"
+ Include dependency graph for rlm_eap_peap.c:

Go to the source code of this file.

Data Structures

struct  rlm_eap_peap_t
 
struct  rlm_eap_peap_thread_t
 

Functions

static unlang_action_t mod_handshake_process (UNUSED rlm_rcode_t *p_result, UNUSED module_ctx_t const *mctx, request_t *request)
 
static unlang_action_t mod_handshake_resume (rlm_rcode_t *p_result, module_ctx_t const *mctx, request_t *request)
 
static int mod_instantiate (module_inst_ctx_t const *mctx)
 
static unlang_action_t mod_session_init (rlm_rcode_t *p_result, module_ctx_t const *mctx, request_t *request)
 
static int mod_thread_detach (module_thread_inst_ctx_t const *mctx)
 
static int mod_thread_instantiate (module_thread_inst_ctx_t const *mctx)
 
static peap_tunnel_tpeap_alloc (TALLOC_CTX *ctx, rlm_eap_peap_t *inst)
 
static unlang_action_t process_rcode (rlm_rcode_t *p_result, module_ctx_t const *mctx, request_t *request)
 

Variables

fr_dict_attr_t const * attr_auth_type
 
fr_dict_attr_t const * attr_eap_message
 
fr_dict_attr_t const * attr_eap_tls_require_client_cert
 
fr_dict_attr_t const * attr_user_name
 
static fr_dict_t const * dict_freeradius
 
static fr_dict_t const * dict_radius
 
rlm_eap_submodule_t rlm_eap_peap
 
fr_dict_autoload_t rlm_eap_peap_dict []
 
fr_dict_attr_autoload_t rlm_eap_peap_dict_attr []
 
static conf_parser_t submodule_config []
 

Data Structure Documentation

◆ rlm_eap_peap_t

struct rlm_eap_peap_t

Definition at line 32 of file rlm_eap_peap.c.

+ Collaboration diagram for rlm_eap_peap_t:
Data Fields
bool copy_request_to_tunnel Use SOME of the request attributes from outside of the tunneled session in the tunneled request.
bool req_client_cert Do we do require a client cert?
CONF_SECTION * server_cs
fr_tls_conf_t * tls_conf
char const * tls_conf_name TLS configuration.
bool use_tunneled_reply Use the reply attributes from the tunneled session in the non-tunneled reply to the client.
char const * virtual_server Virtual server for inner tunnel session.

◆ rlm_eap_peap_thread_t

struct rlm_eap_peap_thread_t

Definition at line 28 of file rlm_eap_peap.c.

Data Fields
SSL_CTX * ssl_ctx Thread local SSL_CTX.

Function Documentation

◆ mod_handshake_process()

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

Definition at line 255 of file rlm_eap_peap.c.

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

◆ mod_handshake_resume()

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

Definition at line 168 of file rlm_eap_peap.c.

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

◆ mod_instantiate()

static int mod_instantiate ( module_inst_ctx_t const *  mctx)
static

Definition at line 365 of file rlm_eap_peap.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 274 of file rlm_eap_peap.c.

+ Here is the call graph for this function:

◆ mod_thread_detach()

static int mod_thread_detach ( module_thread_inst_ctx_t const *  mctx)
static

Definition at line 352 of file rlm_eap_peap.c.

◆ mod_thread_instantiate()

static int mod_thread_instantiate ( module_thread_inst_ctx_t const *  mctx)
static

Definition at line 341 of file rlm_eap_peap.c.

◆ peap_alloc()

static peap_tunnel_t* peap_alloc ( TALLOC_CTX *  ctx,
rlm_eap_peap_t inst 
)
static

Definition at line 92 of file rlm_eap_peap.c.

+ Here is the caller graph for this function:

◆ process_rcode()

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

Definition at line 107 of file rlm_eap_peap.c.

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

Variable Documentation

◆ attr_auth_type

fr_dict_attr_t const* attr_auth_type

Definition at line 72 of file rlm_eap_peap.c.

◆ attr_eap_message

fr_dict_attr_t const* attr_eap_message

Definition at line 75 of file rlm_eap_peap.c.

◆ attr_eap_tls_require_client_cert

fr_dict_attr_t const* attr_eap_tls_require_client_cert

Definition at line 73 of file rlm_eap_peap.c.

◆ attr_user_name

fr_dict_attr_t const* attr_user_name

Definition at line 76 of file rlm_eap_peap.c.

◆ dict_freeradius

fr_dict_t const* dict_freeradius
static

Definition at line 62 of file rlm_eap_peap.c.

◆ dict_radius

fr_dict_t const* dict_radius
static

Definition at line 63 of file rlm_eap_peap.c.

◆ rlm_eap_peap

rlm_eap_submodule_t rlm_eap_peap
Initial value:
= {
.common = {
.name = "eap_peap",
.inst_size = sizeof(rlm_eap_peap_t),
.thread_inst_size = sizeof(rlm_eap_peap_thread_t),
.thread_instantiate = mod_thread_instantiate,
.thread_detach = mod_thread_detach,
},
.provides = { FR_EAP_METHOD_PEAP },
.session_init = mod_session_init,
}
#define MODULE_MAGIC_INIT
Stop people using different module/library/server versions together.
Definition: dl_module.h:63
@ FR_EAP_METHOD_PEAP
Definition: types.h:70
static const conf_parser_t config[]
Definition: base.c:183
static int mod_thread_instantiate(module_thread_inst_ctx_t const *mctx)
Definition: rlm_eap_peap.c:341
static conf_parser_t submodule_config[]
Definition: rlm_eap_peap.c:48
static int mod_thread_detach(module_thread_inst_ctx_t const *mctx)
Definition: rlm_eap_peap.c:352
static int mod_instantiate(module_inst_ctx_t const *mctx)
Definition: rlm_eap_peap.c:365
static unlang_action_t mod_session_init(rlm_rcode_t *p_result, module_ctx_t const *mctx, request_t *request)
Definition: rlm_eap_peap.c:274
static int instantiate(module_inst_ctx_t const *mctx)
Definition: rlm_rest.c:1302

Definition at line 400 of file rlm_eap_peap.c.

◆ rlm_eap_peap_dict

fr_dict_autoload_t rlm_eap_peap_dict
Initial value:
= {
{ .out = &dict_freeradius, .proto = "freeradius" },
{ .out = &dict_radius, .proto = "radius" },
{ NULL }
}
static fr_dict_t const * dict_freeradius
Definition: rlm_eap_peap.c:62
static fr_dict_t const * dict_radius
Definition: rlm_eap_peap.c:63

Definition at line 66 of file rlm_eap_peap.c.

◆ rlm_eap_peap_dict_attr

fr_dict_attr_autoload_t rlm_eap_peap_dict_attr
Initial value:
= {
{ .out = &attr_auth_type, .name = "Auth-Type", .type = FR_TYPE_UINT32, .dict = &dict_freeradius },
{ .out = &attr_eap_tls_require_client_cert, .name = "EAP-TLS-Require-Client-Cert", .type = FR_TYPE_UINT32, .dict = &dict_freeradius },
{ .out = &attr_eap_message, .name = "EAP-Message", .type = FR_TYPE_OCTETS, .dict = &dict_radius },
{ .out = &attr_user_name, .name = "User-Name", .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
@ FR_TYPE_OCTETS
Raw octets.
Definition: merged_model.c:84
fr_dict_attr_t const * attr_eap_message
Definition: rlm_eap_peap.c:75
fr_dict_attr_t const * attr_eap_tls_require_client_cert
Definition: rlm_eap_peap.c:73
fr_dict_attr_t const * attr_auth_type
Definition: rlm_eap_peap.c:72
fr_dict_attr_t const * attr_user_name
Definition: rlm_eap_peap.c:76

Definition at line 79 of file rlm_eap_peap.c.

◆ submodule_config

conf_parser_t submodule_config[]
static
Initial value:
= {
{ FR_CONF_OFFSET("tls", rlm_eap_peap_t, tls_conf_name) },
{ FR_CONF_DEPRECATED("copy_request_to_tunnel", rlm_eap_peap_t, NULL), .dflt = "no" },
{ FR_CONF_DEPRECATED("use_tunneled_reply", rlm_eap_peap_t, NULL), .dflt = "no" },
{ FR_CONF_OFFSET("require_client_cert", rlm_eap_peap_t, req_client_cert), .dflt = "no" },
}
#define CONF_PARSER_TERMINATOR
Definition: cf_parse.h:627
#define FR_CONF_DEPRECATED(_name, _struct, _field)
conf_parser_t entry which raises an error if a matching CONF_PAIR is found
Definition: cf_parse.h:385
#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_FLAGS(_name, _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:256
@ CONF_FLAG_REQUIRED
Error out if no matching CONF_PAIR is found, and no dflt value is set.
Definition: cf_parse.h:405
@ CONF_FLAG_NOT_EMPTY
CONF_PAIR is required to have a non zero length value.
Definition: cf_parse.h:420

Definition at line 48 of file rlm_eap_peap.c.