The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Macros | Functions
ttls.c File Reference

Library functions for EAP-TTLS as defined by RFC 5281. More...

#include <freeradius-devel/eap/chbind.h>
#include <freeradius-devel/tls/log.h>
#include <freeradius-devel/tls/strerror.h>
#include "eap_ttls.h"
+ Include dependency graph for ttls.c:

Go to the source code of this file.

Macros

#define FR_DIAMETER_AVP_FLAG_MANDATORY   0x40
 
#define FR_DIAMETER_AVP_FLAG_VENDOR   0x80
 

Functions

static int diameter_verify (request_t *request, uint8_t const *data, unsigned int data_len)
 
static ssize_t eap_ttls_decode_pair (request_t *request, TALLOC_CTX *ctx, fr_pair_list_t *out, fr_dict_attr_t const *parent, uint8_t const *data, size_t data_len, void *decode_ctx)
 
unlang_action_t eap_ttls_process (request_t *request, eap_session_t *eap_session, fr_tls_session_t *tls_session)
 
unlang_action_t eap_ttls_success (rlm_rcode_t *p_result, request_t *request, eap_session_t *eap_session)
 
static unlang_action_t process_reply (rlm_rcode_t *p_result, module_ctx_t const *mctx, request_t *request)
 
static int vp2diameter (request_t *request, fr_tls_session_t *tls_session, fr_pair_list_t *list)
 

Detailed Description

Library functions for EAP-TTLS as defined by RFC 5281.

Id
bd03c3da7b326b618cc5b029422639659d2c33e4

Definition in file ttls.c.

Macro Definition Documentation

◆ FR_DIAMETER_AVP_FLAG_MANDATORY

#define FR_DIAMETER_AVP_FLAG_MANDATORY   0x40

Definition at line 34 of file ttls.c.

◆ FR_DIAMETER_AVP_FLAG_VENDOR

#define FR_DIAMETER_AVP_FLAG_VENDOR   0x80

Definition at line 33 of file ttls.c.

Function Documentation

◆ diameter_verify()

static int diameter_verify ( request_t request,
uint8_t const *  data,
unsigned int  data_len 
)
static

Definition at line 52 of file ttls.c.

+ Here is the caller graph for this function:

◆ eap_ttls_decode_pair()

static ssize_t eap_ttls_decode_pair ( request_t request,
TALLOC_CTX *  ctx,
fr_pair_list_t out,
fr_dict_attr_t const *  parent,
uint8_t const *  data,
size_t  data_len,
void *  decode_ctx 
)
static

Definition at line 144 of file ttls.c.

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

◆ eap_ttls_process()

unlang_action_t eap_ttls_process ( request_t request,
eap_session_t eap_session,
fr_tls_session_t *  tls_session 
)

Definition at line 634 of file ttls.c.

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

◆ eap_ttls_success()

unlang_action_t eap_ttls_success ( rlm_rcode_t p_result,
request_t request,
eap_session_t eap_session 
)

Definition at line 595 of file ttls.c.

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

◆ process_reply()

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

Definition at line 485 of file ttls.c.

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

◆ vp2diameter()

static int vp2diameter ( request_t request,
fr_tls_session_t *  tls_session,
fr_pair_list_t list 
)
static

Definition at line 335 of file ttls.c.

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