gwenhywfar  5.14.1
Functions
gui_passwd.c File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static int _tryReadCachedPasswd (GWEN_GUI *gui, const char *pwName, char *buffer, int minLen, int maxLen)
 
static int _tryReadPasswdViaInputBox (GWEN_GUI *gui, uint32_t flags, const char *token, const char *title, const char *text, char *buffer, int minLen, int maxLen, uint32_t guiid)
 
static int _tryReadStoredPasswd (GWEN_GUI *gui, const char *pwName, uint32_t flags, const char *token, char *buffer, int minLen, int maxLen)
 
static void _tryStorePasswdInCacheAndStorage (GWEN_GUI *gui, const char *pwName, const char *token, const char *pwBuffer, int userWantsToStorePasswd)
 
static int GWEN_Gui__HashPair (const char *token, const char *pin, GWEN_BUFFER *buf)
 
int GWEN_Gui_GetPassword (uint32_t flags, const char *token, const char *title, const char *text, char *buffer, int minLen, int maxLen, GWEN_GUI_PASSWORD_METHOD methodId, GWEN_DB_NODE *methodParams, uint32_t guiid)
 
static int GWENHYWFAR_CB GWEN_Gui_Internal_GetPassword (GWEN_GUI *gui, uint32_t flags, const char *token, const char *title, const char *text, char *pwBuffer, int minLen, int maxLen, GWEN_UNUSED GWEN_GUI_PASSWORD_METHOD methodId, GWEN_UNUSED GWEN_DB_NODE *methodParams, uint32_t guiid)
 
static int GWENHYWFAR_CB GWEN_Gui_Internal_SetPasswordStatus (GWEN_GUI *gui, const char *token, const char *pin, GWEN_GUI_PASSWORD_STATUS status, GWEN_UNUSED uint32_t guiid)
 
int GWEN_Gui_SetPasswordStatus (const char *token, const char *pin, GWEN_GUI_PASSWORD_STATUS status, uint32_t guiid)
 

Function Documentation

◆ _tryReadCachedPasswd()

int _tryReadCachedPasswd ( GWEN_GUI gui,
const char *  pwName,
char *  buffer,
int  minLen,
int  maxLen 
)
static

Definition at line 180 of file gui_passwd.c.

References DBG_ERROR, GWEN_DB_GetCharValue(), GWEN_LOGDOMAIN, and NULL.

Referenced by _tryReadStoredPasswd().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _tryReadPasswdViaInputBox()

int _tryReadPasswdViaInputBox ( GWEN_GUI gui,
uint32_t  flags,
const char *  token,
const char *  title,
const char *  text,
char *  buffer,
int  minLen,
int  maxLen,
uint32_t  guiid 
)
static

◆ _tryReadStoredPasswd()

int _tryReadStoredPasswd ( GWEN_GUI gui,
const char *  pwName,
uint32_t  flags,
const char *  token,
char *  buffer,
int  minLen,
int  maxLen 
)
static

Definition at line 141 of file gui_passwd.c.

References _tryReadCachedPasswd(), DBG_INFO, GWEN_ERROR_NO_DATA, GWEN_ERROR_NOT_FOUND, GWEN_GUI_INPUT_FLAGS_CONFIRM, GWEN_LOGDOMAIN, and GWEN_PasswordStore_GetPassword().

Referenced by GWEN_Gui_Internal_GetPassword().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _tryStorePasswdInCacheAndStorage()

void _tryStorePasswdInCacheAndStorage ( GWEN_GUI gui,
const char *  pwName,
const char *  token,
const char *  pwBuffer,
int  userWantsToStorePasswd 
)
static

Definition at line 269 of file gui_passwd.c.

References DBG_INFO, DBG_WARN, GWEN_DB_FLAGS_OVERWRITE_VARS, GWEN_DB_SetCharValue(), GWEN_LOGDOMAIN, and GWEN_PasswordStore_SetPassword().

Referenced by GWEN_Gui_Internal_GetPassword().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GWEN_Gui__HashPair()

static int GWEN_Gui__HashPair ( const char *  token,
const char *  pin,
GWEN_BUFFER buf 
)
static

◆ GWEN_Gui_Internal_GetPassword()

static int GWENHYWFAR_CB GWEN_Gui_Internal_GetPassword ( GWEN_GUI gui,
uint32_t  flags,
const char *  token,
const char *  title,
const char *  text,
char *  pwBuffer,
int  minLen,
int  maxLen,
GWEN_UNUSED GWEN_GUI_PASSWORD_METHOD  methodId,
GWEN_UNUSED GWEN_DB_NODE methodParams,
uint32_t  guiid 
)
static

◆ GWEN_Gui_Internal_SetPasswordStatus()

static int GWENHYWFAR_CB GWEN_Gui_Internal_SetPasswordStatus ( GWEN_GUI gui,
const char *  token,
const char *  pin,
GWEN_GUI_PASSWORD_STATUS  status,
GWEN_UNUSED uint32_t  guiid 
)
static