gpg: Print indicator for unknown key capability.

* g10/keylist.c (print_capabilities): Print '?' for unknown usage.
This commit is contained in:
Werner Koch 2013-03-19 17:23:56 +01:00
parent b693ec02c4
commit c4dbd1b2de
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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. */