All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
otp_pw_valid.c File Reference
#include <freeradius-devel/radiusd.h>
#include <freeradius-devel/modules.h>
#include "extern.h"
#include "otp.h"
#include "otp_pw_valid.h"
#include <sys/un.h>
+ Include dependency graph for otp_pw_valid.c:

Go to the source code of this file.

Functions

static int otp_connect (char const *path)
 
static otp_fd_totp_getfd (rlm_otp_t const *opt)
 
static void otp_putfd (otp_fd_t *fdp, int disconnect)
 
int otp_pw_valid (REQUEST *request, int pwe, char const *challenge, rlm_otp_t const *opt, char passcode[OTP_MAX_PASSCODE_LEN+1])
 
static int otp_read (otp_fd_t *fdp, char *buf, size_t len)
 
static int otp_verify (rlm_otp_t const *opt, otp_request_t const *request, otp_reply_t *reply)
 
static int otp_write (otp_fd_t *fdp, char const *buf, size_t len)
 
static int otprc2rlmrc (int rc)
 

Variables

static otp_fd_totp_fd_head
 
static pthread_mutex_t otp_fd_head_mutex = PTHREAD_MUTEX_INITIALIZER
 

Function Documentation

static int otp_connect ( char const *  path)
static

Definition at line 360 of file otp_pw_valid.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static otp_fd_t* otp_getfd ( rlm_otp_t const *  opt)
static

Definition at line 407 of file otp_pw_valid.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void otp_putfd ( otp_fd_t fdp,
int  disconnect 
)
static

Definition at line 448 of file otp_pw_valid.c.

+ Here is the caller graph for this function:

int otp_pw_valid ( REQUEST request,
int  pwe,
char const *  challenge,
rlm_otp_t const *  opt,
char  passcode[OTP_MAX_PASSCODE_LEN+1] 
)

Definition at line 71 of file otp_pw_valid.c.

+ Here is the call graph for this function:

static int otp_read ( otp_fd_t fdp,
char *  buf,
size_t  len 
)
static

Definition at line 297 of file otp_pw_valid.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int otp_verify ( rlm_otp_t const *  opt,
otp_request_t const *  request,
otp_reply_t reply 
)
static

Definition at line 236 of file otp_pw_valid.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int otp_write ( otp_fd_t fdp,
char const *  buf,
size_t  len 
)
static

Definition at line 333 of file otp_pw_valid.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int otprc2rlmrc ( int  rc)
static

Definition at line 40 of file otp_pw_valid.c.

+ Here is the caller graph for this function:

Variable Documentation

otp_fd_t* otp_fd_head
static

Definition at line 55 of file otp_pw_valid.c.

pthread_mutex_t otp_fd_head_mutex = PTHREAD_MUTEX_INITIALIZER
static

Definition at line 56 of file otp_pw_valid.c.