mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
build: Require latest released libraries
* agent/protect.c (OCB_MODE_SUPPORTED): Remove macro. (do_encryption): Always support OCB. (do_decryption): Ditto. (agent_unprotect): Ditto. * dirmngr/server.c (is_tor_running): Unconditionally build this. -- Although not technically required, it is easier to require them to avoid bug reports due to too old library versions. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
66b634f27f
commit
c98995efef
4 changed files with 12 additions and 40 deletions
|
@ -274,14 +274,12 @@ strcpy_escaped_plus (char *d, const unsigned char *s)
|
|||
}
|
||||
|
||||
|
||||
/* This fucntion returns true if a Tor server is running. The sattus
|
||||
/* This function returns true if a Tor server is running. The sattus
|
||||
is cached for the current conenction. */
|
||||
static int
|
||||
is_tor_running (ctrl_t ctrl)
|
||||
{
|
||||
#if ASSUAN_VERSION_NUMBER >= 0x020402
|
||||
/* Check whether we can connect to the proxy. We use a
|
||||
special feature introduced with libassuan 2.4.2. */
|
||||
/* Check whether we can connect to the proxy. */
|
||||
|
||||
if (!ctrl || !ctrl->server_local)
|
||||
return 0; /* Ooops. */
|
||||
|
@ -300,9 +298,6 @@ is_tor_running (ctrl_t ctrl)
|
|||
}
|
||||
}
|
||||
return (ctrl->server_local->tor_state > 0);
|
||||
#else /* Libassuan < 2.4.2 */
|
||||
return 0; /* We don't know. */
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue