diff options
author | Nick Mathewson <nickm@torproject.org> | 2012-05-16 11:14:00 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2012-05-16 11:14:00 -0400 |
commit | 517b9c602a9e5e8c60849892a426526e803ef412 (patch) | |
tree | 9f106f2722547333f28cea8d0072fd068be0ca0e /src/or/dirserv.c | |
parent | a925fc918975fd62581d438eec0dc8a1d53ce127 (diff) | |
parent | 5193752ca88849878a0843cec1e81c6b4b05e550 (diff) | |
download | tor-517b9c602a9e5e8c60849892a426526e803ef412.tar.gz tor-517b9c602a9e5e8c60849892a426526e803ef412.zip |
Merge remote-tracking branch 'public/bug2297'
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r-- | src/or/dirserv.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c index 1c2579865f..1220c32a50 100644 --- a/src/or/dirserv.c +++ b/src/or/dirserv.c @@ -1252,6 +1252,15 @@ directory_caches_v2_dir_info(const or_options_t *options) return options->DirPort != NULL; } +/** Return true iff we want to fetch and keep certificates for authorities + * that we don't acknowledge as aurthorities ourself. + */ +int +directory_caches_unknown_auth_certs(const or_options_t *options) +{ + return options->DirPort || options->BridgeRelay; +} + /** Return 1 if we want to keep descriptors, networkstatuses, etc around * and we're willing to serve them to others. Else return 0. */ |