Home GnuPG
Diffusion GnuPG 0d6f276f61c5

card: Print the key's label if available.

Description

card: Print the key's label if available.

* tools/gpg-card.h (struct key_info_s): Add field 'label'.
* tools/card-call-scd.c (learn_status_cb): Parse KEY-LABEL.
(scd_learn): Always request KEY-LABEL.
* tools/gpg-card.c (nullnone): New.
(list_one_kinfo, list_card): Use it.  Print the label.

PKCS#15 defines label which help to understand for what a key is
intended. Print them.

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

Details

Provenance
wernerAuthored on Mar 30 2021, 5:28 PM
Parents
rG7f9126363265: scd:p15: Return labels for keys and certificates.
Branches
Unknown
Tags
Unknown