mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
dirmngr: New option --no-use-tor and internal changes.
* dirmngr/dns-stuff.c (disable_dns_tormode): New. * dirmngr/dirmngr.c (oNoUseTor): New const. (opts): New option --no-use-tor. (tor_mode): New var. (parse_rereadable_options): Change to use TOR_MODE. (dirmngr_use_tor): New. (set_tor_mode): Call disable_dns_tormode. Implement oNoUseTor. * dirmngr/dirmngr.h (opt): Remove field 'use_tor'. Replace all references by a call to dirmngr_use_tor(). * dirmngr/server.c (cmd_getinfo): Distinguish between default and enforced TOR_MODE. -- This patch replaces the global variable opt.use_tar by a function testing a file local mode flag. This patch prepares for a use-tor-if-available mode. GnuPG-bug-id: 2935 Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
f518196ca6
commit
7440119e72
11 changed files with 75 additions and 23 deletions
|
@ -91,7 +91,6 @@ struct
|
|||
program. */
|
||||
|
||||
int running_detached; /* We are running in detached mode. */
|
||||
int use_tor; /* Tor mode has been enabled. */
|
||||
int allow_version_check; /* --allow-version-check is active. */
|
||||
|
||||
int force; /* Force loading outdated CRLs. */
|
||||
|
@ -191,7 +190,7 @@ void dirmngr_init_default_ctrl (ctrl_t ctrl);
|
|||
void dirmngr_deinit_default_ctrl (ctrl_t ctrl);
|
||||
void dirmngr_sighup_action (void);
|
||||
const char* dirmngr_get_current_socket_name (void);
|
||||
|
||||
int dirmngr_use_tor (void);
|
||||
|
||||
/*-- Various housekeeping functions. --*/
|
||||
void ks_hkp_housekeeping (time_t curtime);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue