Tor  0.4.7.0-alpha-dev
Macros | Functions
dirauth_config.h File Reference

Header for feature/dirauth/dirauth_config.c. More...

Go to the source code of this file.

Macros

#define options_validate_dirauth_schedule(old_options, options, msg)    (((void)(old_options)),((void)(options)),((void)(msg)),0)
 
#define options_validate_dirauth_testing(old_options, options, msg)    (((void)(old_options)),((void)(options)),((void)(msg)),0)
 
#define options_act_dirauth(old_options)    (((void)(old_options)),0)
 
#define options_act_dirauth_mtbf(old_options)    (((void)(old_options)),0)
 
#define dirauth_should_reject_requests_under_load()   (false)
 

Functions

static int options_validate_dirauth_mode (const struct or_options_t *old_options, struct or_options_t *options, char **msg)
 
static int options_act_dirauth_stats (const struct or_options_t *old_options, bool *print_notice_out)
 

Detailed Description

Header for feature/dirauth/dirauth_config.c.

Definition in file dirauth_config.h.

Function Documentation

◆ options_validate_dirauth_mode()

static int options_validate_dirauth_mode ( const struct or_options_t old_options,
struct or_options_t options,
char **  msg 
)
inlinestatic

When tor is compiled with the dirauth module disabled, it can't be configured as a directory authority.

Returns -1 and sets msg to a newly allocated string, if AuthoritativeDir is set in options. Otherwise returns 0.

Definition at line 50 of file dirauth_config.h.