Home GnuPG
Diffusion GnuPG 6b1f71055eba

Issue 1447: Pass proper Host header and SNI when SRV is used with curl.
6b1f71055ebaUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

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.

Details

Provenance
dshawAuthored on Dec 18 2012, 5:52 AM
Parents
rGcbe98b2cb1e4: Part of issue 1447: Pass proper Host header when SRV is used.
Branches
Unknown
Tags
Unknown