diff options
author | Werner Koch <wk@gnupg.org> | 2020-02-12 12:50:38 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2020-02-12 12:50:38 +0100 |
commit | 1abfce82bd525de2976c31b83bb0e67e33364e58 (patch) | |
tree | 9632addec0e3a4a3e80f0a466f9e28484ec2f4a8 /tools/gpg-card.h | |
parent | card: New option --no-key-lookup. (diff) | |
download | gnupg2-1abfce82bd525de2976c31b83bb0e67e33364e58.tar.xz gnupg2-1abfce82bd525de2976c31b83bb0e67e33364e58.zip |
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>
Diffstat (limited to 'tools/gpg-card.h')
-rw-r--r-- | tools/gpg-card.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/gpg-card.h b/tools/gpg-card.h index 67ecc4683..005316182 100644 --- a/tools/gpg-card.h +++ b/tools/gpg-card.h @@ -67,6 +67,7 @@ struct pubkey_s unsigned char grip[KEYGRIP_LEN]; unsigned char fpr[MAX_FINGERPRINT_LEN]; unsigned char fprlen; /* The used length of a FPR. */ + time_t created; /* The creation date of the key. */ unsigned int grip_valid:1;/* The grip is valid. */ unsigned int requested: 1;/* This is the requested grip. */ }; |