diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2019-09-12 01:48:48 +0200 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2019-09-12 01:48:48 +0200 |
commit | c569e49d1764d2573aec5684f9cee397bdd8ccb1 (patch) | |
tree | f92c10bdad74966a0f617151936506549737235d /scd/apdu.c | |
parent | scd,pcsc: Fix examining the list of readers. (diff) | |
download | gnupg2-c569e49d1764d2573aec5684f9cee397bdd8ccb1.tar.xz gnupg2-c569e49d1764d2573aec5684f9cee397bdd8ccb1.zip |
scd,pcsc: Remove the restriction of no-scanning in PC/SC.
* scd/apdu.h (app_open_reader): Remove the last argument.
* scd/apdu.c (app_open_reader): Ditto.
* scd/app.c (select_application): Don't supply APP_EMPTY.
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'scd/apdu.c')
-rw-r--r-- | scd/apdu.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/scd/apdu.c b/scd/apdu.c index af747c07d..99daef63d 100644 --- a/scd/apdu.c +++ b/scd/apdu.c @@ -2055,7 +2055,7 @@ apdu_dev_list_finish (struct dev_list *dl) int -apdu_open_reader (struct dev_list *dl, int app_empty) +apdu_open_reader (struct dev_list *dl) { int slot; @@ -2175,15 +2175,6 @@ apdu_open_reader (struct dev_list *dl, int app_empty) /* Not found. */ slot = -1; -#if 0 - if (app_empty && dl->idx == 0) - { - dl->idx++; - slot = apdu_open_one_reader (dl->portstr); - } - else - slot = -1; -#endif } return slot; |