gwenhywfar
4.6.0beta
|
#include <gwenhywfar/gwenhywfarapi.h>
#include <gwenhywfar/plugin.h>
#include <gwenhywfar/ct.h>
Go to the source code of this file.
Macros | |
#define | GWEN_CRYPT_TOKEN_FOLDER "ct" |
#define | GWEN_CRYPT_TOKEN_PLUGIN_TYPENAME "ct" |
Functions | |
GWENHYWFAR_API int | GWEN_Crypt_Token_Plugin_CheckToken (GWEN_PLUGIN *pl, GWEN_BUFFER *name) |
GWENHYWFAR_API GWEN_CRYPT_TOKEN * | GWEN_Crypt_Token_Plugin_CreateToken (GWEN_PLUGIN *pl, const char *name) |
GWENHYWFAR_API GWEN_CRYPT_TOKEN_DEVICE | GWEN_Crypt_Token_Plugin_GetDeviceType (const GWEN_PLUGIN *pl) |
CryptManager | |
GWENHYWFAR_API int | GWEN_Crypt_Token_PluginManager_CheckToken (GWEN_PLUGIN_MANAGER *cm, GWEN_CRYPT_TOKEN_DEVICE devt, GWEN_BUFFER *typeName, GWEN_BUFFER *tokenName, uint32_t guiid) |
GWENHYWFAR_API GWEN_PLUGIN_DESCRIPTION_LIST2 * | GWEN_Crypt_Token_PluginManager_GetPluginDescrs (GWEN_PLUGIN_MANAGER *pm, GWEN_CRYPT_TOKEN_DEVICE devt) |
#define GWEN_CRYPT_TOKEN_FOLDER "ct" |
Definition at line 25 of file ctplugin.h.
Referenced by GWEN_Crypt_Token_ModuleInit().
#define GWEN_CRYPT_TOKEN_PLUGIN_TYPENAME "ct" |
Definition at line 24 of file ctplugin.h.
Referenced by GWEN_Crypt_Token_ModuleFini(), and GWEN_Crypt_Token_ModuleInit().
GWENHYWFAR_API int GWEN_Crypt_Token_Plugin_CheckToken | ( | GWEN_PLUGIN * | pl, |
GWEN_BUFFER * | name | ||
) |
This function is used to let a crypt token plugin check whether it supports a given plugin.
Initially the given buffers may contain some values to narrow the search. For chip cards the name argument may contain the serial number of the card (if known). For file based crypt tokens this argument must contain the path to the file to check.
This function should return one of the following error codes:
Definition at line 155 of file ctplugin.c.
References DBG_INFO, GWEN_ERROR_NOT_IMPLEMENTED, GWEN_INHERIT_GETDATA, and GWEN_LOGDOMAIN.
Referenced by GWEN_Crypt_Token_PluginManager_CheckToken().
GWENHYWFAR_API GWEN_CRYPT_TOKEN* GWEN_Crypt_Token_Plugin_CreateToken | ( | GWEN_PLUGIN * | pl, |
const char * | name | ||
) |
Definition at line 138 of file ctplugin.c.
References DBG_WARN, GWEN_INHERIT_GETDATA, GWEN_LOGDOMAIN, and NULL.
GWENHYWFAR_API GWEN_CRYPT_TOKEN_DEVICE GWEN_Crypt_Token_Plugin_GetDeviceType | ( | const GWEN_PLUGIN * | pl | ) |
Definition at line 172 of file ctplugin.c.
References GWEN_INHERIT_GETDATA.
GWENHYWFAR_API int GWEN_Crypt_Token_PluginManager_CheckToken | ( | GWEN_PLUGIN_MANAGER * | cm, |
GWEN_CRYPT_TOKEN_DEVICE | devt, | ||
GWEN_BUFFER * | typeName, | ||
GWEN_BUFFER * | tokenName, | ||
uint32_t | guiid | ||
) |
This function tries to find a token plugin which is able to handle the token given by the device type and name.
Definition at line 289 of file ctplugin.c.
References DBG_ERROR, DBG_INFO, GWEN_Buffer_AppendBuffer(), GWEN_Buffer_AppendString(), GWEN_Buffer_dup(), GWEN_Buffer_free(), GWEN_Buffer_GetStart(), GWEN_Buffer_Reset(), GWEN_Crypt_Token_Plugin_CheckToken(), GWEN_Crypt_Token_PluginManager_GetPluginDescrs(), GWEN_ERROR_BAD_NAME, GWEN_ERROR_NOT_FOUND, GWEN_ERROR_NOT_IMPLEMENTED, GWEN_ERROR_NOT_SUPPORTED, GWEN_ERROR_USER_ABORTED, GWEN_GUI_PROGRESS_ALLOW_EMBED, GWEN_GUI_PROGRESS_ALWAYS_SHOW_LOG, GWEN_GUI_PROGRESS_DELAY, GWEN_GUI_PROGRESS_SHOW_ABORT, GWEN_GUI_PROGRESS_SHOW_LOG, GWEN_GUI_PROGRESS_SHOW_PROGRESS, GWEN_Gui_ProgressAdvance(), GWEN_Gui_ProgressEnd(), GWEN_Gui_ProgressLog(), GWEN_Gui_ProgressStart(), GWEN_LOGDOMAIN, GWEN_LoggerLevel_Error, GWEN_LoggerLevel_Info, GWEN_LoggerLevel_Notice, GWEN_LoggerLevel_Warning, GWEN_Plugin_GetName(), GWEN_PluginDescription_GetName(), GWEN_PluginDescription_GetXmlNode(), GWEN_PluginDescription_List2_freeAll(), GWEN_PluginManager_GetPlugin(), I18N, and NULL.
GWENHYWFAR_API GWEN_PLUGIN_DESCRIPTION_LIST2* GWEN_Crypt_Token_PluginManager_GetPluginDescrs | ( | GWEN_PLUGIN_MANAGER * | pm, |
GWEN_CRYPT_TOKEN_DEVICE | devt | ||
) |
Definition at line 225 of file ctplugin.c.
References DBG_ERROR, GWEN_Crypt_Token_Device_Any, GWEN_Crypt_Token_Device_toString(), GWEN_LOGDOMAIN, GWEN_PluginDescription_dup(), GWEN_PluginDescription_GetXmlNode(), GWEN_PluginDescription_List2_freeAll(), GWEN_PluginManager_GetPluginDescrs(), GWEN_XMLNode_GetProperty(), and NULL.
Referenced by GWEN_Crypt_Token_PluginManager_CheckToken().