aboutsummaryrefslogtreecommitdiffstats
path: root/g10/keydb.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/keydb.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/keydb.c')
-rw-r--r--g10/keydb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/g10/keydb.c b/g10/keydb.c
index c67c36110..ab0c1463e 100644
--- a/g10/keydb.c
+++ b/g10/keydb.c
@@ -597,7 +597,7 @@ keydb_locate_writable (KEYDB_HANDLE hd, const char *reserved)
* Rebuild the caches of all key resources.
*/
void
-keydb_rebuild_caches (void)
+keydb_rebuild_caches (int noisy)
{
int i, rc;
@@ -610,7 +610,7 @@ keydb_rebuild_caches (void)
case KEYDB_RESOURCE_TYPE_NONE: /* ignore */
break;
case KEYDB_RESOURCE_TYPE_KEYRING:
- rc = keyring_rebuild_cache (all_resources[i].token);
+ rc = keyring_rebuild_cache (all_resources[i].token,noisy);
if (rc)
log_error (_("failed to rebuild keyring cache: %s\n"),
g10_errstr (rc));