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

Go to the source code of this file.

Data Structures

struct  rlm_yubikey_t
 

Macros

#define YUBIKEY_TOKEN_LEN   32
 

Functions

unlang_action_t rlm_yubikey_decrypt (rlm_rcode_t *p_result, module_ctx_t const *mctx, request_t *request, char const *passcode)
 
unlang_action_t rlm_yubikey_validate (rlm_rcode_t *p_result, module_ctx_t const *mctx, request_t *request, char const *passcode)
 
int rlm_yubikey_ykclient_detach (rlm_yubikey_t *inst)
 
int rlm_yubikey_ykclient_init (CONF_SECTION *conf, rlm_yubikey_t *inst)
 

Variables

HIDDEN fr_dict_attr_t const * attr_auth_type
 
HIDDEN fr_dict_attr_t const * attr_user_password
 
HIDDEN fr_dict_attr_t const * attr_yubikey_counter
 
HIDDEN fr_dict_attr_t const * attr_yubikey_key
 
HIDDEN fr_dict_attr_t const * attr_yubikey_otp
 
HIDDEN fr_dict_attr_t const * attr_yubikey_private_id
 
HIDDEN fr_dict_attr_t const * attr_yubikey_public_id
 
HIDDEN fr_dict_attr_t const * attr_yubikey_random
 
HIDDEN fr_dict_attr_t const * attr_yubikey_timestamp
 

Data Structure Documentation

◆ rlm_yubikey_t

struct rlm_yubikey_t

Definition at line 40 of file rlm_yubikey.h.

+ Collaboration diagram for rlm_yubikey_t:
Data Fields
fr_dict_enum_value_t * auth_type Our Auth-Type.
bool decrypt Decrypt the OTP string using the yubikey library.
unsigned int id_len The length of the Public ID portion of the OTP string.
char const * name
bool split Split password string into components.
char const ** uris Yubicloud URLs to validate the token against.
bool validate Validate the OTP string using the ykclient library.

Macro Definition Documentation

◆ YUBIKEY_TOKEN_LEN

#define YUBIKEY_TOKEN_LEN   32

Definition at line 31 of file rlm_yubikey.h.

Function Documentation

◆ rlm_yubikey_decrypt()

unlang_action_t rlm_yubikey_decrypt ( rlm_rcode_t p_result,
module_ctx_t const *  mctx,
request_t request,
char const *  passcode 
)
+ Here is the caller graph for this function:

◆ rlm_yubikey_validate()

unlang_action_t rlm_yubikey_validate ( rlm_rcode_t p_result,
module_ctx_t const *  mctx,
request_t request,
char const *  passcode 
)
+ Here is the caller graph for this function:

◆ rlm_yubikey_ykclient_detach()

int rlm_yubikey_ykclient_detach ( rlm_yubikey_t inst)

◆ rlm_yubikey_ykclient_init()

int rlm_yubikey_ykclient_init ( CONF_SECTION conf,
rlm_yubikey_t inst 
)
+ Here is the caller graph for this function:

Variable Documentation

◆ attr_auth_type

HIDDEN fr_dict_attr_t const* attr_auth_type
extern

Definition at line 78 of file rlm_eap_peap.c.

◆ attr_user_password

HIDDEN fr_dict_attr_t const* attr_user_password
extern

Definition at line 106 of file rlm_eap_fast.c.

◆ attr_yubikey_counter

HIDDEN fr_dict_attr_t const* attr_yubikey_counter
extern

Definition at line 66 of file rlm_yubikey.c.

◆ attr_yubikey_key

HIDDEN fr_dict_attr_t const* attr_yubikey_key
extern

Definition at line 63 of file rlm_yubikey.c.

◆ attr_yubikey_otp

HIDDEN fr_dict_attr_t const* attr_yubikey_otp
extern

Definition at line 69 of file rlm_yubikey.c.

◆ attr_yubikey_private_id

HIDDEN fr_dict_attr_t const* attr_yubikey_private_id
extern

Definition at line 65 of file rlm_yubikey.c.

◆ attr_yubikey_public_id

HIDDEN fr_dict_attr_t const* attr_yubikey_public_id
extern

Definition at line 64 of file rlm_yubikey.c.

◆ attr_yubikey_random

HIDDEN fr_dict_attr_t const* attr_yubikey_random
extern

Definition at line 68 of file rlm_yubikey.c.

◆ attr_yubikey_timestamp

HIDDEN fr_dict_attr_t const* attr_yubikey_timestamp
extern

Definition at line 67 of file rlm_yubikey.c.