diff options
author | Werner Koch <wk@gnupg.org> | 2024-06-05 10:00:05 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2024-06-05 10:01:44 +0200 |
commit | 8cbcac89fe846d7848a64fdf25fb64479eed8ca9 (patch) | |
tree | e737612d7547ba1d4373cf541d233c16a7a14259 /g10/packet.h | |
parent | gpg: Print designated revokers also in a standard listing. (diff) | |
download | gnupg2-8cbcac89fe846d7848a64fdf25fb64479eed8ca9.tar.xz gnupg2-8cbcac89fe846d7848a64fdf25fb64479eed8ca9.zip |
gpg: Do not show RENC if no key capabilities are found for a key.
* g10/packet.h (PUBKEY_USAGE_BASIC_MASK): New.
* g10/getkey.c (merge_selfsigs_subkey): Mask the default.
(merge_selfsigs_main): Ditto.
Diffstat (limited to '')
-rw-r--r-- | g10/packet.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/g10/packet.h b/g10/packet.h index e10baba4d..b16b775a2 100644 --- a/g10/packet.h +++ b/g10/packet.h @@ -60,6 +60,10 @@ #define PUBKEY_USAGE_RENC 1024 /* Restricted encryption. */ #define PUBKEY_USAGE_TIME 2048 /* Timestamp use. */ +/* The usage bits which can be derived from the algo. */ +#define PUBKEY_USAGE_BASIC_MASK (PUBKEY_USAGE_SIG|PUBKEY_USAGE_ENC\ + |PUBKEY_USAGE_CERT|PUBKEY_USAGE_AUTH) + /* Bitflags to convey hints on what kind of signature is created. */ #define SIGNHINT_KEYSIG 1 #define SIGNHINT_SELFSIG 2 |