All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
rlm_otp.c File Reference

One time password implementation. More...

#include <freeradius-devel/radiusd.h>
#include <freeradius-devel/modules.h>
#include "extern.h"
#include "otp.h"
+ Include dependency graph for rlm_otp.c:

Go to the source code of this file.


static rlm_rcode_t CC_HINT (nonnull)
static int mod_instantiate (CONF_SECTION *conf, void *instance)


static const CONF_PARSER module_config []
static int ninstance = 0
 Number of instances, for global init. More...
module_t rlm_otp

Detailed Description

One time password implementation.


Definition in file rlm_otp.c.

Function Documentation

static rlm_rcode_t CC_HINT ( nonnull  )

< Low-order 32 bits on LP64.

< State as hexits

< State timestamp.

< Expected State length.

Definition at line 125 of file rlm_otp.c.

+ Here is the call graph for this function:

static int mod_instantiate ( CONF_SECTION conf,
void *  instance 

Definition at line 58 of file rlm_otp.c.

+ Here is the call graph for this function:

Variable Documentation

const CONF_PARSER module_config[]
Initial value:
= {
{ FR_CONF_OFFSET("otpd_rp", PW_TYPE_STRING, rlm_otp_t, otpd_rp), .dflt = OTP_OTPD_RP },
{ FR_CONF_OFFSET("challenge_prompt", PW_TYPE_STRING, rlm_otp_t, chal_prompt), .dflt = OTP_CHALLENGE_PROMPT },
{ FR_CONF_OFFSET("challenge_length", PW_TYPE_INTEGER, rlm_otp_t, challenge_len), .dflt = "6" },
{ FR_CONF_OFFSET("challenge_delay", PW_TYPE_INTEGER, rlm_otp_t, challenge_delay), .dflt = "30" },
{ FR_CONF_OFFSET("allow_sync", PW_TYPE_BOOLEAN, rlm_otp_t, allow_sync), .dflt = "yes" },
{ FR_CONF_OFFSET("allow_async", PW_TYPE_BOOLEAN, rlm_otp_t, allow_async), .dflt = "no" },
{ FR_CONF_OFFSET("mschapv2_mppe", PW_TYPE_INTEGER, rlm_otp_t, mschapv2_mppe_policy), .dflt = "2" },
{ FR_CONF_OFFSET("mschapv2_mppe_bits", PW_TYPE_INTEGER, rlm_otp_t, mschapv2_mppe_types), .dflt = "2" },
{ FR_CONF_OFFSET("mschap_mppe", PW_TYPE_INTEGER, rlm_otp_t, mschap_mppe_policy), .dflt = "2" },
{ FR_CONF_OFFSET("mschap_mppe_bits", PW_TYPE_INTEGER, rlm_otp_t, mschap_mppe_types), .dflt = "2" },
Definition: conffile.h:289
A truth value.
Definition: radius.h:56
32 Bit unsigned integer.
Definition: radius.h:34
#define FR_CONF_OFFSET(_n, _t, _s, _f)
Definition: conffile.h:168
Definition: extern.h:39
String of printable characters.
Definition: radius.h:33
#define OTP_OTPD_RP
Definition: extern.h:36

Definition at line 39 of file rlm_otp.c.

int ninstance = 0

Number of instances, for global init.

Definition at line 36 of file rlm_otp.c.

module_t rlm_otp
Initial value:
= {
.name = "otp",
.inst_size = sizeof(rlm_otp_t),
.config = module_config,
.instantiate = mod_instantiate,
.methods = {
struct rlm_otp_t rlm_otp_t
static rlm_rcode_t mod_authorize(void *instance, REQUEST *request)
Handle authorization requests using Couchbase document data.
Module is threadsafe.
Definition: modules.h:75
Definition: modules.h:86
static int mod_instantiate(CONF_SECTION *conf, void *instance)
Definition: rlm_otp.c:58
static rlm_rcode_t mod_authenticate(void *instance, REQUEST *request) CC_HINT(nonnull)
0 methods index for authenticate section.
Definition: modules.h:41
static const CONF_PARSER module_config[]
Definition: rlm_otp.c:39
1 methods index for authorize section.
Definition: modules.h:42

Definition at line 415 of file rlm_otp.c.