diff options
author | NIIBE Yutaka <[email protected]> | 2019-08-06 23:50:19 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2019-08-06 23:50:19 +0000 |
commit | 100642e776964219936e493315eb8b7c99742f41 (patch) | |
tree | 4ffb9019237262fa7a37d1437d812340d35fd16c /scd/apdu.c | |
parent | agent: Fix an error path of agent_get_confirmation. (diff) | |
download | gnupg-100642e776964219936e493315eb8b7c99742f41.tar.gz gnupg-100642e776964219936e493315eb8b7c99742f41.zip |
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 <[email protected]>
Diffstat (limited to 'scd/apdu.c')
-rw-r--r-- | scd/apdu.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/scd/apdu.c b/scd/apdu.c index 2df113c5e..37becb287 100644 --- a/scd/apdu.c +++ b/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 |