Lines 78-86
struct card
Link Here
|
78 |
static GSList *ctxlist = NULL; |
78 |
static GSList *ctxlist = NULL; |
79 |
|
79 |
|
80 |
/* Protocol constants */ |
80 |
/* Protocol constants */ |
|
|
81 |
|
82 |
/* In pcsc-lite 1.7.3, g_rgSCard* was made constant. |
83 |
FEATURE_EXECUTE_PACE was defined in 1.8.0; close enough. */ |
84 |
#ifdef FEATURE_EXECUTE_PACE |
85 |
const SCARD_IO_REQUEST g_rgSCardT0Pci = { SCARD_PROTOCOL_T0, sizeof(SCARD_IO_REQUEST) }; |
86 |
const SCARD_IO_REQUEST g_rgSCardT1Pci = { SCARD_PROTOCOL_T1, sizeof(SCARD_IO_REQUEST) }; |
87 |
const SCARD_IO_REQUEST g_rgSCardRawPci = { SCARD_PROTOCOL_RAW, sizeof(SCARD_IO_REQUEST) }; |
88 |
#else |
81 |
SCARD_IO_REQUEST g_rgSCardT0Pci = { SCARD_PROTOCOL_T0, sizeof(SCARD_IO_REQUEST) }; |
89 |
SCARD_IO_REQUEST g_rgSCardT0Pci = { SCARD_PROTOCOL_T0, sizeof(SCARD_IO_REQUEST) }; |
82 |
SCARD_IO_REQUEST g_rgSCardT1Pci = { SCARD_PROTOCOL_T1, sizeof(SCARD_IO_REQUEST) }; |
90 |
SCARD_IO_REQUEST g_rgSCardT1Pci = { SCARD_PROTOCOL_T1, sizeof(SCARD_IO_REQUEST) }; |
83 |
SCARD_IO_REQUEST g_rgSCardRawPci = { SCARD_PROTOCOL_RAW, sizeof(SCARD_IO_REQUEST) }; |
91 |
SCARD_IO_REQUEST g_rgSCardRawPci = { SCARD_PROTOCOL_RAW, sizeof(SCARD_IO_REQUEST) }; |
|
|
92 |
#endif |
84 |
|
93 |
|
85 |
static LONG SCardAllocMemory(SCARDCONTEXT hContext, void **ppvMem, DWORD cbLength); |
94 |
static LONG SCardAllocMemory(SCARDCONTEXT hContext, void **ppvMem, DWORD cbLength); |
86 |
|
95 |
|
Lines 736-742
SCardStatus(SCARDHANDLE hCard, LPTSTR mszReaderName,
Link Here
|
736 |
|
745 |
|
737 |
LONG |
746 |
LONG |
738 |
SCardGetStatusChange(SCARDCONTEXT hContext, DWORD dwTimeout, |
747 |
SCardGetStatusChange(SCARDCONTEXT hContext, DWORD dwTimeout, |
739 |
LPSCARD_READERSTATE_A rgReaderStates, DWORD cReaders) |
748 |
SCARD_READERSTATE *rgReaderStates, DWORD cReaders) |
740 |
{ |
749 |
{ |
741 |
struct session *s; |
750 |
struct session *s; |
742 |
int ret, i, size; |
751 |
int ret, i, size; |
Lines 1418-1430
SCardSetAttrib(SCARDHANDLE hCard, DWORD dwAttrId, LPCBYTE pbAttr, DWORD cbAttrLe
Link Here
|
1418 |
return translate_errno(ret); |
1427 |
return translate_errno(ret); |
1419 |
} |
1428 |
} |
1420 |
|
1429 |
|
1421 |
#ifdef __APPLE__ |
|
|
1422 |
char * |
1423 |
pcsc_stringify_error(int32_t code) |
1424 |
#else |
1425 |
char * |
1426 |
pcsc_stringify_error(long code) |
1427 |
#endif |
1428 |
{ |
1429 |
return "(UNKNOWN ERROR)"; |
1430 |
} |