mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
2004-08-18 Marcus Brinkmann <marcus@g10code.de>
* passphrase.c (agent_get_passphrase):
This commit is contained in:
parent
5d98f7afe5
commit
75ac082a76
2 changed files with 10 additions and 3 deletions
|
@ -868,9 +868,11 @@ agent_get_passphrase ( u32 *keyid, int mode, const char *tryagain_text,
|
|||
m_free (orig_codeset);
|
||||
return pw;
|
||||
}
|
||||
else if (nread > 7 && !memcmp (pw, "ERR 111", 7)
|
||||
&& (pw[7] == ' ' || pw[7] == '\n') )
|
||||
{
|
||||
else if (nread > 4 && !memcmp (pw, "ERR ", 4)
|
||||
&& (0xffff & strtoul (&pw[4], NULL, 0)) == 99)
|
||||
{
|
||||
/* 99 is GPG_ERR_CANCELED. FIXME: Check tail and overflow,
|
||||
and use gpg-error. */
|
||||
log_info (_("cancelled by user\n") );
|
||||
if (canceled)
|
||||
*canceled = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue