Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Tor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Benjamin J. Thompson
Tor
Commits
a623a497
Commit
a623a497
authored
5 years ago
by
Nick Mathewson
Browse files
Options
Downloads
Patches
Plain Diff
Add have_module_dircache().
parent
5cff1ce8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/feature/dircache/dirserv.h
+3
-0
3 additions, 0 deletions
src/feature/dircache/dirserv.h
with
3 additions
and
0 deletions
src/feature/dircache/dirserv.h
+
3
−
0
View file @
a623a497
...
...
@@ -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) \
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment