aboutsummaryrefslogtreecommitdiffstats
path: root/agent/command.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2011-08-10 09:47:04 +0000
committerWerner Koch <[email protected]>2011-08-10 09:47:04 +0000
commit81389383a3169fe5130162dbb4cbc4bb0e806c3a (patch)
treef49d4a8904a4f2d7ea889c00cfb96041b27cf6f2 /agent/command.c
parentAdjust for signed integer passed to OpenPGP card decrypt. (diff)
downloadgnupg-81389383a3169fe5130162dbb4cbc4bb0e806c3a.tar.gz
gnupg-81389383a3169fe5130162dbb4cbc4bb0e806c3a.zip
Made the KILLAGENT and KILLSCD commands working again.
This requires that GnuPG is build with a newer version of Libassuan (2.0.3).
Diffstat (limited to 'agent/command.c')
-rw-r--r--agent/command.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/agent/command.c b/agent/command.c
index b03c786c1..4fbbfb56f 100644
--- a/agent/command.c
+++ b/agent/command.c
@@ -2259,7 +2259,12 @@ cmd_killagent (assuan_context_t ctx, char *line)
return set_error (GPG_ERR_NOT_SUPPORTED, "no --use-standard-socket");
ctrl->server_local->stopme = 1;
+#ifdef ASSUAN_FORCE_CLOSE
+ assuan_set_flag (ctx, ASSUAN_FORCE_CLOSE, 1);
+ return 0;
+#else
return gpg_error (GPG_ERR_EOF);
+#endif
}