Home GnuPG
Diffusion GnuPG d2d9d4fb60e3

keyserver: Improve support for hkps pools.
d2d9d4fb60e3Unpublished

Unpublished Commit · Learn More

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

Description

keyserver: Improve support for hkps pools.

* dirmngr/ks-engine-hkp.c (hostinfo_s): Add fields cname, v4addr, and
v6addr.
(create_new_hostinfo): Clear them.
(my_getnameinfo): Add args numeric and r_isnumeric.
(is_ip_address): New.
(map_host): Add arg r_host.  Rewrite the code to handle pools in a
special way.
(ks_hkp_print_hosttable): Change format of help info output.
(make_host_part): Add arg optional r_httphost.
(send_request): Add arg httphost.
(ks_hkp_search, ks_hkp_get, ks_hkp_put): Get httphost and pass it to
send_request.

This changes quite some things on how the hostinfo is maintained.
However, it might be better to rework the data structures and have one
entry per IP address instead of this clumsy patch.

Details

Provenance
wernerAuthored on May 16 2014, 9:14 PM
Parents
rG8b90d7981835: http: Allow overriding of the Host header.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rGd2d9d4fb60e3: keyserver: Improve support for hkps pools. (authored by Werner Koch <wk@gnupg.org>).May 16 2014, 9:15 PM