diff options
author | Nick Mathewson <nickm@torproject.org> | 2020-01-15 12:45:56 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2020-01-16 07:48:17 -0500 |
commit | a623a497778324c4aba570be4217c723d6a3010f (patch) | |
tree | e49343d4525c49d83b80d49254c6462ba7a6d3e9 /src | |
parent | 5cff1ce84bf11d0a3abbfdda30dd3b96ce298c6b (diff) | |
download | tor-a623a497778324c4aba570be4217c723d6a3010f.tar.gz tor-a623a497778324c4aba570be4217c723d6a3010f.zip |
Add have_module_dircache().
Diffstat (limited to 'src')
-rw-r--r-- | src/feature/dircache/dirserv.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/feature/dircache/dirserv.h b/src/feature/dircache/dirserv.h index a892d9ff87..3a168c2035 100644 --- a/src/feature/dircache/dirserv.h +++ b/src/feature/dircache/dirserv.h @@ -81,6 +81,8 @@ int dir_split_resource_into_spoolable(const char *resource, int flags); #ifdef HAVE_MODULE_DIRCACHE +/** Is the dircache module enabled? */ +#define have_module_dircache() (1) int directory_caches_unknown_auth_certs(const or_options_t *options); int directory_caches_dir_info(const or_options_t *options); int directory_permits_begindir_requests(const or_options_t *options); @@ -92,6 +94,7 @@ void dirserv_set_cached_consensus_networkstatus(const char *consensus, const uint8_t *sha3_as_signed, time_t published); #else +#define have_module_dircache() (0) #define directory_caches_unknown_auth_certs(opt) \ ((void)(opt), 0) #define directory_caches_dir_info(opt) \ |