mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
* trustdb.c (validate_keys): Reset the trustdb before checking if we have
any ultimately trusted keys. This ensures that if we lose all our ultimately trusted keys, we don't leave behind the old validity calculations.
This commit is contained in:
parent
5dc9a30878
commit
60cdcf61f5
2 changed files with 11 additions and 4 deletions
|
@ -1636,6 +1636,10 @@ validate_keys (int interactive)
|
|||
stored = new_key_hash_table ();
|
||||
used = new_key_hash_table ();
|
||||
full_trust = new_key_hash_table ();
|
||||
|
||||
kdb = keydb_new (0);
|
||||
reset_trust_records (kdb,NULL);
|
||||
|
||||
/* Fixme: Instead of always building a UTK list, we could just build it
|
||||
* here when needed */
|
||||
if (!utk_list)
|
||||
|
@ -1644,10 +1648,6 @@ validate_keys (int interactive)
|
|||
goto leave;
|
||||
}
|
||||
|
||||
kdb = keydb_new (0);
|
||||
|
||||
reset_trust_records (kdb,NULL);
|
||||
|
||||
/* mark all UTKs as used and fully_trusted and set validity to
|
||||
ultimate */
|
||||
for (k=utk_list; k; k = k->next)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue