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:
NIIBE Yutaka 2019-08-07 08:50:19 +09:00
parent bb82ad018a
commit 100642e776
1 changed files with 2 additions and 8 deletions

View File

@ -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