print card's ATR when connected
This commit is contained in:
@@ -47,7 +47,6 @@ static driver_data_t *scdriver_data = NULL;
|
||||
static void daemonize(void);
|
||||
static void cleanup_exit(int signo);
|
||||
static void cleanup(void);
|
||||
static void hexdump(const char *label, unsigned char *buf, size_t len);
|
||||
|
||||
|
||||
#if HAVE_WORKING_FORK
|
||||
|
||||
@@ -58,6 +58,8 @@ extern unsigned int readernum;
|
||||
extern struct sc_driver driver_vpcd;
|
||||
extern unsigned int vpcdport;
|
||||
|
||||
void hexdump(const char *label, unsigned char *buf, size_t len);
|
||||
|
||||
#define LEVEL_NORMAL 0
|
||||
#define LEVEL_INFO 1
|
||||
#define LEVEL_DEBUG 2
|
||||
|
||||
@@ -128,7 +128,8 @@ static int pcsc_connect(driver_data_t **driver_data)
|
||||
RELAY_ERROR("Could not connect to %s\n", reader);
|
||||
goto err;
|
||||
}
|
||||
INFO("Connected to %s\n", reader);
|
||||
INFO("Connected to reader %u: %s\n", i, reader);
|
||||
hexdump("Card's ATR: ", state.rgbAtr, state.cbAtr);
|
||||
|
||||
err:
|
||||
if (r != SCARD_S_SUCCESS) {
|
||||
|
||||
Reference in New Issue
Block a user