mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
card: Print usage info for each key.
* tools/card-call-scd.c (learn_status_cb): Handle extended KEYPARIRINFO. * tools/card-tool.h (struct key_info_s): Add field 'usage'. * tools/gpg-card-tool.c (list_one_kinfo): Show usage flags. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
5e21ef2d55
commit
7317aeb3f4
3 changed files with 60 additions and 11 deletions
|
@ -127,7 +127,7 @@ struct key_info_s
|
|||
unsigned char fprlen; /* Use length of the next item. */
|
||||
unsigned char fpr[32]; /* The binary fingerprint of length FPRLEN. */
|
||||
u32 created; /* The time the key was created. */
|
||||
|
||||
unsigned int usage; /* Usage flags. (GCRY_PK_USAGE_*) */
|
||||
char keyref[1]; /* String with the keyref (e.g. OPENPGP.1). */
|
||||
};
|
||||
typedef struct key_info_s *key_info_t;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue