diff options
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); + } } |