mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
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>
This commit is contained in:
parent
5e89144cbc
commit
8f2671d2cc
38 changed files with 885 additions and 751 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue