The FreeRADIUS server $Id: f3670dba8951ca10eb4948feb3dc3db9423a334f $
Loading...
Searching...
No Matches
Data Structures | Macros | Typedefs | Functions
base.h File Reference

Interface into the base EAP library. More...

#include <freeradius-devel/eap/types.h>
#include <freeradius-devel/server/module.h>
#include <freeradius-devel/server/virtual_servers.h>
#include <freeradius-devel/util/debug.h>
#include <freeradius-devel/eap/compose.h>
#include <freeradius-devel/eap/session.h>
#include <freeradius-devel/eap/submodule.h>
+ Include dependency graph for base.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  eap_tunnel_data_t
 

Macros

#define EAP_STATE_LEN   (RADIUS_AUTH_VECTOR_LENGTH)
 
#define REQUEST_DATA_EAP_MSCHAP_TUNNEL_CALLBACK   ((FR_EAP_MESSAGE << 16) | FR_EAP_METHOD_MSCHAPV2)
 
#define REQUEST_DATA_EAP_TUNNEL_CALLBACK   FR_EAP_MESSAGE
 
#define TLS_CONFIG_SECTION   "tls-config"
 

Typedefs

typedef int(* eap_tunnel_callback_t) (eap_session_t *eap_session, void *tls_session)
 

Functions

void eap_add_reply (request_t *request, fr_dict_attr_t const *da, uint8_t const *value, int len)
 
void eap_base_free (void)
 De-init the lib eap base library.
 
int eap_base_init (void)
 Initialise the lib eap base library.
 
eap_packet_raw_teap_packet_from_vp (TALLOC_CTX *ctx, fr_pair_list_t *vps)
 
void eap_packet_to_vp (TALLOC_CTX *ctx, fr_pair_list_t *list, eap_packet_raw_t const *reply)
 
unlang_action_t eap_virtual_server (request_t *request, eap_session_t *eap_session, virtual_server_t *virtual_server)
 Run a subrequest through a virtual server.
 

Detailed Description

Interface into the base EAP library.

Id
fe5219206fb1fb0736d8f4b37c8dc4d33dc412b4

Definition in file base.h.


Data Structure Documentation

◆ eap_tunnel_data_t

struct eap_tunnel_data_t

Definition at line 50 of file base.h.

+ Collaboration diagram for eap_tunnel_data_t:
Data Fields
eap_tunnel_callback_t callback
void * tls_session

Macro Definition Documentation

◆ EAP_STATE_LEN

#define EAP_STATE_LEN   (RADIUS_AUTH_VECTOR_LENGTH)

Definition at line 40 of file base.h.

◆ REQUEST_DATA_EAP_MSCHAP_TUNNEL_CALLBACK

#define REQUEST_DATA_EAP_MSCHAP_TUNNEL_CALLBACK   ((FR_EAP_MESSAGE << 16) | FR_EAP_METHOD_MSCHAPV2)

Definition at line 43 of file base.h.

◆ REQUEST_DATA_EAP_TUNNEL_CALLBACK

#define REQUEST_DATA_EAP_TUNNEL_CALLBACK   FR_EAP_MESSAGE

Definition at line 42 of file base.h.

◆ TLS_CONFIG_SECTION

#define TLS_CONFIG_SECTION   "tls-config"

Definition at line 38 of file base.h.

Typedef Documentation

◆ eap_tunnel_callback_t

typedef int(* eap_tunnel_callback_t) (eap_session_t *eap_session, void *tls_session)

Definition at line 48 of file base.h.

Function Documentation

◆ eap_add_reply()

void eap_add_reply ( request_t request,
fr_dict_attr_t const *  da,
uint8_t const *  value,
int  len 
)

Definition at line 345 of file base.c.

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

◆ eap_base_free()

void eap_base_free ( void  )

De-init the lib eap base library.

Definition at line 442 of file base.c.

+ Here is the caller graph for this function:

◆ eap_base_init()

int eap_base_init ( void  )

Initialise the lib eap base library.

Definition at line 419 of file base.c.

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

◆ eap_packet_from_vp()

eap_packet_raw_t * eap_packet_from_vp ( TALLOC_CTX *  ctx,
fr_pair_list_t vps 
)

Definition at line 277 of file base.c.

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

◆ eap_packet_to_vp()

void eap_packet_to_vp ( TALLOC_CTX *  ctx,
fr_pair_list_t list,
eap_packet_raw_t const *  reply 
)

Definition at line 128 of file base.c.

+ Here is the call graph for this function:

◆ eap_virtual_server()

unlang_action_t eap_virtual_server ( request_t request,
eap_session_t eap_session,
virtual_server_t virtual_server 
)

Run a subrequest through a virtual server.

If eap_session_t has a child_state, inject that as an attribute in the request.

Parameters
[in]requestthe current (real) request.
[in]eap_sessionrepresenting the outer eap method.
[in]virtual_serverThe virtual server to send the request to.
Returns
  • UNLANG_ACTION_PUSHED_CHILD on success
  • UNLANG_ACTION_FAIL on error

Definition at line 385 of file base.c.

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