Diffusion GnuPG c2cbe2f87c48

dirmngr: Do not use a SRV record for HKP if a port was specified.

Authored by werner on Jan 9 2017, 10:11 AM.

Description

dirmngr: Do not use a SRV record for HKP if a port was specified.

* dirmngr/http.h (parsed_uri_s): Add field EXPLICIT_PORT.
* dirmngr/http.c (do_parse_uri): That it.
* dirmngr/ks-engine-hkp.c (map_host): Add arg NO_SRV.
(make_host_part): Ditto.
(ks_hkp_resolve): Set NO_SRV from EXPLICIT_PORT.
(ks_hkp_search): Ditto.
(ks_hkp_get): Ditto.
(ks_hkp_put): Ditto.

This implements the behaviour of the keyserver helpers from 1.4 and
2.0.

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Committed
wernerJan 9 2017, 10:28 AM
Parents
rG2baba11fad6d: doc: Update man page for watchgnupg
Branches
Unknown
Tags
Unknown
Werner Koch <wk@gnupg.org> committed rGc2cbe2f87c48: dirmngr: Do not use a SRV record for HKP if a port was specified. (authored by Werner Koch <wk@gnupg.org>).Jan 9 2017, 10:28 AM
werner mentioned this in Unknown Object (Maniphest Task).Mar 27 2017, 5:11 PM
werner mentioned this in Unknown Object (Maniphest Task).Mar 27 2017, 5:34 PM