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

TLS processing. More...

#include <freeradius-devel/server/protocol.h>
#include <freeradius-devel/util/debug.h>
#include <freeradius-devel/protocol/tls/freeradius.h>
#include <freeradius-devel/server/process.h>
+ Include dependency graph for base.c:

Go to the source code of this file.

Data Structures

struct  process_tls_sections_t
 
struct  process_tls_t
 

Macros

#define FR_TLS_PACKET_CODE_VALID(_code)   (((_code) > 0) && ((_code) <= FR_PACKET_TYPE_VALUE_NOTFOUND))
 
#define PROCESS_INST   process_tls_t
 
#define PROCESS_PACKET_CODE_VALID   FR_TLS_PACKET_CODE_VALID
 
#define PROCESS_PACKET_TYPE   uint32_t
 

Functions

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

Variables

static fr_dict_attr_t const * attr_packet_type
 
static const virtual_server_compile_t compile_list []
 
static fr_dict_t const * dict_tls
 
static fr_process_state_t const process_state []
 
fr_process_module_t process_tls
 
fr_dict_autoload_t process_tls_dict []
 
fr_dict_attr_autoload_t process_tls_dict_attr []
 

Detailed Description

TLS processing.

Id
dae4e9f1aa52c43da9b6e695203765d755ff207a

Definition in file base.c.


Data Structure Documentation

◆ process_tls_sections_t

struct process_tls_sections_t

Definition at line 44 of file base.c.

+ Collaboration diagram for process_tls_sections_t:
Data Fields
CONF_SECTION * clear_session
CONF_SECTION * load_session
CONF_SECTION * store_session
CONF_SECTION * verify_certificate

◆ process_tls_t

struct process_tls_t

Definition at line 51 of file base.c.

+ Collaboration diagram for process_tls_t:
Data Fields
process_tls_sections_t sections

Macro Definition Documentation

◆ FR_TLS_PACKET_CODE_VALID

#define FR_TLS_PACKET_CODE_VALID (   _code)    (((_code) > 0) && ((_code) <= FR_PACKET_TYPE_VALUE_NOTFOUND))

Definition at line 55 of file base.c.

◆ PROCESS_INST

#define PROCESS_INST   process_tls_t

Definition at line 57 of file base.c.

◆ PROCESS_PACKET_CODE_VALID

#define PROCESS_PACKET_CODE_VALID   FR_TLS_PACKET_CODE_VALID

Definition at line 59 of file base.c.

◆ PROCESS_PACKET_TYPE

#define PROCESS_PACKET_TYPE   uint32_t

Definition at line 58 of file base.c.

Function Documentation

◆ 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 134 of file base.c.

+ Here is the call graph for this function:

Variable Documentation

◆ attr_packet_type

fr_dict_attr_t const* attr_packet_type
static

Definition at line 36 of file base.c.

◆ compile_list

const virtual_server_compile_t compile_list[]
static
Initial value:
= {
{
.section = SECTION_NAME("store", "session"),
.actions = &mod_actions_authorize,
.offset = PROCESS_CONF_OFFSET(store_session)
},
{
.section = SECTION_NAME("load", "session"),
.actions = &mod_actions_authorize,
.offset = PROCESS_CONF_OFFSET(load_session)
},
{
.section = SECTION_NAME("clear", "session"),
.actions = &mod_actions_authorize,
.offset = PROCESS_CONF_OFFSET(clear_session)
},
{
.section = SECTION_NAME("verify", "certificate"),
.actions = &mod_actions_authorize,
.offset = PROCESS_CONF_OFFSET(verify_certificate)
},
}
unlang_mod_actions_t const mod_actions_authorize
Definition: mod_action.c:44
#define SECTION_NAME(_name1, _name2)
Define a section name consisting of a verb and a noun.
Definition: section.h:40
#define COMPILE_TERMINATOR

Definition at line 153 of file base.c.

◆ dict_tls

fr_dict_t const* dict_tls
static

Definition at line 28 of file base.c.

◆ process_state

fr_process_state_t const process_state[]
static

Definition at line 63 of file base.c.

◆ process_tls

fr_process_module_t process_tls
Initial value:
= {
.common = {
.name = "tls",
.inst_size = sizeof(process_tls_t)
},
.process = mod_process,
.compile_list = compile_list,
.dict = &dict_tls,
}
#define MODULE_MAGIC_INIT
Stop people using different module/library/server versions together.
Definition: dl_module.h:63
static unlang_action_t mod_process(rlm_rcode_t *p_result, module_ctx_t const *mctx, request_t *request)
Definition: base.c:134
static fr_dict_t const * dict_tls
Definition: base.c:28
static const virtual_server_compile_t compile_list[]
Definition: base.c:153

Definition at line 179 of file base.c.

◆ process_tls_dict

fr_dict_autoload_t process_tls_dict
Initial value:
= {
{ .out = &dict_tls, .proto = "tls" },
{ NULL }
}

Definition at line 31 of file base.c.

◆ process_tls_dict_attr

fr_dict_attr_autoload_t process_tls_dict_attr
Initial value:
= {
{ .out = &attr_packet_type, .name = "Packet-Type", .type = FR_TYPE_UINT32, .dict = &dict_tls},
{ NULL }
}
fr_dict_attr_t const * attr_packet_type
Definition: base.c:91
@ FR_TYPE_UINT32
32 Bit unsigned integer.
Definition: merged_model.c:99

Definition at line 39 of file base.c.