mirror of
git://git.gnupg.org/gnupg.git
synced 2024-11-04 20:38:50 +01:00
Return cancel flag also for the old agent protocol.
This commit is contained in:
parent
ed16a85de8
commit
5ee4951f28
@ -772,7 +772,11 @@ agent_get_passphrase ( u32 *keyid, int mode, const char *tryagain_text,
|
||||
return pw;
|
||||
}
|
||||
else if ( reply == GPGA_PROT_CANCELED )
|
||||
log_info ( _("cancelled by user\n") );
|
||||
{
|
||||
log_info ( _("cancelled by user\n") );
|
||||
if (canceled)
|
||||
*canceled = 1;
|
||||
}
|
||||
else
|
||||
log_error ( _("problem with the agent: agent returns 0x%lx\n"),
|
||||
(ulong)reply );
|
||||
|
Loading…
Reference in New Issue
Block a user