From c4dbd1b2de8ae3847a040444e86500848868bcf4 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 19 Mar 2013 17:23:56 +0100 Subject: [PATCH] gpg: Print indicator for unknown key capability. * g10/keylist.c (print_capabilities): Print '?' for unknown usage. --- doc/DETAILS | 1 + g10/keylist.c | 3 +++ 2 files changed, 4 insertions(+) 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. */