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:47:44 +0000 (16:47 +0200)
commitb63717031d8ee3f9ded44a182516158f8a349bd1
tree44121c3c9443eb2dbe4a469ab6005b14c332ba47
parent43e85d7bee4644ca84ef0ab0c3b08b2d02e4a699
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>
(cherry picked from commit 5c5e52df4b92e23045ac87abac09357de58920d4)
scd/apdu.c