Home GnuPG
Diffusion GnuPG cccdca61a841

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.

Backport from master commit:

611faf1579a56925994d53eb08e1290a4b3958cf

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
rGe3a12b09dca4: scd: Internal CCID driver: Spelling cleanup.
Branches
Unknown
Tags
Unknown