mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
scd: Remove fallback mechanism to PC/SC.
* scd/apdu.c [HAVE_LIBUSB] (apdu_open_reader): Simply let it fail. GnuPG-bug-id: 4673 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
bb82ad018a
commit
100642e776
10
scd/apdu.c
10
scd/apdu.c
@ -2107,14 +2107,8 @@ apdu_open_reader (struct dev_list *dl, int app_empty)
|
||||
dl->idx++;
|
||||
}
|
||||
|
||||
/* Not found. Try one for PC/SC, only when it's the initial scan. */
|
||||
if (app_empty && dl->idx == dl->idx_max)
|
||||
{
|
||||
dl->idx++;
|
||||
slot = apdu_open_one_reader (dl->portstr);
|
||||
}
|
||||
else
|
||||
slot = -1;
|
||||
/* Not found. */
|
||||
slot = -1;
|
||||
}
|
||||
else
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user