Home GnuPG
Diffusion GnuPG a02f3cc4e870

gpg: Fix validity of re-imported keys.

Description

gpg: Fix validity of re-imported keys.

* g10/trustdb.c (tdb_clear_ownertrusts): Detect stale validity
records.

This problem was introduced by an actually very useful patch

2002-12-13  David Shaw  <dshaw@jabberwocky.com>
[...]
* import.c (import_keys_internal): Used here so we don't rebuild
the trustdb if it is still clean.
(import_one, chk_self_sigs): Only mark trustdb dirty if the key
that is being imported has any sigs other than self-sigs.
Suggested by Adrian von Bidder.

[the last part]

The bug exhibited itself only after signing a key, deleting that key
and then re-importing the original non-signed key.

Details

Provenance
wernerAuthored on Sep 6 2023, 12:09 PM
Parents
rG0aa32e2429bb: dirmngr: Allow conf files to disable default keyservers.
Branches
Unknown
Tags
Unknown
Tasks
T6399: Missing trustdb check on import of certificate