diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-05-09 11:26:13 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-05-14 19:19:53 -0400 |
commit | 1b16fcb70cb9507184fe7316396c93c1daa12674 (patch) | |
tree | 5e44a6d5e30225466b19c25b1665a088c4373c37 /src/feature/dirauth/authmode.h | |
parent | 231036a110c1062e39b214b4b88fdc2a1eb46dc8 (diff) | |
download | tor-1b16fcb70cb9507184fe7316396c93c1daa12674.tar.gz tor-1b16fcb70cb9507184fe7316396c93c1daa12674.zip |
Add a --list-modules command
Closes ticket 30452.
Diffstat (limited to 'src/feature/dirauth/authmode.h')
-rw-r--r-- | src/feature/dirauth/authmode.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/feature/dirauth/authmode.h b/src/feature/dirauth/authmode.h index 40a89c7397..876a1f947b 100644 --- a/src/feature/dirauth/authmode.h +++ b/src/feature/dirauth/authmode.h @@ -27,6 +27,8 @@ authdir_mode_v3(const or_options_t *options) return authdir_mode(options) && options->V3AuthoritativeDir != 0; } +#define have_module_dirauth() (1) + #else /* HAVE_MODULE_DIRAUTH */ #define authdir_mode(options) (((void)(options)),0) @@ -37,6 +39,8 @@ authdir_mode_v3(const or_options_t *options) #define authdir_mode_bridge(options) (((void)(options)),0) #define authdir_mode_v3(options) (((void)(options)),0) +#define have_module_dirauth() (0) + #endif /* HAVE_MODULE_DIRAUTH */ #endif /* TOR_MODE_H */ |