The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Data Structures | Macros | Enumerations | Functions | Variables
rlm_securid.h File Reference
#include <freeradius-devel/server/base.h>
#include <freeradius-devel/server/module_rlm.h>
#include <freeradius-devel/util/debug.h>
#include "acexport.h"
+ Include dependency graph for rlm_securid.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  rlm_securid_t
 
struct  SECURID_SESSION
 

Macros

#define SAFE_STR(s)   s==NULL?"EMPTY":s
 
#define SECURID_STATE_LEN   32
 

Enumerations

enum  SECURID_SESSION_STATE {
  INITIAL_STATE = 0 ,
  NEXT_CODE_REQUIRED_STATE = 100 ,
  NEW_PIN_REQUIRED_STATE = 200 ,
  NEW_PIN_USER_CONFIRM_STATE = 201 ,
  NEW_PIN_AUTH_VALIDATE_STATE = 202 ,
  NEW_PIN_SYSTEM_ACCEPT_STATE = 203 ,
  NEW_PIN_SYSTEM_CONFIRM_STATE = 204 ,
  NEW_PIN_USER_SELECT_STATE = 205
}
 

Functions

SECURID_SESSIONsecurid_session_alloc (void)
 
void securid_session_free (rlm_securid_t *inst, request_t *request, SECURID_SESSION *session)
 
int securid_sessionlist_add (rlm_securid_t *inst, request_t *request, SECURID_SESSION *session)
 
SECURID_SESSIONsecurid_sessionlist_find (rlm_securid_t *inst, request_t *request)
 
void securid_sessionlist_free (rlm_securid_t *inst, request_t *request)
 

Variables

HIDDEN fr_dict_attr_t const * attr_prompt
 
HIDDEN fr_dict_attr_t const * attr_reply_message
 
HIDDEN fr_dict_attr_t const * attr_state
 
HIDDEN fr_dict_attr_t const * attr_user_password
 

Data Structure Documentation

◆ rlm_securid_t

struct rlm_securid_t

Definition at line 65 of file rlm_securid.h.

+ Collaboration diagram for rlm_securid_t:
Data Fields
unsigned int last_session_id
uint32_t max_sessions
uint32_t max_trips_per_session
SECURID_SESSION * session_head
pthread_mutex_t session_mutex
SECURID_SESSION * session_tail
fr_rb_tree_t * session_tree
uint32_t timer_limit

◆ SECURID_SESSION

struct SECURID_SESSION

Definition at line 37 of file rlm_securid.h.

+ Collaboration diagram for SECURID_SESSION:
Data Fields
char * identity
struct _securid_session_t * next
fr_rb_node_t node
char * pin
struct _securid_session_t * prev
SDI_HANDLE sdiHandle
SECURID_SESSION_STATE securidSessionState
unsigned int session_id
fr_ipaddr_t src_ipaddr
char state[SECURID_STATE_LEN]
time_t timestamp
uint32_t trips

Macro Definition Documentation

◆ SAFE_STR

#define SAFE_STR (   s)    s==NULL?"EMPTY":s

Definition at line 8 of file rlm_securid.h.

◆ SECURID_STATE_LEN

#define SECURID_STATE_LEN   32

Definition at line 36 of file rlm_securid.h.

Enumeration Type Documentation

◆ SECURID_SESSION_STATE

Enumerator
INITIAL_STATE 
NEXT_CODE_REQUIRED_STATE 
NEW_PIN_REQUIRED_STATE 
NEW_PIN_USER_CONFIRM_STATE 
NEW_PIN_AUTH_VALIDATE_STATE 
NEW_PIN_SYSTEM_ACCEPT_STATE 
NEW_PIN_SYSTEM_CONFIRM_STATE 
NEW_PIN_USER_SELECT_STATE 

Definition at line 10 of file rlm_securid.h.

Function Documentation

◆ securid_session_alloc()

SECURID_SESSION* securid_session_alloc ( void  )

Definition at line 32 of file mem.c.

◆ securid_session_free()

void securid_session_free ( rlm_securid_t inst,
request_t request,
SECURID_SESSION session 
)

◆ securid_sessionlist_add()

int securid_sessionlist_add ( rlm_securid_t inst,
request_t request,
SECURID_SESSION session 
)

Definition at line 83 of file mem.c.

+ Here is the call graph for this function:

◆ securid_sessionlist_find()

SECURID_SESSION* securid_sessionlist_find ( rlm_securid_t inst,
request_t request 
)

Definition at line 172 of file mem.c.

+ Here is the call graph for this function:

◆ securid_sessionlist_free()

void securid_sessionlist_free ( rlm_securid_t inst,
request_t request 
)

Definition at line 59 of file mem.c.

+ Here is the call graph for this function:

Variable Documentation

◆ attr_prompt

HIDDEN fr_dict_attr_t const* attr_prompt
extern

◆ attr_reply_message

HIDDEN fr_dict_attr_t const* attr_reply_message
extern

Definition at line 93 of file rlm_eap_ttls.c.

◆ attr_state

HIDDEN fr_dict_attr_t const* attr_state
extern

Definition at line 101 of file base.c.

◆ attr_user_password

HIDDEN fr_dict_attr_t const* attr_user_password
extern

Definition at line 107 of file rlm_eap_fast.c.