mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
2009-04-14 Marcus Brinkmann <marcus@g10code.de>
* call-pinentry.c (agent_get_confirmation): Try SETNOTOK command with pinentry.
This commit is contained in:
parent
7c98dad98e
commit
6763dd76e0
2 changed files with 12 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue