mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 13:13:44 +01:00
Add have_module_dircache().
This commit is contained in:
parent
5cff1ce84b
commit
a623a49777
@ -81,6 +81,8 @@ int dir_split_resource_into_spoolable(const char *resource,
|
|||||||
int flags);
|
int flags);
|
||||||
|
|
||||||
#ifdef HAVE_MODULE_DIRCACHE
|
#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_unknown_auth_certs(const or_options_t *options);
|
||||||
int directory_caches_dir_info(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);
|
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,
|
const uint8_t *sha3_as_signed,
|
||||||
time_t published);
|
time_t published);
|
||||||
#else
|
#else
|
||||||
|
#define have_module_dircache() (0)
|
||||||
#define directory_caches_unknown_auth_certs(opt) \
|
#define directory_caches_unknown_auth_certs(opt) \
|
||||||
((void)(opt), 0)
|
((void)(opt), 0)
|
||||||
#define directory_caches_dir_info(opt) \
|
#define directory_caches_dir_info(opt) \
|
||||||
|
Loading…
Reference in New Issue
Block a user