1 From: Werner Koch <wk@gnupg.org>
2 Date: Fri, 7 Apr 2017 10:11:07 +0200
3 Subject: gpg: Fix printing of offline taken subkey.
5 * g10/keylist.c (list_keyblock_print): Set SECRET to 2 and not 0x32.
8 Reported-by: Danielle McLean <dani@00dani.me>
9 Signed-off-by: Werner Koch <wk@gnupg.org>
10 (cherry picked from commit 547bc01d57528ecc27b3b5e16797967a7f88fecf)
13 1 file changed, 1 insertion(+), 1 deletion(-)
15 diff --git a/g10/keylist.c b/g10/keylist.c
16 index 4078053..1998ee9 100644
19 @@ -1017,7 +1017,7 @@ list_keyblock_print (ctrl_t ctrl, kbnode_t keyblock, int secret, int fpr,
20 if (!agent_get_keyinfo (NULL, hexgrip, &serialno, NULL))
21 secret = serialno? 3 : 1;
23 - secret = '2'; /* Key not found. */
24 + secret = 2; /* Key not found. */
27 /* Print the "sub" line. */