summaryrefslogtreecommitdiffstats
path: root/dirmngr/http.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2017-01-09 10:11:20 +0100
committerWerner Koch <wk@gnupg.org>2017-01-09 10:28:25 +0100
commitc2cbe2f87c480c62239dc4c2cbb352acd98cd267 (patch)
tree6b2e6e8c91a189e8dcd8c9aad6df5255f006a326 /dirmngr/http.h
parentdoc: Update man page for watchgnupg (diff)
downloadgnupg2-c2cbe2f87c480c62239dc4c2cbb352acd98cd267.tar.xz
gnupg2-c2cbe2f87c480c62239dc4c2cbb352acd98cd267.zip
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>
Diffstat (limited to 'dirmngr/http.h')
-rw-r--r--dirmngr/http.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/dirmngr/http.h b/dirmngr/http.h
index 2a36fdaa8..32556a4e0 100644
--- a/dirmngr/http.h
+++ b/dirmngr/http.h
@@ -53,6 +53,7 @@ struct parsed_uri_s
unsigned int opaque:1;/* Unknown scheme; PATH has the rest. */
unsigned int v6lit:1; /* Host was given as a literal v6 address. */
unsigned int onion:1; /* .onion address given. */
+ unsigned int explicit_port :1; /* The port was explicitly specified. */
char *auth; /* username/password for basic auth. */
char *host; /* Host (converted to lowercase). */
unsigned short port; /* Port (always set if the host is set). */