diff options
author | Werner Koch <wk@gnupg.org> | 2004-04-26 15:29:09 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2004-04-26 15:29:09 +0200 |
commit | 388218891b10daae07b07dee0ad0c10149413629 (patch) | |
tree | 79fe2053efa6c2616076dd68a8e69781120bde87 /sm/certlist.c | |
parent | 2004-04-26 Marcus Brinkmann <marcus@g10code.de> (diff) | |
download | gnupg2-388218891b10daae07b07dee0ad0c10149413629.tar.xz gnupg2-388218891b10daae07b07dee0ad0c10149413629.zip |
* call-agent.c (gpgsm_agent_pksign, gpgsm_agent_pkdecrypt)
(gpgsm_agent_genkey, gpgsm_agent_istrusted)
(gpgsm_agent_marktrusted, gpgsm_agent_havekey)
(gpgsm_agent_passwd): Add new arg CTRL and changed all callers.
(start_agent): New arg CTRL. Send progress item when starting a
new agent.
* sign.c (gpgsm_get_default_cert, get_default_signer): New arg
CTRL to be passed down to the agent function.
* decrypt.c (prepare_decryption): Ditto.
* certreqgen.c (proc_parameters, read_parameters): Ditto.
* certcheck.c (gpgsm_create_cms_signature): Ditto.
Diffstat (limited to 'sm/certlist.c')
-rw-r--r-- | sm/certlist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sm/certlist.c b/sm/certlist.c index 0394a584f..96acf90f7 100644 --- a/sm/certlist.c +++ b/sm/certlist.c @@ -245,7 +245,7 @@ gpgsm_add_cert_to_certlist (ctrl_t ctrl, ksba_cert_t cert, available for the certificate. IS_ENCRYPT_TO sets the corresponding flag in the new create LISTADDR item. */ int -gpgsm_add_to_certlist (CTRL ctrl, const char *name, int secret, +gpgsm_add_to_certlist (ctrl_t ctrl, const char *name, int secret, CERTLIST *listaddr, int is_encrypt_to) { int rc; @@ -342,7 +342,7 @@ gpgsm_add_to_certlist (CTRL ctrl, const char *name, int secret, p = gpgsm_get_keygrip_hexstring (cert); if (p) { - if (!gpgsm_agent_havekey (p)) + if (!gpgsm_agent_havekey (ctrl, p)) rc = 0; xfree (p); } |