Diffusion GnuPG 93e3c9788912

scd: For PC/SC, send the ESC command at init for SPR532 reader.

Authored by gniibe on Sep 25 2020, 4:24 AM.

Description

scd: For PC/SC, send the ESC command at init for SPR532 reader.

* scd/apdu.c (struct reader_table_s): Remove is_spr532.
(pcsc_vendor_specific_init): Send the ESC command for SPR532.
(pcsc_pinpad_verify, pcsc_pinpad_modify): Remove no_lc hack.

The "no_lc" hack lets PC/SC-lite send the ESC command for SPR532
internally, for pcsc_pinpad_verify. However, PC/SC-lite doesn't do
that for pcsc_pinpad_modify, unfortunately. Besides, I'm not sure
this hack works on Windows, which has different implementation of
PC/SC service.

It's better to send the ESC command by the driver explicitly, at the
initialization. Sending the ESC command results PCSC_E_NOT_TRANSACTED
error when a card is not active (that is the case, usually). We
ignore this error.

  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Committed
gniibeSep 25 2020, 4:24 AM
Parents
rG4fae55f8ee11: scd: For SPR532, submit the ESCape command at initialization.
Branches
Unknown
Tags
Unknown