diff options
author | Werner Koch <wk@gnupg.org> | 2017-03-31 20:03:52 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2017-03-31 20:07:20 +0200 |
commit | 8f2671d2cc022af2f564e296bdeb3bb2d2734ef4 (patch) | |
tree | 0a5dfac0bb36cf364e313b000967863e42783793 /g10/keydb.c | |
parent | gpg: Consistent use of preprocessor conditionals. (diff) | |
download | gnupg2-8f2671d2cc022af2f564e296bdeb3bb2d2734ef4.tar.xz gnupg2-8f2671d2cc022af2f564e296bdeb3bb2d2734ef4.zip |
gpg: Pass CTRL to many more functions.
--
For proper operations as a server we need to avoid global variables.
Thus we need to pass the session state CTRL to most functions. Quite
a lot of changes but fortunately straightforward to do.
Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'g10/keydb.c')
-rw-r--r-- | g10/keydb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/g10/keydb.c b/g10/keydb.c index b255c3fff..5479a2aa9 100644 --- a/g10/keydb.c +++ b/g10/keydb.c @@ -1674,7 +1674,7 @@ keydb_locate_writable (KEYDB_HANDLE hd) /* Rebuild the on-disk caches of all key resources. */ void -keydb_rebuild_caches (int noisy) +keydb_rebuild_caches (ctrl_t ctrl, int noisy) { int i, rc; @@ -1687,7 +1687,7 @@ keydb_rebuild_caches (int noisy) case KEYDB_RESOURCE_TYPE_NONE: /* ignore */ break; case KEYDB_RESOURCE_TYPE_KEYRING: - rc = keyring_rebuild_cache (all_resources[i].token,noisy); + rc = keyring_rebuild_cache (ctrl, all_resources[i].token,noisy); if (rc) log_error (_("failed to rebuild keyring cache: %s\n"), gpg_strerror (rc)); |