From 288c9919dc45496b2380eeac487a8539692d6842 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 9 Nov 2015 20:44:13 +0100 Subject: dirmngr: Change to new ADNS Tor mode init scheme. * dirmngr/dns-stuff.c (tor_credentials): New. (enable_dns_tormode): Add arg new_circuit and update tor_credentials. (my_adns_init): Rework to set Tor mode using a config file options and always use credentials. * dirmngr/server.c (cmd_dns_cert): Improve error message. * dirmngr/t-dns-stuff.c (main): Add option --new-circuit. -- Note that the option --new-circuit in t-dns-stuff is not really useful because a new circuit is also used for the first call to the function. Todo: We need to find a policy when to requrest a new curcuit and we also need to add credentials to the assuan_sock_connect calls. Signed-off-by: Werner Koch --- dirmngr/dns-stuff.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dirmngr/dns-stuff.h') diff --git a/dirmngr/dns-stuff.h b/dirmngr/dns-stuff.h index 515a859b1..69637d61d 100644 --- a/dirmngr/dns-stuff.h +++ b/dirmngr/dns-stuff.h @@ -94,7 +94,7 @@ struct srventry /* Calling this function switches the DNS code into Tor mode if possibe. Return 0 on success. */ -gpg_error_t enable_dns_tormode (void); +gpg_error_t enable_dns_tormode (int new_circuit); void free_dns_addrinfo (dns_addrinfo_t ai); -- cgit v1.2.3