mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-14 21:47:19 +02:00
* cardglue.c (open_card): Check USE_AGENT.
* g10.c (main): Option --debug-ccid-driver may now be given several times increase the debug level. * ccid-driver.c (parse_ccid_descriptor): Mark SCR335 FW version 5.14 as good. (do_close_reader): Never do a reset. The caller should instead make sure that the reader has been closed properly. The new retry code in ccid_slot_status will make sure that the readersatrts up fine even if the last process didn't closed the USB connection properly. (ccid_get_atr): For certain readers try switching to ISO mode. Thanks to Ludovic Rousseau for this hint and the magic numbers. (print_command_failed): New. (bulk_in): Use it here. Add new arg NO_DEBUG. (ccid_slot_status): Disabled debugging.
This commit is contained in:
parent
be2aa37dbf
commit
75675331f1
4 changed files with 190 additions and 75 deletions
|
@ -350,16 +350,20 @@ open_card (void)
|
|||
int rc;
|
||||
app_t app;
|
||||
int did_shutdown = 0;
|
||||
int scd_available;
|
||||
|
||||
/* First check whether we can contact a gpg-agent and divert all
|
||||
operation to it. This is required because gpg as well as the
|
||||
agent require exclusive access to the reader. */
|
||||
app = open_card_via_agent (&scd_available);
|
||||
if (app)
|
||||
goto ready; /* Yes, there is a agent with a usable card, go that way. */
|
||||
if (scd_available)
|
||||
return NULL; /* agent avilabale but card problem. */
|
||||
if (opt.use_agent)
|
||||
{
|
||||
int scd_available;
|
||||
|
||||
app = open_card_via_agent (&scd_available);
|
||||
if (app)
|
||||
goto ready; /* Yes, there is a agent with a usable card, go that way. */
|
||||
if (scd_available)
|
||||
return NULL; /* agent avilabale but card problem. */
|
||||
}
|
||||
|
||||
|
||||
/* No agent or usable agent, thus we do it on our own. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue