summaryrefslogtreecommitdiffstats
path: root/g10/call-agent.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2010-10-13 17:57:08 +0200
committerWerner Koch <wk@gnupg.org>2010-10-13 17:57:08 +0200
commit54591341a417ca769b2219a9b2f7683f11a74718 (patch)
treed4cd49932dec93aa9e20e1933ad16ba897965c46 /g10/call-agent.c
parentDescribe %v and %V. (diff)
downloadgnupg2-54591341a417ca769b2219a9b2f7683f11a74718.tar.xz
gnupg2-54591341a417ca769b2219a9b2f7683f11a74718.zip
More agent support for gpg.
Diffstat (limited to 'g10/call-agent.c')
-rw-r--r--g10/call-agent.c6
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);
+
}
}