mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 21:53:48 +01:00
5950566f1d
This commit: * creates feature/dirauth/dirauth_config.[ch], * moves the dirauth config code into them, * copies some macros from src/app/config.c (we'll refactor them later in 29211), and * adds thin wrappers to make the moved code compile. No functional changes: the moved code is still enabled, even if the dirauth module is disabled. Part of 32213.
36 lines
1.3 KiB
C
36 lines
1.3 KiB
C
/* Copyright (c) 2001 Matej Pfajfar.
|
|
* Copyright (c) 2001-2004, Roger Dingledine.
|
|
* Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
|
|
* Copyright (c) 2007-2019, The Tor Project, Inc. */
|
|
/* See LICENSE for licensing information */
|
|
|
|
/**
|
|
* @file dirauth_config.h
|
|
* @brief Header for feature/dirauth/dirauth_config.c
|
|
**/
|
|
|
|
#ifndef TOR_FEATURE_DIRAUTH_DIRAUTH_CONFIG_H
|
|
#define TOR_FEATURE_DIRAUTH_DIRAUTH_CONFIG_H
|
|
|
|
typedef struct or_options_t or_options_t;
|
|
|
|
int options_validate_dirauth_mode(const or_options_t *old_options,
|
|
or_options_t *options,
|
|
char **msg);
|
|
|
|
int options_validate_dirauth_schedule(const or_options_t *old_options,
|
|
or_options_t *options,
|
|
char **msg);
|
|
|
|
int options_validate_dirauth_testing(const or_options_t *old_options,
|
|
or_options_t *options,
|
|
char **msg);
|
|
|
|
int options_transition_affects_dirauth_timing(
|
|
const or_options_t *old_options,
|
|
const or_options_t *new_options);
|
|
|
|
int options_act_dirauth(const or_options_t *old_options);
|
|
|
|
#endif /* !defined(TOR_FEATURE_DIRAUTH_DIRAUTH_CONFIG_H) */
|