aboutsummaryrefslogtreecommitdiffstats
path: root/sm/export.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2004-04-26 13:29:09 +0000
committerWerner Koch <[email protected]>2004-04-26 13:29:09 +0000
commit388218891b10daae07b07dee0ad0c10149413629 (patch)
tree79fe2053efa6c2616076dd68a8e69781120bde87 /sm/export.c
parent2004-04-26 Marcus Brinkmann <[email protected]> (diff)
downloadgnupg-388218891b10daae07b07dee0ad0c10149413629.tar.gz
gnupg-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/export.c')
-rw-r--r--sm/export.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sm/export.c b/sm/export.c
index 8a89110de..2b675bdd7 100644
--- a/sm/export.c
+++ b/sm/export.c
@@ -392,7 +392,7 @@ gpgsm_p12_export (ctrl_t ctrl, const char *name, FILE *fp)
}
keygrip = gpgsm_get_keygrip_hexstring (cert);
- if (!keygrip || gpgsm_agent_havekey (keygrip))
+ if (!keygrip || gpgsm_agent_havekey (ctrl, keygrip))
{
/* Note, that the !keygrip case indicates a bad certificate. */
rc = gpg_error (GPG_ERR_NO_SECKEY);