diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-07-25 22:56:44 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-07-25 22:56:44 +0000 |
commit | a66f25935483b1b415a878ed208896886dd1df66 (patch) | |
tree | 5e3009b8c32a3f5a9a0aafd95b6203e5523c4096 /src/or/router.c | |
parent | 1b7a704c34443315a1f89280425aa89509a528ee (diff) | |
download | tor-a66f25935483b1b415a878ed208896886dd1df66.tar.gz tor-a66f25935483b1b415a878ed208896886dd1df66.zip |
r13902@catbus: nickm | 2007-07-25 17:43:52 -0400
Some dirvote code to handle generating votes and slinging them around. More code is still needed.
svn:r10927
Diffstat (limited to 'src/or/router.c')
-rw-r--r-- | src/or/router.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/or/router.c b/src/or/router.c index 77bcf19b7b..22b3eb4e42 100644 --- a/src/or/router.c +++ b/src/or/router.c @@ -714,6 +714,14 @@ authdir_mode_v2(or_options_t *options) { return authdir_mode(options) && options->V2AuthoritativeDir != 0; } +/** Return true iff we believe ourselves to be a v3 authoritative + * directory server. + */ +int +authdir_mode_v3(or_options_t *options) +{ + return authdir_mode(options) && options->V3AuthoritativeDir != 0; +} /** Return true iff we are an authoritative directory server that * is willing to receive or serve descriptors on its dirport. */ |