mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
card: List more info for an OpenPGP key.
* tools/gpg-card.h (struct pubkey_s): Add field created. * tools/card-keys.c (parse_key_record): Set that field. * tools/gpg-card.c (print_shax_fpr): Print the fingerprint without spaces for easier c+p. (list_one_kinfo): Print the actual used fingerprint and creation date from the keyblock. -- A common problem with OpenPGP cards is that the fingerprint as stored on the card does not match the actual fingerprint. Print both values to be able to investigate such issues. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
2c6092bc5d
commit
1abfce82bd
3 changed files with 21 additions and 12 deletions
|
@ -174,6 +174,10 @@ parse_key_record (char **fields, int nfields, pubkey_t *r_pubkey)
|
|||
pubkey = xtrycalloc (1, sizeof *pubkey);
|
||||
if (!pubkey)
|
||||
return gpg_error_from_syserror ();
|
||||
|
||||
if (nfields > 5)
|
||||
pubkey->created = parse_timestamp (fields[5], NULL);
|
||||
|
||||
*r_pubkey = pubkey;
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue