Home GnuPG
Diffusion GnuPG f2f12f41efe5

Fix issue 1446: honor ports given in SRV responses.
f2f12f41efe5Unpublished

Unpublished Commit · Learn More

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

Description

Fix issue 1446: honor ports given in SRV responses.

* common/http.c (send_request, connect_server, http_open): Use a
  struct srv instead of a single srvtag so we can pass the chosen host
  and port back to the caller.
  (connect_server): Use the proper port in the HAVE_GETADDRINFO case.
* keyserver/curl-shim.c (curl_easy_perform): Use struct srv and log
  chosen host and port.
* keyserver/gpgkeys_hkp.c (main): Properly take the port given by SRV.

Backported from ba9e974f1fd85b3dbbfb5e26d7a14f71d07c7cf2

Details

Provenance
dshawAuthored on Dec 19 2012, 3:58 AM
Parents
rG3a51d501b915: .gitignore: Add cruft from other branches.
Branches
Unknown
Tags
Unknown

Event Timeline

David Shaw <dshaw@jabberwocky.com> committed rGf2f12f41efe5: Fix issue 1446: honor ports given in SRV responses. (authored by David Shaw <dshaw@jabberwocky.com>).Dec 19 2012, 3:58 AM
werner mentioned this in Unknown Object (Maniphest Task).Mar 27 2017, 5:06 PM
werner mentioned this in Unknown Object (Maniphest Task).Mar 27 2017, 5:29 PM