libchipcard 5.1.6
ct_card.h File Reference
#include <chipcard/card.h>
#include <chipcard/sharedstuff/pininfo.h>
#include <gwenhywfar/ct.h>
Include dependency graph for ct_card.h:

Go to the source code of this file.

Functions

Functions for Inheriting Classes

Functions in this group can be used by other card based CryptToken plugins.

CHIPCARD_API int LC_Crypt_Token_VerifyPin (GWEN_CRYPT_TOKEN *ct, LC_CARD *hcard, GWEN_CRYPT_PINTYPE pt, uint32_t guiid)
 
CHIPCARD_API int LC_Crypt_Token_VerifyPinWithPinInfo (GWEN_CRYPT_TOKEN *ct, LC_CARD *hcard, GWEN_CRYPT_PINTYPE pt, const LC_PININFO *pi, uint32_t guiid)
 
CHIPCARD_API int LC_Crypt_Token_ChangePin (GWEN_CRYPT_TOKEN *ct, LC_CARD *hcard, GWEN_CRYPT_PINTYPE pt, int initial, uint32_t guiid)
 
CHIPCARD_API int LC_Crypt_Token_ResultToError (LC_CLIENT_RESULT res)
 

Function Documentation

◆ LC_Crypt_Token_VerifyPin()

CHIPCARD_API int LC_Crypt_Token_VerifyPin ( GWEN_CRYPT_TOKEN *  ct,
LC_CARD hcard,
GWEN_CRYPT_PINTYPE  pt,
uint32_t  guiid 
)

Let the chipcard verify a pin. If the card reader has a keypad then secure input will be used. Otherwise the user will be asked to enter a pin which is then relayed to the card.

◆ LC_Crypt_Token_VerifyPinWithPinInfo()

CHIPCARD_API int LC_Crypt_Token_VerifyPinWithPinInfo ( GWEN_CRYPT_TOKEN *  ct,
LC_CARD hcard,
GWEN_CRYPT_PINTYPE  pt,
const LC_PININFO pi,
uint32_t  guiid 
)

◆ LC_Crypt_Token_ChangePin()

CHIPCARD_API int LC_Crypt_Token_ChangePin ( GWEN_CRYPT_TOKEN *  ct,
LC_CARD hcard,
GWEN_CRYPT_PINTYPE  pt,
int  initial,
uint32_t  guiid 
)

Let the chipcard change a pin. If the card reader has a keypad then secure input will be used. Otherwise the user will be asked to enter a pin which is then relayed to the card.

◆ LC_Crypt_Token_ResultToError()

CHIPCARD_API int LC_Crypt_Token_ResultToError ( LC_CLIENT_RESULT  res)

Convert the given client result code to one of Gwenhywfars error codes.