chiark / gitweb /
gpg: Fix printing of offline taken subkey.
authorWerner Koch <wk@gnupg.org>
Fri, 7 Apr 2017 08:11:07 +0000 (10:11 +0200)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Mon, 18 Sep 2017 20:41:12 +0000 (21:41 +0100)
* 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>
(cherry picked from commit 547bc01d57528ecc27b3b5e16797967a7f88fecf)

Gbp-Pq: Name 0065-gpg-Fix-printing-of-offline-taken-subkey.patch

g10/keylist.c

index 407805357f27e90c203c4c659b6604fef4d60993..1998ee9aa44fd5170efd6ade666279c27b2acd9f 100644 (file)
@@ -1017,7 +1017,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.  */