Home GnuPG
Diffusion GnuPG d784e763495c

scd: Do not try to use a non-enabled app after card switching.

Description

scd: Do not try to use a non-enabled app after card switching.

* scd/app.c (app_dump_state): Also print the refcount.
(maybe_switch_app): Make sure the app exists on the card.

When switching the current card and the card does not support the same
apps as the former, we now reset the app to the first one.

Testcase is to use a standard OpenPGP card and a P15 card.

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Nov 26 2020, 12:16 PM
Parents
rG764c69a841ab: scd: Add special serialno compare for OpenPGP cards.
Branches
Unknown
Tags
Unknown