diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2023-04-28 17:06:00 -0700 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2023-04-29 07:42:23 +0200 |
commit | fa0b0339c6e4dfde64fb6a6ce1cc68c3d071a889 (patch) | |
tree | d2ef34ceee0d82889106bac1fcef8090d9b038a1 /tests/test_compression.py | |
parent | d3c35b865f1800df33b7976c5a7c79e939e213b5 (diff) | |
download | gemato-fa0b0339c6e4dfde64fb6a6ce1cc68c3d071a889.tar.gz |
gemato/openpgp: correctly handle duplicate keys vs unexpected keys
The old code path had a subtle behavior bug: if an expected key appeared
twice in data from a WKD URL, it was then removed entirely.
This happened at one point due to a GPG behavior: when using --export,
if --keyring is passed twice, with different keyrings, but those
keyrings both contain the key being exported (possibly with
different signatures), then the export output will have duplicates of
PGP packets present in both keyrings (e.g. UID).
To avoid this, defer the removal of unexpected keys until the main
import is completed.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Closes: https://github.com/projg2/gemato/pull/32
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'tests/test_compression.py')
0 files changed, 0 insertions, 0 deletions