gpg: Do not bail on an invalid packet in the local keyring.
authorWerner Koch <wk@gnupg.org>
Tue, 21 May 2019 15:27:42 +0000 (17:27 +0200)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Fri, 1 Jul 2022 16:06:43 +0000 (17:06 +0100)
commit73d8a68db173f4500d9458dc8c43095fb3e6c3b1
treec550b6e9a22bb701576892dd67e8154354047758
parentfcd5563d8c5a58b4f6bd4d67b289942996e7c394
gpg: Do not bail on an invalid packet in the local keyring.

* g10/keydb.c (parse_keyblock_image): Treat invalid packet special.
--

This is in particular useful to run --list-keys on a keyring with
corrupted packets.  The extra flush is to keep the diagnostic close to
the regular --list-key output.

Signed-off-by: Werner Koch <wk@gnupg.org>
This is a backport from master with support for the unsupported v5 key
handling.

(cherry picked from commit 30f44957ccd1433846709911798af3da4e437900)

Gbp-Pq: Topic from-2.2.16
Gbp-Pq: Name gpg-Do-not-bail-on-an-invalid-packet-in-the-local-keyring.patch
g10/keydb.c