From 5ee4951f28624160b522c4a2e3d71608f4898298 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 10 Apr 2003 08:51:29 +0000 Subject: [PATCH] Return cancel flag also for the old agent protocol. --- g10/passphrase.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/g10/passphrase.c b/g10/passphrase.c index fc2414ca3..a736deba8 100644 --- a/g10/passphrase.c +++ b/g10/passphrase.c @@ -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 );