mirror of
git://git.gnupg.org/gnupg.git
synced 2025-03-21 21:39:58 +01:00
scd: pinpad fix for PC/SC on Windows.
* scd/apdu.c (SCARD_CTL_CODE): Fix for Windows.
This commit is contained in:
parent
a15c35f37e
commit
32989ad2b1
@ -246,7 +246,13 @@ static char (* DLSTDCALL CT_close) (unsigned short ctn);
|
|||||||
|
|
||||||
/* Fix pcsc-lite ABI incompatibilty. */
|
/* Fix pcsc-lite ABI incompatibilty. */
|
||||||
#ifndef SCARD_CTL_CODE
|
#ifndef SCARD_CTL_CODE
|
||||||
# define SCARD_CTL_CODE(code) (0x42000000 + (code))
|
#ifdef _WIN32
|
||||||
|
#include <winioctl.h>
|
||||||
|
#define SCARD_CTL_CODE(code) CTL_CODE(FILE_DEVICE_SMARTCARD, (code), \
|
||||||
|
METHOD_BUFFERED, FILE_ANY_ACCESS)
|
||||||
|
#else
|
||||||
|
#define SCARD_CTL_CODE(code) (0x42000000 + (code))
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define CM_IOCTL_GET_FEATURE_REQUEST SCARD_CTL_CODE(3400)
|
#define CM_IOCTL_GET_FEATURE_REQUEST SCARD_CTL_CODE(3400)
|
||||||
@ -349,6 +355,7 @@ long (* DLSTDCALL pcsc_control) (long card,
|
|||||||
|
|
||||||
|
|
||||||
/* Prototypes. */
|
/* Prototypes. */
|
||||||
|
static int pcsc_vendor_specific_init (int slot);
|
||||||
static int pcsc_get_status (int slot, unsigned int *status);
|
static int pcsc_get_status (int slot, unsigned int *status);
|
||||||
static int reset_pcsc_reader (int slot);
|
static int reset_pcsc_reader (int slot);
|
||||||
static int apdu_get_status_internal (int slot, int hang, int no_atr_reset,
|
static int apdu_get_status_internal (int slot, int hang, int no_atr_reset,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user