diff options
| author | Jay Sorg <jay.sorg@gmail.com> | 2013-10-23 22:12:49 -0700 |
|---|---|---|
| committer | Jay Sorg <jay.sorg@gmail.com> | 2013-10-23 22:12:49 -0700 |
| commit | 6c038684921ed3083c7a63ecbd2e47981c2fac31 (patch) | |
| tree | fdae73b0c0f03d4764aef60a9f91481137be466d | |
| parent | 2943650685c834d51ce9a0d5cef654e096624cec (diff) | |
| download | xrdp-proprietary-6c038684921ed3083c7a63ecbd2e47981c2fac31.tar.gz xrdp-proprietary-6c038684921ed3083c7a63ecbd2e47981c2fac31.zip | |
chansrv: fix for firefox smart card
| -rw-r--r-- | sesman/chansrv/pcsc/xrdp_pcsc.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sesman/chansrv/pcsc/xrdp_pcsc.c b/sesman/chansrv/pcsc/xrdp_pcsc.c index 17526aeb..82cebaac 100644 --- a/sesman/chansrv/pcsc/xrdp_pcsc.c +++ b/sesman/chansrv/pcsc/xrdp_pcsc.c @@ -48,6 +48,14 @@ typedef struct _SCARD_IO_REQUEST unsigned long cbPciLength; } SCARD_IO_REQUEST, *PSCARD_IO_REQUEST, *LPSCARD_IO_REQUEST; +#define SCARD_PROTOCOL_T0 0x0001 /**< T=0 active protocol. */ +#define SCARD_PROTOCOL_T1 0x0002 /**< T=1 active protocol. */ +#define SCARD_PROTOCOL_RAW 0x0004 /**< Raw active protocol. */ + +SCARD_IO_REQUEST g_rgSCardRawPci = { SCARD_PROTOCOL_T0, 8 }; +SCARD_IO_REQUEST g_rgSCardT1Pci = { SCARD_PROTOCOL_T1, 8 }; +SCARD_IO_REQUEST g_rgSCardT0Pci = { SCARD_PROTOCOL_RAW, 8 }; + #define LLOG_LEVEL 5 #define LLOGLN(_level, _args) \ do { if (_level < LLOG_LEVEL) { printf _args ; printf("\n"); } } while (0) @@ -1131,6 +1139,7 @@ SCardSetAttrib(SCARDHANDLE hCard, DWORD dwAttrId, LPCBYTE pbAttr, char * pcsc_stringify_error(const long code) { + LLOGLN(10, ("pcsc_stringify_error: %d", code)); switch (code) { case SCARD_S_SUCCESS: |
