diff options
author | Werner Koch <wk@gnupg.org> | 2018-11-13 11:35:39 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2018-11-13 11:35:39 +0100 |
commit | 914fa3be22bf8848a97a7dd405a040d6ef31e2fd (patch) | |
tree | 118783000e3629257a24721b84daf60ee628dacd /dirmngr/dns-stuff.c | |
parent | po: Clarify a translator's note. (diff) | |
download | gnupg2-914fa3be22bf8848a97a7dd405a040d6ef31e2fd.tar.xz gnupg2-914fa3be22bf8848a97a7dd405a040d6ef31e2fd.zip |
dirmngr: Support the new WKD draft with the openpgpkey subdomain.
* dirmngr/server.c (proc_wkd_get): Implement new openpgpkey subdomain
method.
Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'dirmngr/dns-stuff.c')
-rw-r--r-- | dirmngr/dns-stuff.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/dirmngr/dns-stuff.c b/dirmngr/dns-stuff.c index f86ccb0ae..7aa07c716 100644 --- a/dirmngr/dns-stuff.c +++ b/dirmngr/dns-stuff.c @@ -1056,16 +1056,17 @@ resolve_name_standard (ctrl_t ctrl, const char *name, unsigned short port, /* This a wrapper around getaddrinfo with slightly different semantics. - NAME is the name to resolve. - PORT is the requested port or 0. - WANT_FAMILY is either 0 (AF_UNSPEC), AF_INET6, or AF_INET4. - WANT_SOCKETTYPE is either SOCK_STREAM or SOCK_DGRAM. - - On success the result is stored in a linked list with the head - stored at the address R_AI; the caller must call gpg_addrinfo_free - on this. If R_CANONNAME is not NULL the official name of the host - is stored there as a malloced string; if that name is not available - NULL is stored. */ + * NAME is the name to resolve. + * PORT is the requested port or 0. + * WANT_FAMILY is either 0 (AF_UNSPEC), AF_INET6, or AF_INET4. + * WANT_SOCKETTYPE is either 0 for any socket type + * or SOCK_STREAM or SOCK_DGRAM. + * + * On success the result is stored in a linked list with the head + * stored at the address R_AI; the caller must call free_dns_addrinfo + * on this. If R_CANONNAME is not NULL the official name of the host + * is stored there as a malloced string; if that name is not available + * NULL is stored. */ gpg_error_t resolve_dns_name (ctrl_t ctrl, const char *name, unsigned short port, int want_family, int want_socktype, |