Commit Graph

5 Commits

Author SHA1 Message Date
Werner Koch 110b52fffa Improve libcurl detection.
* m4/libcurl.m4: Do not use AC_PATH_PROG if --with-libcurl as been
given.  Suggested by John Marshall.
--

GnuPG-bug-id: 1510
2013-08-06 10:31:54 +02:00
David Shaw 6b1f71055e Issue 1447: Pass proper Host header and SNI when SRV is used with curl.
* configure.ac: Check for inet_ntop.

* m4/libcurl.m4: Provide a #define for the version of the curl
  library.

* keyserver/gpgkeys_hkp.c (main, srv_replace): Call getaddrinfo() on
  each target.  Once we find one that resolves to an address (whether
  IPv4 or IPv6), pass it into libcurl via CURLOPT_RESOLVE using the
  SRV name as the "host".  Force the HTTP Host header to be the same.
2012-12-17 23:52:15 -05:00
Werner Koch 0137097fbb Fixed regression in libcurl.m4
Fixed lost hash sign introduced by previous change (2011-04-08).
Reported by John Marshall.
2011-09-12 15:33:37 +02:00
Werner Koch 60d8c901ce Fixed some autoconf bit rot.
Autoconf 2.68 is more picky about correct macro usage and thus I need
to fix some wrong call conventions for AC_LANG_PROGRAM.  Also factor
out an m4 conditional construct from AC_INIT to avoid the "not a
literal" warning.
2011-08-04 11:36:52 +02:00
David Shaw 6434e92379 Missing m4 macros 2006-08-27 15:33:56 +00:00