Home GnuPG
Diffusion GnuPG ad9befab1237

gpg: Correctly handle keyblocks followed by legacy keys.
ad9befab1237Unpublished

Unpublished Commit ยท Learn More

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

Description

gpg: Correctly handle keyblocks followed by legacy keys.

* g10/keyring.c (keyring_get_keyblock): If we encounter a legacy
packet after already having some non-legacy packets, then treat the
legacy packet as a keyblock boundary, not as part of the keyblock.
* g10/t-keydb-get-keyblock.c: New file.
* g10/t-keydb-get-keyblock.gpg: New file.
* g10/Makefile.am (EXTRA_DIST): Add t-keydb-get-keyblock.gpg.
(module_tests): Add t-keydb-get-keyblock.
(t_keydb_get_keyblock_SOURCES): New variable.
(t_keydb_get_keyblock_LDADD): Likewise.
  • Signed-off-by: Neal H. Walfield
  • GnuPG-bug-id: T2151

Details

Provenance
Neal H. Walfield <neal@g10code.com>Authored on Nov 17 2015, 12:55 PM
Parents
rG8f6099ac5105: gpg: Add some debugging output.
Branches
Unknown
Tags
Unknown

Event Timeline

Neal H. Walfield <neal@g10code.com> committed rGad9befab1237: gpg: Correctly handle keyblocks followed by legacy keys. (authored by Neal H. Walfield <neal@g10code.com>).Nov 17 2015, 2:53 PM
neal mentioned this in Unknown Object (Maniphest Task).Mar 27 2017, 5:08 PM
neal mentioned this in Unknown Object (Maniphest Task).Mar 27 2017, 5:31 PM