Home GnuPG
Diffusion GnuPG ee911df979e9

card: New option --info for command list and select by s/n.

Description

card: New option --info for command list and select by s/n.

* tools/gpg-card.c (cmd_list): add option --info.  Factor soem code
out to ...
(print_card_list): new.

This change allows to use the printed s/n to sleect another card
instead of using the index. For example:

gpg/card> l --cards
0* D276000124010200FFFE50FF6E060000
1  D2760001240102000005000000370000

Now select the second card but do not print the entire listing, just
the card index, s/n and applications. We also select by s/n:

gpg/card> l --info D2760001240102000005000000370000
1* D2760001240102000005000000370000
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Feb 18 2020, 8:12 PM
Parents
rG41913d76f7db: gpg: Fix default-key selection when card is available.
Branches
Unknown
Tags
Unknown