text_backend.cc File Reference
Include dependency graph for text_backend.cc:

Go to the source code of this file.

Classes

struct  _user_data
 

Typedefs

typedef struct _user_data user_data
 

Functions

static void my_free (void *p)
 
static void read_passwd_file (const char *passwordFile, int isHa1Mode)
 
void TextArguments (int argc, char **argv)
 
static const user_dataGetPassword (RequestData *requestData)
 
void TextHHA1 (RequestData *requestData)
 

Variables

static hash_tablehash = NULL
 
static HASHFREE my_free
 
static char * passwdfile = NULL
 
static int ha1mode = 0
 
static time_t change_time = 0
 

Typedef Documentation

◆ user_data

typedef struct _user_data user_data

Function Documentation

◆ GetPassword()

static const user_data* GetPassword ( RequestData requestData)
static

◆ my_free()

static void my_free ( void *  p)
static

Definition at line 54 of file text_backend.cc.

References _user_data::hash, hash_link::key, p, _user_data::passwd, and xfree.

◆ read_passwd_file()

static void read_passwd_file ( const char *  passwordFile,
int  isHa1Mode 
)
static

◆ TextArguments()

void TextArguments ( int  argc,
char **  argv 
)

Definition at line 139 of file text_backend.cc.

References ha1mode, and passwdfile.

Referenced by ProcessArguments().

◆ TextHHA1()

Variable Documentation

◆ change_time

time_t change_time = 0
static

Definition at line 45 of file text_backend.cc.

Referenced by GetPassword(), and main().

◆ ha1mode

int ha1mode = 0
static

Definition at line 44 of file text_backend.cc.

Referenced by GetPassword(), and TextArguments().

◆ hash

◆ my_free

HASHFREE my_free
static

Definition at line 42 of file text_backend.cc.

Referenced by read_passwd_file().

◆ passwdfile

char* passwdfile = NULL
static

Definition at line 43 of file text_backend.cc.

Referenced by GetPassword(), and TextArguments().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors