The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
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/util/debug.h>
#include <freeradius-devel/eap/base.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. More...
 
int eap_base_init (void)
 Initialise the lib eap base library. More...
 
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, CONF_SECTION *server_cs)
 Run a subrequest through a virtual server. More...
 

Detailed Description

Interface into the base EAP library.

Id
9896ce8994933dceeb0999cde94f05e298718ac3

Definition in file base.h.


Data Structure Documentation

◆ eap_tunnel_data_t

struct eap_tunnel_data_t

Definition at line 52 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 42 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 45 of file base.h.

◆ REQUEST_DATA_EAP_TUNNEL_CALLBACK

#define REQUEST_DATA_EAP_TUNNEL_CALLBACK   FR_EAP_MESSAGE

Definition at line 44 of file base.h.

◆ TLS_CONFIG_SECTION

#define TLS_CONFIG_SECTION   "tls-config"

Definition at line 40 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 50 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 381 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 472 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 449 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 285 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 126 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,
CONF_SECTION server_cs 
)

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]server_csThe virtual server to send the request to.
Returns
  • UNLANG_ACTION_PUSHED_CHILD on success
  • UNLANG_ACTION_FAIL on error

Definition at line 421 of file base.c.

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