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_data * | GetPassword (RequestData *requestData) |
void | TextHHA1 (RequestData *requestData) |
Variables | |
static hash_table * | hash = nullptr |
static HASHFREE | my_free |
static char * | passwdfile = nullptr |
static int | ha1mode = 0 |
static time_t | change_time = 0 |
Typedef Documentation
◆ user_data
typedef struct _user_data user_data |
Function Documentation
◆ GetPassword()
|
static |
Definition at line 160 of file text_backend.cc.
References change_time, ha1mode, hash, hash_lookup(), passwdfile, read_passwd_file(), _request_data::realm, sb, and _request_data::user.
Referenced by TextHHA1().
◆ my_free()
|
static |
Definition at line 54 of file text_backend.cc.
References _user_data::hash, hash_link::key, _user_data::passwd, and xfree.
◆ read_passwd_file()
|
static |
Definition at line 63 of file text_backend.cc.
References _user_data::ha1, hash, _user_data::hash, hash_create(), hash_join(), hash_string, hashFreeItems(), hash_link::key, my_free, _user_data::passwd, xcalloc(), xmalloc, xstrdup, and xstrerr().
Referenced by GetPassword().
◆ TextArguments()
void TextArguments | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 139 of file text_backend.cc.
References ha1mode, passwdfile, and sb.
Referenced by ProcessArguments().
◆ TextHHA1()
void TextHHA1 | ( | RequestData * | requestData | ) |
Definition at line 185 of file text_backend.cc.
References DigestCalcHA1(), _request_data::error, GetPassword(), _user_data::ha1, _request_data::HHA1, _user_data::passwd, _request_data::realm, _request_data::user, and xstrncpy().
Referenced by GetHHA1().
Variable Documentation
◆ change_time
|
static |
Definition at line 45 of file text_backend.cc.
Referenced by GetPassword(), and main().
◆ ha1mode
|
static |
Definition at line 44 of file text_backend.cc.
Referenced by GetPassword(), and TextArguments().
◆ hash
|
static |
Definition at line 41 of file text_backend.cc.
Referenced by Ident::IdentStateData::~IdentStateData(), ipcache_entry::~ipcache_entry(), cacheDestroy(), cacheResetDigest(), client_entry(), clientdbDump(), do_subtree(), FileNameHash(), generateFakeSslCertificate(), get_token(), GetPassword(), init_node_hash(), Ipc::StoreMap::nameByKey(), and read_passwd_file().
◆ my_free
|
static |
Definition at line 42 of file text_backend.cc.
Referenced by read_passwd_file().
◆ passwdfile
|
static |
Definition at line 43 of file text_backend.cc.
Referenced by GetPassword(), read_passwd_file(), and TextArguments().