diff options
author | Marcus Brinkmann <mb@g10code.com> | 2009-04-14 22:36:14 +0200 |
---|---|---|
committer | Marcus Brinkmann <mb@g10code.com> | 2009-04-14 22:36:14 +0200 |
commit | 6763dd76e0fad20a6dada07ba7b0c1cc8d61ee0a (patch) | |
tree | cb0eead4d1918ab850a473abf4c3ca947637e09f /agent/call-pinentry.c | |
parent | Make gpgv error message about a missing keyring more useful. This fixes (diff) | |
download | gnupg2-6763dd76e0fad20a6dada07ba7b0c1cc8d61ee0a.tar.xz gnupg2-6763dd76e0fad20a6dada07ba7b0c1cc8d61ee0a.zip |
2009-04-14 Marcus Brinkmann <marcus@g10code.de>
* call-pinentry.c (agent_get_confirmation): Try SETNOTOK command
with pinentry.
Diffstat (limited to '')
-rw-r--r-- | agent/call-pinentry.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/agent/call-pinentry.c b/agent/call-pinentry.c index c840bb68d..38561e3e8 100644 --- a/agent/call-pinentry.c +++ b/agent/call-pinentry.c @@ -870,9 +870,15 @@ agent_get_confirmation (ctrl_t ctrl, } if (cancel) { - snprintf (line, DIM(line)-1, "SETCANCEL %s", cancel); + snprintf (line, DIM(line)-1, "SETNOTOK %s", cancel); line[DIM(line)-1] = 0; rc = assuan_transact (entry_ctx, line, NULL, NULL, NULL, NULL, NULL, NULL); + if (gpg_err_code (rc) == GPG_ERR_ASS_UNKNOWN_CMD) + { + snprintf (line, DIM(line)-1, "SETCANCEL %s", cancel); + line[DIM(line)-1] = 0; + rc = assuan_transact (entry_ctx, line, NULL, NULL, NULL, NULL, NULL, NULL); + } if (rc) return unlock_pinentry (rc); } |