[Pkg-gnupg-commit] [gnupg2] 40/241: dirmngr: Allow building with libassuan < 2.3.
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Wed Dec 9 20:31:51 UTC 2015
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch master
in repository gnupg2.
commit a79045e38d239a7f6e787cf7c1132772c737cc0e
Author: Neal H. Walfield <neal at g10code.com>
Date: Tue Oct 20 20:53:40 2015 +0200
dirmngr: Allow building with libassuan < 2.3.
* dirmngr/http.c (send_request): Use newer assuan function only if
available.
--
Signed-off-by: Neal H. Walfield <neal at g10code.com>
Regression-due-to: 4e42ad30
---
dirmngr/http.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dirmngr/http.c b/dirmngr/http.c
index c2a0431..1365ea1 100644
--- a/dirmngr/http.c
+++ b/dirmngr/http.c
@@ -1475,7 +1475,9 @@ send_request (http_t hd, const char *httphost, const char *auth,
{
int mode;
+#if ASSUAN_VERSION_NUMBER >= 0x020300 /* >= 2.3.0 */
if (assuan_sock_get_flag (ASSUAN_INVALID_FD, "tor-mode", &mode) || !mode)
+#endif
{
log_error ("TOR support is not available\n");
return gpg_err_make (default_errsource, GPG_ERR_NOT_IMPLEMENTED);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git
More information about the Pkg-gnupg-commit
mailing list