Diffusion GnuPG bd85f9232ad6

card: Allow switching of cards and applications.

Authored by werner on Jan 16 2020, 9:28 PM.

Description

card: Allow switching of cards and applications.

* tools/card-call-scd.c (struct card_cardlist_parm_s): Add field
with_apps.
(card_cardlist_cb): Handle the new with_apps flag.
(scd_switchcard): New.
(scd_switchapp): New.
(scd_applist): New.
(scd_serialno): Pass --all also in --demand mode.
* tools/gpg-card.c (cmd_list): Simplify switching of cards.  Add
switching of alls.  Print a list of apps per card.

Note that the output format of "list --card" slightly changes: The
current card is indicated with an asterisk. That should not harm any
robust parsers which might already be in use. It is anyway a
development version.

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

Details

Committed
wernerJan 16 2020, 9:28 PM
Parents
rG718555874efc: scd: New commands SWITCHCARD and SWITCHAPP.
Branches
Unknown
Tags
Unknown