1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

Made the KILLAGENT and KILLSCD commands working again.

This requires that GnuPG is build with a newer version of Libassuan
(2.0.3).
This commit is contained in:
Werner Koch 2011-08-10 11:47:04 +02:00
parent 14e0b60efd
commit 81389383a3
4 changed files with 20 additions and 0 deletions

View file

@ -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
}