diff options
author | teor <teor@torproject.org> | 2019-10-29 16:22:39 +1000 |
---|---|---|
committer | teor <teor@torproject.org> | 2019-10-31 12:34:19 +1000 |
commit | 093a127c82a06546029e42cf0030edf43fb5f87b (patch) | |
tree | de1922bd59703549b56f51aa37d7587ecf0c0447 /src/test/test_options.c | |
parent | 0722b4fdb92337c58a96ed3538d922f394572ee0 (diff) | |
download | tor-093a127c82a06546029e42cf0030edf43fb5f87b.tar.gz tor-093a127c82a06546029e42cf0030edf43fb5f87b.zip |
config: Move relay config checks into the relay module
This commit:
* moves relay config checks into relay_config.[ch],
* exposes some code from src/app/config.c
(we'll refactor it 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 relay module is disabled. (Some of the checks
are re-ordered, so the order of some warnings may change.)
Part of 32213.
Diffstat (limited to 'src/test/test_options.c')
-rw-r--r-- | src/test/test_options.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/test_options.c b/src/test/test_options.c index ae26cf31b9..c1168a19b9 100644 --- a/src/test/test_options.c +++ b/src/test/test_options.c @@ -4,10 +4,12 @@ /* See LICENSE for licensing information */ #define CONFIG_PRIVATE +#define RELAY_CONFIG_PRIVATE #define LOG_PRIVATE #include "core/or/or.h" #include "lib/confmgt/confmgt.h" #include "app/config/config.h" +#include "feature/relay/relay_config.h" #include "test/test.h" #include "lib/geoip/geoip.h" |