relay/config: Remove direct references to dirauth options

All *AuthoritativeDir* options are now accessed via the authmode
functions in relay_config.c, relay/transport_config.c, and config.c.

Part of 32213.
This commit is contained in:
teor 2019-10-30 15:43:30 +10:00
parent 1d4d2deea1
commit 23faa03ffc

View File

@ -1044,8 +1044,8 @@ options_act_relay(const or_options_t *old_options)
/* We want to reinit keys as needed before we do much of anything else: /* We want to reinit keys as needed before we do much of anything else:
keys are important, and other things can depend on them. */ keys are important, and other things can depend on them. */
if (transition_affects_workers || if (transition_affects_workers ||
(options->V3AuthoritativeDir && (!old_options || (authdir_mode_v3(options) && (!old_options ||
!old_options->V3AuthoritativeDir))) { !authdir_mode_v3(old_options)))) {
if (init_keys() < 0) { if (init_keys() < 0) {
log_warn(LD_BUG,"Error initializing keys; exiting"); log_warn(LD_BUG,"Error initializing keys; exiting");
return -1; return -1;