diff options
author | Werner Koch <[email protected]> | 2013-03-19 16:23:56 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2013-03-19 16:26:42 +0000 |
commit | c4dbd1b2de8ae3847a040444e86500848868bcf4 (patch) | |
tree | a8ff93e45ad3322a9c8fabeb083a2b2d135f01b1 | |
parent | gpg: Allow setting of all zero key flags (diff) | |
download | gnupg-c4dbd1b2de8ae3847a040444e86500848868bcf4.tar.gz gnupg-c4dbd1b2de8ae3847a040444e86500848868bcf4.zip |
gpg: Print indicator for unknown key capability.
* g10/keylist.c (print_capabilities): Print '?' for unknown usage.
-rw-r--r-- | doc/DETAILS | 1 | ||||
-rw-r--r-- | g10/keylist.c | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/doc/DETAILS b/doc/DETAILS index a52979f65..d5c5cea75 100644 --- a/doc/DETAILS +++ b/doc/DETAILS @@ -161,6 +161,7 @@ described here. - s :: Sign - c :: Certify - a :: Authentication + - ? :: Unknown capability A key may have any combination of them in any order. In addition to these letters, the primary key has uppercase versions of the diff --git a/g10/keylist.c b/g10/keylist.c index 87f3a4bb0..d45aed672 100644 --- a/g10/keylist.c +++ b/g10/keylist.c @@ -627,6 +627,9 @@ print_capabilities (PKT_public_key *pk, KBNODE keyblock) if ((use & PUBKEY_USAGE_AUTH)) es_putc ('a', es_stdout); + if ((use & PUBKEY_USAGE_UNKNOWN)) + es_putc ('?', es_stdout); + if (keyblock) { /* Figure out the usable capabilities. */ |