mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +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
|
@ -1404,7 +1404,7 @@ write_keyblock (IOBUF fp, KBNODE keyblock)
|
|||
* This is only done for the public keyrings.
|
||||
*/
|
||||
int
|
||||
keyring_rebuild_cache (void *token,int noisy)
|
||||
keyring_rebuild_cache (ctrl_t ctrl, void *token, int noisy)
|
||||
{
|
||||
KEYRING_HANDLE hd;
|
||||
KEYDB_SEARCH_DESC desc;
|
||||
|
@ -1521,7 +1521,7 @@ keyring_rebuild_cache (void *token,int noisy)
|
|||
|| openpgp_pk_test_algo(sig->pubkey_algo)))
|
||||
sig->flags.checked=sig->flags.valid=0;
|
||||
else
|
||||
check_key_signature (keyblock, node, NULL);
|
||||
check_key_signature (ctrl, keyblock, node, NULL);
|
||||
|
||||
sigcount++;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue