Home GnuPG
Diffusion GnuPG 28ae8ad70b3b

gpg: Fix --rebuild-keydb-caches.
28ae8ad70b3bUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

gpg: Fix --rebuild-keydb-caches.

* g10/parse-packet.c (parse_key): Store even unsupported packet
versions.
* g10/keyring.c (keyring_rebuild_cache): Do not copy keys with
versions less than 4.

That function, which is implicitly called while checking the keydb, led
to corruption of v3 key packets in the keyring which would later spit
out "packet(6)too short" messages.

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Oct 31 2014, 10:29 AM
Parents
rG433208a55366: gpg: Fix testing for secret key availability.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rG28ae8ad70b3b: gpg: Fix --rebuild-keydb-caches. (authored by Werner Koch <wk@gnupg.org>).Oct 31 2014, 10:31 AM