|
sc-hsm-embedded
|
#include <unistd.h>#include <stdio.h>#include <string.h>#include "scr.h"#include "ctbcs.h"#include "ctapi.h"#include "ccid_usb.h"Functions | |
| int | ccidT1Init (struct scr *ctx) |
| int | setResponse (struct scr *ctx, unsigned char *cmd, unsigned int *lr, unsigned char *rsp) |
| int | ResetCard (struct scr *ctx, unsigned int lc, unsigned char *cmd, unsigned int *lr, unsigned char *rsp) |
| int | RequestICC (struct scr *ctx, unsigned int lc, unsigned char *cmd, unsigned int *lr, unsigned char *rsp) |
| int | EjectICC (struct scr *ctx, unsigned int lc, unsigned char *cmd, unsigned int *lr, unsigned char *rsp) |
| int | GetICCStatus (struct scr *ctx, unsigned int *lr, unsigned char *rsp) |
| int | GetStatus (struct scr *ctx, unsigned char *cmd, unsigned int *lr, unsigned char *rsp) |
| int ccidT1Init | ( | struct scr * | ctx | ) |
Initialize T=1 protocol driver module
| ctx | Reader context |
| int GetICCStatus | ( | struct scr * | ctx, |
| unsigned int * | lr, | ||
| unsigned char * | rsp | ||
| ) |
Get ICC status
| ctx | Reader context |
| lr | Length of response |
| rsp | Response buffer |
CT-BCS Get Status command
| ctx | Reader context |
| cmd | Command |
| lr | Length of response |
| rsp | Response buffer |
| int RequestICC | ( | struct scr * | ctx, |
| unsigned int | lc, | ||
| unsigned char * | cmd, | ||
| unsigned int * | lr, | ||
| unsigned char * | rsp | ||
| ) |
CT-BCS Request ICC command
| ctx | Reader context |
| lc | Length of command |
| cmd | Command |
| lr | Length of response |
| rsp | Response buffer |
| int ResetCard | ( | struct scr * | ctx, |
| unsigned int | lc, | ||
| unsigned char * | cmd, | ||
| unsigned int * | lr, | ||
| unsigned char * | rsp | ||
| ) |
CT-BCS Reset Card command
| ctx | Reader context |
| lc | Length of command |
| cmd | Command |
| lr | Length of response |
| rsp | Response buffer |
| int setResponse | ( | struct scr * | ctx, |
| unsigned char * | cmd, | ||
| unsigned int * | lr, | ||
| unsigned char * | rsp | ||
| ) |
Set requested response of CT-BCS command
| ctx | Reader context |
| cmd | Command |
| lr | Length of response |
| rsp | Response buffer |