diff options
author | Werner Koch <[email protected]> | 2017-01-08 17:04:59 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2017-01-08 17:04:59 +0000 |
commit | 16078f3deea5b82ea26e2f01dbd3ef3a5ce25410 (patch) | |
tree | a8da190a48cb319aaab1d25a35e0ba060fd51194 /dirmngr/dns-stuff.h | |
parent | dirmngr: Strip root zone suffix from libdns SRV results. (diff) | |
download | gnupg-16078f3deea5b82ea26e2f01dbd3ef3a5ce25410.tar.gz gnupg-16078f3deea5b82ea26e2f01dbd3ef3a5ce25410.zip |
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 <[email protected]>
Diffstat (limited to 'dirmngr/dns-stuff.h')
-rw-r--r-- | dirmngr/dns-stuff.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/dirmngr/dns-stuff.h b/dirmngr/dns-stuff.h index eb7fe7246..d68dd1728 100644 --- a/dirmngr/dns-stuff.h +++ b/dirmngr/dns-stuff.h @@ -153,6 +153,7 @@ gpg_error_t get_dns_cert (const char *name, int want_certtype, /* Return an array of SRV records. */ gpg_error_t get_dns_srv (const char *name, + const char *service, const char *proto, struct srventry **list, unsigned int *r_count); |