All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations | Functions
rlm_securid.h File Reference
#include <freeradius-devel/radiusd.h>
#include <freeradius-devel/modules.h>
#include <freeradius-devel/rad_assert.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  _securid_session_t
 
struct  rlm_securid_t
 

Macros

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

Typedefs

typedef struct rlm_securid_t rlm_securid_t
 
typedef struct _securid_session_t SECURID_SESSION
 

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 *request, SECURID_SESSION *session) CC_HINT(nonnull)
 
int securid_sessionlist_add (rlm_securid_t *inst, REQUEST *request, SECURID_SESSION *session) CC_HINT(nonnull)
 
SECURID_SESSIONsecurid_sessionlist_find (rlm_securid_t *inst, REQUEST *request) CC_HINT(nonnull)
 
void securid_sessionlist_free (rlm_securid_t *inst, REQUEST *request) CC_HINT(nonnull)
 

Data Structure Documentation

struct _securid_session_t

Definition at line 39 of file rlm_securid.h.

+ Collaboration diagram for _securid_session_t:
Data Fields
char * identity
struct _securid_session_t * next
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
struct rlm_securid_t

Definition at line 66 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
rbtree_t * session_tree
uint32_t timer_limit

Macro Definition Documentation

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

Definition at line 10 of file rlm_securid.h.

#define SECURID_STATE_LEN   32

Definition at line 38 of file rlm_securid.h.

Typedef Documentation

typedef struct rlm_securid_t rlm_securid_t

Enumeration Type Documentation

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 12 of file rlm_securid.h.

Function Documentation

SECURID_SESSION* securid_session_alloc ( void  )

Definition at line 30 of file mem.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void securid_session_free ( rlm_securid_t inst,
REQUEST request,
SECURID_SESSION session 
)
int securid_sessionlist_add ( rlm_securid_t inst,
REQUEST request,
SECURID_SESSION session 
)

Definition at line 93 of file mem.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

SECURID_SESSION* securid_sessionlist_find ( rlm_securid_t inst,
REQUEST request 
)

Definition at line 181 of file mem.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void securid_sessionlist_free ( rlm_securid_t inst,
REQUEST request 
)

Definition at line 69 of file mem.c.

+ Here is the call graph for this function: