scd: Make SPRx32 pinpad work with PC/SC on Windows.
authorWerner Koch <wk@gnupg.org>
Wed, 21 Aug 2013 14:45:48 +0000 (16:45 +0200)
committerWerner Koch <wk@gnupg.org>
Wed, 21 Aug 2013 14:45:48 +0000 (16:45 +0200)
commit5c5e52df4b92e23045ac87abac09357de58920d4
tree0b6c135370f2f18dff8efbc55ccecb775750f038
parent7bde2bf3b0ddb5d3515a44879e1a7ddb581a5c0b
scd: Make SPRx32 pinpad work with PC/SC on Windows.

* scd/apdu.c (CM_IOCTL_GET_FEATURE_REQUEST): Use SCARD_CTL_CODE.
(SCARD_CTL_CODE): Define if not defined.
(reader_table_s): Add is_spr532.
(new_reader_slot): Clear it.
(check_pcsc_pinpad): Set it.
(pcsc_pinpad_verify, pcsc_pinpad_modify): Add fix for SPR532.

Signed-off-by: Werner Koch <wk@gnupg.org>
scd/apdu.c