mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01:00
Require Libassuan 2.0.3
* configure.ac: Require Libassuan 2.0.3. * agent/call-scd.c (ASSUAN_CONVEY_COMMENTS): Remove macro replacement. * agent/command.c (cmd_killagent) [ASSUAN_FORCE_CLOSE]: Remove dependency. (cmd_killagent) [ASSUAN_FORCE_CLOSE]: Ditto. * scd/command.c (cmd_killscd) [ASSUAN_FORCE_CLOSE]: Ditto.
This commit is contained in:
parent
07f20f313a
commit
366512abe4
@ -45,15 +45,6 @@
|
||||
#define MAX_OPEN_FDS 20
|
||||
#endif
|
||||
|
||||
/* This Assuan flag is only available since libassuan 2.0.2. Because
|
||||
comments lines are comments anyway we can use a replacement which
|
||||
might not do anything. assuan_{g,s}et_flag don't return an error
|
||||
thus there won't be any ABI problem. */
|
||||
#ifndef ASSUAN_CONVEY_COMMENTS
|
||||
#define ASSUAN_CONVEY_COMMENTS 4
|
||||
#endif
|
||||
|
||||
|
||||
/* Definition of module local data of the CTRL structure. */
|
||||
struct scd_local_s
|
||||
{
|
||||
|
@ -2310,12 +2310,8 @@ 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
|
||||
}
|
||||
|
||||
|
||||
|
@ -46,7 +46,7 @@ NEED_LIBGCRYPT_API=1
|
||||
NEED_LIBGCRYPT_VERSION=1.5.0
|
||||
|
||||
NEED_LIBASSUAN_API=2
|
||||
NEED_LIBASSUAN_VERSION=2.0.0
|
||||
NEED_LIBASSUAN_VERSION=2.0.3
|
||||
|
||||
NEED_KSBA_API=1
|
||||
NEED_KSBA_VERSION=1.2.0
|
||||
|
@ -1936,15 +1936,8 @@ 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
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user