Home GnuPG
Diffusion GnuPG 904fbdccd65e

scd: Fix removal of unplugged usb readers on Windows.
904fbdccd65eUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

scd: Fix removal of unplugged usb readers on Windows.

* scd/apdu.c (pcsc_error_to_sw): map PCSC_E_NO_SERVICE and
PCSC_E_SERVICE_STOPPED to the internal SW_HOST_NO_READER error code.

In Windows 8 (and later), PC/SC service only runs when reader/token is
plugged in. After its removal, it returns PCSC_E_NO_SERVICE error.
This error should be handled as no reader. This comment is by gniibe.

(backport of commit d1a97585c5e73fbc7d4cf90e38f76ffc5aea305f)

  • Signed-off-by: Daniel Hoffend <dh@dotlan.net>
  • GnuPG-bug-id: T2167

Details

Provenance
dhoffendAuthored on Dec 7 2015, 12:13 AM
gniibeCommitted on Dec 15 2015, 1:51 AM
Parents
rG520c85ed94fa: scd: Simplify saving application context.
Branches
Unknown
Tags
Unknown

Event Timeline

NIIBE Yutaka <gniibe@fsij.org> committed rG904fbdccd65e: scd: Fix removal of unplugged usb readers on Windows. (authored by Daniel Hoffend <dh@dotlan.net>).Dec 15 2015, 1:51 AM