aboutsummaryrefslogtreecommitdiffstats
path: root/g10/keylist.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2017-04-07 08:11:07 +0000
committerWerner Koch <[email protected]>2017-04-07 08:13:09 +0000
commit547bc01d57528ecc27b3b5e16797967a7f88fecf (patch)
treed9045b7a9e0fc6b08bf464b7ee7fe34ad6e47811 /g10/keylist.c
parentscd: Internal CCID reader cleanup. (diff)
downloadgnupg-547bc01d57528ecc27b3b5e16797967a7f88fecf.tar.gz
gnupg-547bc01d57528ecc27b3b5e16797967a7f88fecf.zip
gpg: Fix printing of offline taken subkey.
* g10/keylist.c (list_keyblock_print): Set SECRET to 2 and not 0x32. -- Reported-by: Danielle McLean <[email protected]> Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'g10/keylist.c')
-rw-r--r--g10/keylist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/keylist.c b/g10/keylist.c
index 2b6ee9f06..c75856f5f 100644
--- a/g10/keylist.c
+++ b/g10/keylist.c
@@ -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. */