scd: PC/SC reader selection by partial string match.
authorNIIBE Yutaka <gniibe@fsij.org>
Thu, 30 Apr 2015 03:36:38 +0000 (12:36 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Thu, 30 Apr 2015 03:36:38 +0000 (12:36 +0900)
commit01a2a61bc4b34817c4216888265f65d59a33dad3
tree87b10f3e2d8b37e1af31b7284f48cbe6b6d65e5a
parent172b6193488f433a206fd88f85d8c4a5d1eb7fdf
scd: PC/SC reader selection by partial string match.

* scd/apdu.c (open_pcsc_reader_direct): Partial string match.

--

The card reader name by PC/SC service might include USB bus,
which varies (on some platform like GNU/Linux).  Thus, it's
better to match partial string.

Original patch was submitted by anstein.  I changed it to fallback to
the first reader if no match found.

Note that we need to change pcsc-wrapper.c in 2.0 backport.

GnuPG-bug-id: 1618, 1930
scd/apdu.c