diff options
author | Werner Koch <wk@gnupg.org> | 2011-07-18 10:57:33 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2011-07-18 10:57:33 +0200 |
commit | a74d5e355037f9445de39b21eef3e429749e5365 (patch) | |
tree | bf7df230116d6d92b80aad1b89da985a5f29eeaa /g10/parse-packet.c | |
parent | Clarify documentation of --keyid-format. (diff) | |
download | gnupg2-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.c | 3 |
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) |