aboutsummaryrefslogtreecommitdiff
path: root/src/or/router.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-07-25 22:56:44 +0000
committerNick Mathewson <nickm@torproject.org>2007-07-25 22:56:44 +0000
commita66f25935483b1b415a878ed208896886dd1df66 (patch)
tree5e3009b8c32a3f5a9a0aafd95b6203e5523c4096 /src/or/router.c
parent1b7a704c34443315a1f89280425aa89509a528ee (diff)
downloadtor-a66f25935483b1b415a878ed208896886dd1df66.tar
tor-a66f25935483b1b415a878ed208896886dd1df66.tar.gz
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.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/or/router.c b/src/or/router.c
index 77bcf19b7..22b3eb4e4 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.
*/