diff options
author | Werner Koch <[email protected]> | 2023-04-18 10:04:15 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2023-04-18 10:04:15 +0000 |
commit | f7e00dc73dd0a71e21a30e2b4393a6865ef05718 (patch) | |
tree | 56bca04727422e102ee0ba35a0c1561b85650a21 /scd/app-common.h | |
parent | ssh: Allow to prefer on-disk keys over active card keys. (diff) | |
download | gnupg-f7e00dc73dd0a71e21a30e2b4393a6865ef05718.tar.gz gnupg-f7e00dc73dd0a71e21a30e2b4393a6865ef05718.zip |
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.
Diffstat (limited to 'scd/app-common.h')
-rw-r--r-- | scd/app-common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scd/app-common.h b/scd/app-common.h index 2eeffbe95..988cddf3f 100644 --- a/scd/app-common.h +++ b/scd/app-common.h @@ -119,6 +119,7 @@ struct card_ctx_s { /* Various flags. */ unsigned int reset_requested:1; unsigned int periodical_check_needed:1; + unsigned int maybe_check_aid:1; }; |