dirmngr: Fix URL creation for literal IPv6 addresses in HKP.
authorWerner Koch <wk@gnupg.org>
Thu, 12 Jan 2017 20:09:42 +0000 (21:09 +0100)
committerWerner Koch <wk@gnupg.org>
Mon, 16 Jan 2017 18:12:03 +0000 (19:12 +0100)
commit82646bbf1a5a7d745da81b239a12667a51703dc1
treebd25864eaed8b809c77a858fa21e44c09ecc4fdb
parent8b1611a9605b636db3e07a9d81016a11b318724c
dirmngr: Fix URL creation for literal IPv6 addresses in HKP.

* dirmngr/dns-stuff.c (is_ip_address): Make the return value depend on
the address family.
* dirmngr/ks-engine-hkp.c (map_host): Rename arg R_POOLNAME to
R_HTTPHOST because that is its purpose.  Note that the former
behaviour of storing a NULL to indicate that it is not a pool has not
been used.
(make_host_part): Ditto.
(make_host_part): Make sure that literal v6 addresses are correclty
marked in the constructed URL.

Signed-off-by: Werner Koch <wk@gnupg.org>
dirmngr/dns-stuff.c
dirmngr/ks-engine-hkp.c