mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
scd: On a Yubikey re-select the last app after the use of APDU.
* scd/app-common.h (struct card_ctx_s): Add maybe_check_aid flag. * scd/command.c (cmd_apdu): Set it. * scd/app.c (check_external_interference): Consult this flag. (maybe_switch_app): Do a re-select if this flag is set. -- After the gpg-card tool has issued a Yubikey specific command the current application is not anymore correctly selected. This then results in all kind of errors. We detect this now and try to re-select the last app.
This commit is contained in:
parent
98b8c518fa
commit
f7e00dc73d
3 changed files with 22 additions and 2 deletions
|
@ -2195,6 +2195,7 @@ cmd_apdu (assuan_context_t ctx, char *line)
|
|||
unsigned char *result = NULL;
|
||||
size_t resultlen;
|
||||
|
||||
card->maybe_check_aid = 1;
|
||||
rc = apdu_send_direct (card->slot, exlen,
|
||||
apdu, apdulen, handle_more,
|
||||
NULL, &result, &resultlen);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue