Home GnuPG
Diffusion GnuPG 874ef16e70ab

gpg: Improve 'General key info' line of --card-status.
874ef16e70abUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

gpg: Improve 'General key info' line of --card-status.

* g10/keylist.c (print_pubkey_info): Print either "pub" or "sub".
* g10/getkey.c (get_pubkey_byfprint): Add optional arg R_KEYBLOCK.
* g10/keyid.c (keyid_from_fingerprint): Adjust for change.
* g10/revoke.c (gen_desig_revoke): Adjust for change.
* g10/card-util.c (card_status): Simplify by using new arg.  Align
card-no string.
* g10/card-util.c (card_status): Remove not used GnuPG-1 code.

This now prints "sub" if the first used card key is actually a subkey.

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

Details

Provenance
wernerAuthored on May 7 2015, 12:01 PM
Parents
rG173b26c8f83a: gpg: Fix regression not displaying the card serial number
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rG874ef16e70ab: gpg: Improve 'General key info' line of --card-status. (authored by Werner Koch <wk@gnupg.org>).May 7 2015, 12:12 PM