diff options
author | Werner Koch <[email protected]> | 2011-08-10 09:47:04 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2011-08-10 09:47:04 +0000 |
commit | 81389383a3169fe5130162dbb4cbc4bb0e806c3a (patch) | |
tree | f49d4a8904a4f2d7ea889c00cfb96041b27cf6f2 /scd/command.c | |
parent | Adjust for signed integer passed to OpenPGP card decrypt. (diff) | |
download | gnupg-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 'scd/command.c')
-rw-r--r-- | scd/command.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scd/command.c b/scd/command.c index a579b24eb..9bb500523 100644 --- a/scd/command.c +++ b/scd/command.c @@ -1862,7 +1862,15 @@ cmd_killscd (assuan_context_t ctx, char *line) (void)line; ctrl->server_local->stopme = 1; +#ifdef ASSUAN_FORCE_CLOSE + assuan_set_flag (ctx, ASSUAN_FORCE_CLOSE, 1); + return 0; +#else + /* Actually returning an EOF does not anymore work with modern + Libassuan versions. However we keep that non working code until + we make a Libassuan with the force close flag a requirement. */ return gpg_error (GPG_ERR_EOF); +#endif } |