From 0988e49c45d0fb73d0b536aa027bd114f9dc65a7 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 7 Sep 2022 10:34:05 +0200 Subject: gpg: Support key flags for RENC, TIME, and GROUP. * g10/packet.h (PUBKEY_USAGE_RENC): New. (PUBKEY_USAGE_TIME): New. (PUBKEY_USAGE_GROUP): New. * g10/getkey.c (parse_key_usage): Set the new key flags. * g10/keyedit.c (show_key_with_all_names_colon): Show the new key flags. * g10/keyid.c (usagestr_from_pk): Ditto * g10/keylist.c (print_capabilities): Ditto. * g10/keygen.c (parse_usagestr): Parse line and set new flags. (quickgen_set_para): Show flags. -- See draft-koch-openpgp-2015-rfc4880bis-00 for the current version. Actually these flags have been in the draft for years now. This patch is a first step to make use of them. --- g10/keylist.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'g10/keylist.c') diff --git a/g10/keylist.c b/g10/keylist.c index 76eed6a78..e785aa0b9 100644 --- a/g10/keylist.c +++ b/g10/keylist.c @@ -802,6 +802,13 @@ print_capabilities (ctrl_t ctrl, PKT_public_key *pk, KBNODE keyblock) if ((use & PUBKEY_USAGE_AUTH)) es_putc ('a', es_stdout); + if (use & PUBKEY_USAGE_RENC) + es_putc ('r', es_stdout); + if ((use & PUBKEY_USAGE_TIME)) + es_putc ('t', es_stdout); + if ((use & PUBKEY_USAGE_GROUP)) + es_putc ('g', es_stdout); + if ((use & PUBKEY_USAGE_UNKNOWN)) es_putc ('?', es_stdout); -- cgit v1.2.3