1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-01-03 12:11:33 +01:00
Justus Winter 4ba11251af g10: Fix key import statistics.
'transfer_secret_keys' collects statistics on a subkey-basis, while
the other code does not.  This leads to inflated numbers when
importing secret keys.  E.g. 'count' is incremented by the main
parsing loop in 'import', and again in 'transfer_secret_keys', leading
to a total of 3 if one key with two secret subkeys is imported.

* g10/import.c (import_secret_one): Adjust to the fact that
'transfer_secret_keys' collects subkey statistics.
* tests/openpgp/Makefile.am (TESTS): Add new test.
* tests/openpgp/issue2346.scm: New file.
* tests/openpgp/samplekeys/issue2346.gpg: Likewise.

GnuPG-bug-id: 2346
Signed-off-by: Justus Winter <justus@g10code.com>
2016-07-25 12:50:35 +02:00
..
2016-07-13 13:31:12 +02:00
2016-06-30 18:50:16 +02:00
2016-02-14 14:46:30 +01:00
2014-10-31 14:21:34 +01:00
2016-07-13 13:31:12 +02:00
2007-07-04 19:49:40 +00:00
2014-11-13 12:01:42 +01:00
2015-02-04 09:15:34 +01:00
2015-02-04 09:15:34 +01:00
2016-07-25 12:50:35 +02:00
2016-06-30 18:50:16 +02:00
2016-06-30 15:28:42 +02:00
2016-07-01 14:16:18 +02:00
2016-06-30 15:31:37 +02:00
2016-01-22 10:54:10 +01:00
2016-06-28 15:56:48 +09:00
2016-07-13 13:31:12 +02:00
2016-06-30 11:45:13 +02:00
2008-12-12 08:54:50 +00:00
2016-05-11 19:27:03 +09:00
2016-07-13 13:31:12 +02:00
2016-06-28 18:21:50 +02:00
2016-06-28 18:21:50 +02:00
2016-03-08 14:08:49 +01:00
2016-07-01 09:47:48 +02:00
2016-05-03 11:26:06 +02:00
2016-06-30 18:50:16 +02:00
2016-07-21 18:22:18 +02:00
2016-07-01 12:48:57 +02:00
2014-01-29 17:45:05 +01:00