From 4524a2a3714f263d56bb7db349c169b456994fd9 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 26 Oct 2015 16:32:03 +0100 Subject: dirmngr: Support Tor hidden services. * dirmngr/dns-stuff.c (is_onion_address): New. * dirmngr/ks-engine-hkp.c (hostinfo_s): Add field "onion". (map_host): Special case onion addresses. (ks_hkp_print_hosttable): Print an 'O' for an onion address. * dirmngr/http.c (connect_server): Special case onion addresses. -- Note that this requires the latest libassuan from git. Onion addresses are always support regardless of the --use-tor flag. Signed-off-by: Werner Koch --- dirmngr/dns-stuff.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'dirmngr/dns-stuff.h') diff --git a/dirmngr/dns-stuff.h b/dirmngr/dns-stuff.h index c3effad83..515a859b1 100644 --- a/dirmngr/dns-stuff.h +++ b/dirmngr/dns-stuff.h @@ -110,6 +110,9 @@ gpg_error_t resolve_dns_addr (const struct sockaddr *addr, int addrlen, /* Return true if NAME is a numerical IP address. */ int is_ip_address (const char *name); +/* Return true if NAME is an onion address. */ +int is_onion_address (const char *name); + /* Get the canonical name for NAME. */ gpg_error_t get_dns_cname (const char *name, char **r_cname); -- cgit v1.2.3