dirmngr: Change internal SRV lookup API.
authorWerner Koch <wk@gnupg.org>
Sun, 8 Jan 2017 17:04:59 +0000 (18:04 +0100)
committerWerner Koch <wk@gnupg.org>
Sun, 8 Jan 2017 17:04:59 +0000 (18:04 +0100)
commit16078f3deea5b82ea26e2f01dbd3ef3a5ce25410
treea8da190a48cb319aaab1d25a35e0ba060fd51194
parent9fa94aa10778bbd680315e93b23175423e338c40
dirmngr: Change internal SRV lookup API.

* dirmngr/dns-stuff.c (get_dns_srv): Add args SERVICE and PROTO.
* dirmngr/http.c (connect_server): Simplify SRV lookup.
* dirmngr/ks-engine-hkp.c (map_host): Ditto.
* dirmngr/t-dns-stuff.c (main): Adjust for changed get_dns_srv.
--

This new API is more convenient because it includes commonly used
code.  Note that right now http.c's SRV record code is not used.

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