mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01:00
gpg: Fix printing of offline taken subkey.
* g10/keylist.c (list_keyblock_print): Set SECRET to 2 and not 0x32. -- Reported-by: Danielle McLean <dani@00dani.me> Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
cc420d3488
commit
547bc01d57
@ -1016,7 +1016,7 @@ list_keyblock_print (ctrl_t ctrl, kbnode_t keyblock, int secret, int fpr,
|
||||
if (!agent_get_keyinfo (NULL, hexgrip, &serialno, NULL))
|
||||
secret = serialno? 3 : 1;
|
||||
else
|
||||
secret = '2'; /* Key not found. */
|
||||
secret = 2; /* Key not found. */
|
||||
}
|
||||
|
||||
/* Print the "sub" line. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user