dirmngr: Honor ports specified in SRV records.
authorJustus Winter <justus@g10code.com>
Thu, 19 Nov 2015 14:03:30 +0000 (15:03 +0100)
committerJustus Winter <justus@g10code.com>
Mon, 23 Nov 2015 13:00:48 +0000 (14:00 +0100)
commit73c1a86ad937d7be027eece991c69aaeb6a1f092
tree2afb8b9b031889d355a3d838d656db6beccf3769
parentc9f5aa15793b3c05c1b92af401b23ab34d3e6196
dirmngr: Honor ports specified in SRV records.

* dirmngr/ks-engine-hkp.c (struct hostinfo_s): New field 'port'.
(create_new_hostinfo): Initialize 'port'.
(add_host): Add host parameter and update the hosttable entry.
(map_host): Return port if known, adjust calls to 'add_host'.
(make_host_part): Let 'map_host' specify the port if known.

Signed-off-by: Justus Winter <justus@g10code.com>
dirmngr/ks-engine-hkp.c