gwenhywfar 5.14.1
globals.h File Reference
#include <gwenhywfar/gwenhywfar.h>
#include <gwenhywfar/args.h>
#include <gwenhywfar/logger.h>
#include <gwenhywfar/db.h>
#include <gwenhywfar/misc.h>
#include <gwenhywfar/misc2.h>
#include <gwenhywfar/inherit.h>
#include <gwenhywfar/ct.h>
#include <gwenhywfar/ctplugin.h>
#include <string.h>
#include <errno.h>
#include "src/base/i18n_l.h"
Include dependency graph for gcttool/globals.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define GCT_LOGDOMAIN   "gcttool"

Functions

int activateKey (GWEN_DB_NODE *dbArgs, int argc, char **argv)
int changePin (GWEN_DB_NODE *dbArgs, int argc, char **argv)
int checkTree (GWEN_DB_NODE *dbArgs, int argc, char **argv)
int createToken (GWEN_DB_NODE *dbArgs, int argc, char **argv)
int genKey (GWEN_DB_NODE *dbArgs, int argc, char **argv)
GWEN_CRYPT_TOKENgetCryptToken (const char *ttype, const char *tname)
int hashTree (GWEN_DB_NODE *dbArgs, int argc, char **argv)
int setKey (GWEN_DB_NODE *dbArgs, int argc, char **argv)
int setSignSeq (GWEN_DB_NODE *dbArgs, int argc, char **argv)
int showKey (GWEN_DB_NODE *dbArgs, int argc, char **argv)
int showPasswords (GWEN_DB_NODE *dbArgs, int argc, char **argv)
int showUser (GWEN_DB_NODE *dbArgs, int argc, char **argv)
int updateToken (GWEN_DB_NODE *dbArgs, int argc, char **argv)

Macro Definition Documentation

◆ GCT_LOGDOMAIN

#define GCT_LOGDOMAIN   "gcttool"

Definition at line 27 of file gcttool/globals.h.

Function Documentation

◆ activateKey()

◆ changePin()

◆ checkTree()

◆ createToken()

◆ genKey()

◆ getCryptToken()

GWEN_CRYPT_TOKEN * getCryptToken ( const char * ttype,
const char * tname )

Definition at line 71 of file gcttool/main.c.

References DBG_ERROR, DBG_INFO, GWEN_Crypt_Token_Plugin_CreateToken(), GWEN_PluginManager_FindPluginManager(), GWEN_PluginManager_GetPlugin(), I18N, and NULL.

Referenced by activateKey(), changePin(), genKey(), setKey(), setSignSeq(), showKey(), showUser(), and updateToken().

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

◆ hashTree()

◆ setKey()

◆ setSignSeq()

◆ showKey()

int showKey ( GWEN_DB_NODE * dbArgs,
int argc,
char ** argv )

Definition at line 29 of file showkey.c.

References DBG_ERROR, getCryptToken(), GWEN_Args_Check(), GWEN_ARGS_FLAGS_HAS_ARGUMENT, GWEN_ARGS_FLAGS_HELP, GWEN_ARGS_FLAGS_LAST, GWEN_ARGS_MODE_ALLOW_FREEPARAM, GWEN_ARGS_RESULT_ERROR, GWEN_ARGS_RESULT_HELP, GWEN_Args_Usage(), GWEN_ArgsOutType_Txt, GWEN_ArgsType_Char, GWEN_ArgsType_Int, GWEN_Buffer_free(), GWEN_Buffer_GetStart(), GWEN_Buffer_new(), GWEN_Buffer_Reset(), GWEN_Crypt_CryptAlgoId_toString(), GWEN_Crypt_Token_AddModes(), GWEN_Crypt_Token_Close(), GWEN_Crypt_Token_GetKeyIdList(), GWEN_Crypt_Token_GetKeyInfo(), GWEN_CRYPT_TOKEN_KEYFLAGS_CANDECIPHER, GWEN_CRYPT_TOKEN_KEYFLAGS_CANENCIPHER, GWEN_CRYPT_TOKEN_KEYFLAGS_CANSIGN, GWEN_CRYPT_TOKEN_KEYFLAGS_CANVERIFY, GWEN_CRYPT_TOKEN_KEYFLAGS_HASACTIONFLAGS, GWEN_CRYPT_TOKEN_KEYFLAGS_HASEXPONENT, GWEN_CRYPT_TOKEN_KEYFLAGS_HASKEYNUMBER, GWEN_CRYPT_TOKEN_KEYFLAGS_HASKEYVERSION, GWEN_CRYPT_TOKEN_KEYFLAGS_HASMODULUS, GWEN_CRYPT_TOKEN_KEYFLAGS_HASSIGNCOUNTER, GWEN_CRYPT_TOKEN_KEYFLAGS_HASSTATUS, GWEN_Crypt_Token_KeyInfo_GetCryptAlgoId(), GWEN_Crypt_Token_KeyInfo_GetExponentData(), GWEN_Crypt_Token_KeyInfo_GetExponentLen(), GWEN_Crypt_Token_KeyInfo_GetFlags(), GWEN_Crypt_Token_KeyInfo_GetId(), GWEN_Crypt_Token_KeyInfo_GetKeyDescr(), GWEN_Crypt_Token_KeyInfo_GetKeyNumber(), GWEN_Crypt_Token_KeyInfo_GetKeySize(), GWEN_Crypt_Token_KeyInfo_GetKeyVersion(), GWEN_Crypt_Token_KeyInfo_GetModulusData(), GWEN_Crypt_Token_KeyInfo_GetModulusLen(), GWEN_Crypt_Token_KeyInfo_GetSignCounter(), GWEN_CRYPT_TOKEN_MODE_FORCE_PIN_ENTRY, GWEN_Crypt_Token_Open(), GWEN_DB_FLAGS_DEFAULT, GWEN_DB_GetCharValue(), GWEN_DB_GetGroup(), GWEN_DB_GetIntValue(), and GWEN_Text_ToHexBuffer().

Referenced by main().

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

◆ showPasswords()

◆ showUser()

◆ updateToken()