gwenhywfar
4.6.0beta
|
#include <gwenhywfar/gwenhywfarapi.h>
Go to the source code of this file.
Typedefs | |
typedef struct GWEN_PASSWD_STORE | GWEN_PASSWD_STORE |
Functions | |
GWENHYWFAR_API void | GWEN_PasswordStore_ClearStoragePasswd (GWEN_PASSWD_STORE *sto) |
GWENHYWFAR_API void | GWEN_PasswordStore_free (GWEN_PASSWD_STORE *sto) |
GWENHYWFAR_API int | GWEN_PasswordStore_GetPassword (GWEN_PASSWD_STORE *sto, const char *token, char *buffer, int minLen, int maxLen) |
GWENHYWFAR_API GWEN_PASSWD_STORE * | GWEN_PasswordStore_new (const char *fname) |
GWENHYWFAR_API int | GWEN_PasswordStore_SetPassword (GWEN_PASSWD_STORE *sto, const char *token, const char *secret) |
typedef struct GWEN_PASSWD_STORE GWEN_PASSWD_STORE |
Definition at line 36 of file passwdstore.h.
GWENHYWFAR_API void GWEN_PasswordStore_ClearStoragePasswd | ( | GWEN_PASSWD_STORE * | sto | ) |
Definition at line 74 of file passwdstore.c.
References GWEN_DB_Group_free(), GWEN_DB_ModifyBranchFlagsDown(), GWEN_DB_NODE_FLAGS_SAFE, and NULL.
Referenced by GWEN_Gui_Internal_SetPasswordStatus().
GWENHYWFAR_API void GWEN_PasswordStore_free | ( | GWEN_PASSWD_STORE * | sto | ) |
Definition at line 59 of file passwdstore.c.
References GWEN_DB_Group_free(), GWEN_DB_ModifyBranchFlagsDown(), GWEN_DB_NODE_FLAGS_SAFE, GWEN_FREE_OBJECT, and NULL.
Referenced by GWEN_Gui_free(), and GWEN_Gui_SetPasswdStore().
GWENHYWFAR_API int GWEN_PasswordStore_GetPassword | ( | GWEN_PASSWD_STORE * | sto, |
const char * | token, | ||
char * | buffer, | ||
int | minLen, | ||
int | maxLen | ||
) |
Definition at line 678 of file passwdstore.c.
References DBG_INFO, GWEN_Directory_GetPath(), GWEN_ERROR_IO, GWEN_FSLock_free(), GWEN_FSLock_Lock(), GWEN_FSLock_new(), GWEN_FSLock_ResultOk, GWEN_FSLock_TypeFile, GWEN_FSLock_Unlock(), GWEN_LOGDOMAIN, GWEN_PasswordStore__GetPassword(), GWEN_PasswordStore_ReadFile(), GWEN_PasswordStore_SafeFreeDb(), and GWEN_PATH_FLAGS_VARIABLE.
Referenced by GWEN_Gui_Internal_GetPassword().
GWENHYWFAR_API GWEN_PASSWD_STORE* GWEN_PasswordStore_new | ( | const char * | fname | ) |
Definition at line 46 of file passwdstore.c.
References GWEN_NEW_OBJECT, and NULL.
Referenced by test10().
GWENHYWFAR_API int GWEN_PasswordStore_SetPassword | ( | GWEN_PASSWD_STORE * | sto, |
const char * | token, | ||
const char * | secret | ||
) |
Definition at line 608 of file passwdstore.c.
References DBG_INFO, GWEN_DB_Group_new(), GWEN_DB_ModifyBranchFlagsDown(), GWEN_DB_NODE_FLAGS_SAFE, GWEN_Directory_GetPath(), GWEN_ERROR_IO, GWEN_ERROR_NO_DATA, GWEN_ERROR_NOT_FOUND, GWEN_FSLock_free(), GWEN_FSLock_Lock(), GWEN_FSLock_new(), GWEN_FSLock_ResultOk, GWEN_FSLock_TypeFile, GWEN_FSLock_Unlock(), GWEN_LOGDOMAIN, GWEN_PasswordStore__SetPassword(), GWEN_PasswordStore_ReadFile(), GWEN_PasswordStore_SafeFreeDb(), GWEN_PasswordStore_WriteFile(), GWEN_PATH_FLAGS_VARIABLE, and NULL.
Referenced by GWEN_Gui_Internal_GetPassword(), and GWEN_Gui_Internal_SetPasswordStatus().