diff options
author | Werner Koch <wk@gnupg.org> | 2010-10-13 17:57:08 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2010-10-13 17:57:08 +0200 |
commit | 54591341a417ca769b2219a9b2f7683f11a74718 (patch) | |
tree | d4cd49932dec93aa9e20e1933ad16ba897965c46 /g10/call-agent.c | |
parent | Describe %v and %V. (diff) | |
download | gnupg2-54591341a417ca769b2219a9b2f7683f11a74718.tar.xz gnupg2-54591341a417ca769b2219a9b2f7683f11a74718.zip |
More agent support for gpg.
Diffstat (limited to 'g10/call-agent.c')
-rw-r--r-- | g10/call-agent.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/g10/call-agent.c b/g10/call-agent.c index bdf4c9589..afbd9d6db 100644 --- a/g10/call-agent.c +++ b/g10/call-agent.c @@ -99,6 +99,7 @@ status_sc_op_failure (int rc) case 0: break; case GPG_ERR_CANCELED: + case GPG_ERR_FULLY_CANCELED: write_status_text (STATUS_SC_OP_FAILURE, "1"); break; case GPG_ERR_BAD_PIN: @@ -142,6 +143,11 @@ start_agent (ctrl_t ctrl, int for_card) agents. */ assuan_transact (agent_ctx, "OPTION allow-pinentry-notify", NULL, NULL, NULL, NULL, NULL, NULL); + /* Tell the agent about what version we are aware. This is + here used to indirectly enable GPG_ERR_FULLY_CANCELED. */ + assuan_transact (agent_ctx, "OPTION agent-awareness=2.1.0", + NULL, NULL, NULL, NULL, NULL, NULL); + } } |