aboutsummaryrefslogtreecommitdiffstats
path: root/g10/parse-packet.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2011-07-18 08:57:33 +0000
committerWerner Koch <[email protected]>2011-07-18 08:57:33 +0000
commita74d5e355037f9445de39b21eef3e429749e5365 (patch)
treebf7df230116d6d92b80aad1b89da985a5f29eeaa /g10/parse-packet.c
parentClarify documentation of --keyid-format. (diff)
downloadgnupg-a74d5e355037f9445de39b21eef3e429749e5365.tar.gz
gnupg-a74d5e355037f9445de39b21eef3e429749e5365.zip
Print decoded S2K count in --list-packets mode.
Fixes bug#1355.
Diffstat (limited to 'g10/parse-packet.c')
-rw-r--r--g10/parse-packet.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/g10/parse-packet.c b/g10/parse-packet.c
index 50786eb08..9c0436231 100644
--- a/g10/parse-packet.c
+++ b/g10/parse-packet.c
@@ -2152,7 +2152,8 @@ parse_key (IOBUF inp, int pkttype, unsigned long pktlen,
ski->s2k.count = iobuf_get (inp);
pktlen--;
if (list_mode)
- es_fprintf (listfp, "\tprotect count: %lu\n",
+ es_fprintf (listfp, "\tprotect count: %lu (%lu)\n",
+ (ulong)S2K_DECODE_COUNT ((ulong)ski->s2k.count),
(ulong) ski->s2k.count);
}
else if (ski->s2k.mode == 1002)