start moving code to the library, and add error codes

This commit is contained in:
Klas Lindfors
2014-06-16 13:19:48 +02:00
parent fe5632e603
commit 0d4dd2fea1
8 changed files with 222 additions and 24 deletions
+18 -2
View File
@@ -30,9 +30,25 @@
#ifndef YKPIV_INTERNAL_H
#define YKPIV_INTERNAL_H
#include <stdbool.h>
#if BACKEND_PCSC
#if defined HAVE_PCSC_WINSCARD_H
# include <PCSC/wintypes.h>
# include <PCSC/winscard.h>
#else
# include <winscard.h>
#endif
#endif
struct ykpiv_state {
SCARDCONTEXT card;
SCARDHANDLE cardHandle;
SCARDCONTEXT context;
SCARDHANDLE card;
int verbose;
};
unsigned const char aid[] = {
0xa0, 0x00, 0x00, 0x03, 0x08
};
#endif