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>