diff options
author | Justus Winter <[email protected]> | 2016-07-25 10:41:28 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2016-07-25 10:50:35 +0000 |
commit | 4ba11251aff578394000bf480f47160f0879c763 (patch) | |
tree | 5e5b60e8614f61b88514d4682c37c461d23fa019 /common/exectool.c | |
parent | gpgscm: Make function more general. (diff) | |
download | gnupg-4ba11251aff578394000bf480f47160f0879c763.tar.gz gnupg-4ba11251aff578394000bf480f47160f0879c763.zip |
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 <[email protected]>
Diffstat (limited to 'common/exectool.c')
0 files changed, 0 insertions, 0 deletions