Home GnuPG
Diffusion GnuPG c2cbe2f87c48

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

Unpublished Commit · Learn More

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

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

Provenance
wernerAuthored on Jan 9 2017, 10:11 AM
Parents
rG2baba11fad6d: doc: Update man page for watchgnupg
Branches
Unknown
Tags
Unknown