Home GnuPG
Diffusion GnuPG 611faf1579a5

scd: internal driver: Submit SET_INTERFACE control transfer.

Description

scd: internal driver: Submit SET_INTERFACE control transfer.

* scd/ccid-driver.c (ccid_open_usb_reader): Alway submit SET_INTERFACE
control transfer.

This handling is not mondatory, but it's better to do so, because
there are card reader with pinpad and token with ack button, which
support user interaction.

User interaction status should be reset at open time. The status
should be reset when the session is closed/stopped. In practice,
since cleanup routine in a driver may not be called properly, it's
good to submit SET_INTERFACE at open time.

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

Details

Provenance
gniibeAuthored on Feb 22 2019, 12:05 PM
Parents
rGc1000c673814: sm: Fix certificate creation with key on card.
Branches
Unknown
Tags
Unknown