From bfbd80feb95fba36292cd9dab43016f17b1e6972 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 1 Oct 2010 20:33:53 +0000 Subject: Exporting secret keys via gpg-agent is now basically supported. A couple of forward ported changes. Doc updates. --- agent/pksign.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'agent/pksign.c') diff --git a/agent/pksign.c b/agent/pksign.c index d31a687ce..12f4420be 100644 --- a/agent/pksign.c +++ b/agent/pksign.c @@ -255,7 +255,9 @@ agent_pksign_do (ctrl_t ctrl, const char *cache_nonce, rc = agent_key_from_file (ctrl, cache_nonce, desc_text, ctrl->keygrip, &shadow_info, cache_mode, lookup_ttl, - &s_skey); + &s_skey, NULL); + if (gpg_err_code (rc) == GPG_ERR_FULLY_CANCELED) + rc = gpg_err_make (gpg_err_source (rc), GPG_ERR_CANCELED); if (rc) { log_error ("failed to read the secret key\n"); -- cgit v1.2.3