aboutsummaryrefslogtreecommitdiffstats
path: root/g10/trustdb.c
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2004-01-20 16:09:38 +0000
committerDavid Shaw <[email protected]>2004-01-20 16:09:38 +0000
commit0fb284ac24a010e6029f01494f44ab907bb5e79b (patch)
tree0e883c0e947e7a8509ce7c37f776f5259abb2fa0 /g10/trustdb.c
parent* sig-check.c (check_key_signature2): Comments. (diff)
downloadgnupg-0fb284ac24a010e6029f01494f44ab907bb5e79b.tar.gz
gnupg-0fb284ac24a010e6029f01494f44ab907bb5e79b.zip
* g10.c (main), keydb.h, keydb.c (keydb_rebuild_caches), keyring.h,
keyring.c (keyring_rebuild_cache): Add "noisy" flag so cache rebuilds can remain noisy when called for itself, and quiet when called as part of the trustdb rebuild. * trustdb.c (validate_keys): Rebuild the sig caches before building the trustdb. Note that this is going to require some architectual re-thinking, as it is agonizingly slow.
Diffstat (limited to 'g10/trustdb.c')
-rw-r--r--g10/trustdb.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/g10/trustdb.c b/g10/trustdb.c
index 95d8c38c5..84212a3ce 100644
--- a/g10/trustdb.c
+++ b/g10/trustdb.c
@@ -1944,6 +1944,13 @@ validate_keys (int interactive)
KeyHashTable stored,used,full_trust;
u32 start_time, next_expire;
+ /* Make sure we have all sigs cached. TODO: This is going to
+ require some architectual re-thinking, as it is agonizingly slow.
+ Perhaps combine this with reset_trust_records(), or only check
+ the caches on keys that are actually involved in the web of
+ trust. */
+ keydb_rebuild_caches(0);
+
start_time = make_timestamp ();
next_expire = 0xffffffff; /* set next expire to the year 2106 */
stored = new_key_hash_table ();