mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-25 15:27:03 +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;
|
return pw;
|
||||||
}
|
}
|
||||||
else if ( reply == GPGA_PROT_CANCELED )
|
else if ( reply == GPGA_PROT_CANCELED )
|
||||||
log_info ( _("cancelled by user\n") );
|
{
|
||||||
|
log_info ( _("cancelled by user\n") );
|
||||||
|
if (canceled)
|
||||||
|
*canceled = 1;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
log_error ( _("problem with the agent: agent returns 0x%lx\n"),
|
log_error ( _("problem with the agent: agent returns 0x%lx\n"),
|
||||||
(ulong)reply );
|
(ulong)reply );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user