mirror of
git://git.gnupg.org/gnupg.git
synced 2025-04-13 22:21:09 +02:00
2004-08-18 Marcus Brinkmann <marcus@g10code.de>
* passphrase.c (agent_get_passphrase):
This commit is contained in:
parent
e5a6d2b456
commit
9d864ebef7
@ -1,3 +1,8 @@
|
|||||||
|
2004-08-18 Marcus Brinkmann <marcus@g10code.de>
|
||||||
|
|
||||||
|
* passphrase.c (agent_get_passphrase): Fix detection of gpg-agent
|
||||||
|
cancellation.
|
||||||
|
|
||||||
2004-07-01 Werner Koch <wk@gnupg.org>
|
2004-07-01 Werner Koch <wk@gnupg.org>
|
||||||
|
|
||||||
* card-util.c (change_login): Kludge to allow reading data from a
|
* card-util.c (change_login): Kludge to allow reading data from a
|
||||||
|
@ -862,9 +862,11 @@ agent_get_passphrase ( u32 *keyid, int mode, const char *tryagain_text,
|
|||||||
xfree (orig_codeset);
|
xfree (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