summaryrefslogtreecommitdiffstats
path: root/g10/parse-packet.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2011-07-18 10:57:33 +0200
committerWerner Koch <wk@gnupg.org>2011-07-18 10:57:33 +0200
commita74d5e355037f9445de39b21eef3e429749e5365 (patch)
treebf7df230116d6d92b80aad1b89da985a5f29eeaa /g10/parse-packet.c
parentClarify documentation of --keyid-format. (diff)
downloadgnupg2-a74d5e355037f9445de39b21eef3e429749e5365.tar.xz
gnupg2-a74d5e355037f9445de39b21eef3e429749e5365.zip
Print decoded S2K count in --list-packets mode.
Fixes bug#1355.
Diffstat (limited to '')
-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)