mirror of
git://git.gnupg.org/gnupg.git
synced 2025-05-24 16:43:28 +02:00
2004-08-18 Marcus Brinkmann <marcus@g10code.de>
* passphrase.c (agent_get_passphrase):
This commit is contained in:
parent
5d98f7afe5
commit
75ac082a76
@ -1,3 +1,8 @@
|
|||||||
|
2004-08-18 Marcus Brinkmann <marcus@g10code.de>
|
||||||
|
|
||||||
|
* passphrase.c (agent_get_passphrase): Fix detection of gpg-agent
|
||||||
|
cancellation.
|
||||||
|
|
||||||
2004-08-08 David Shaw <dshaw@jabberwocky.com>
|
2004-08-08 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
* plaintext.c (handle_plaintext): Bigger buffer for extra safety.
|
* plaintext.c (handle_plaintext): Bigger buffer for extra safety.
|
||||||
|
@ -868,9 +868,11 @@ agent_get_passphrase ( u32 *keyid, int mode, const char *tryagain_text,
|
|||||||
m_free (orig_codeset);
|
m_free (orig_codeset);
|
||||||
return pw;
|
return pw;
|
||||||
}
|
}
|
||||||
else if (nread > 7 && !memcmp (pw, "ERR 111", 7)
|
else if (nread > 4 && !memcmp (pw, "ERR ", 4)
|
||||||
&& (pw[7] == ' ' || pw[7] == '\n') )
|
&& (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") );
|
log_info (_("cancelled by user\n") );
|
||||||
if (canceled)
|
if (canceled)
|
||||||
*canceled = 1;
|
*canceled = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user