From a66f25935483b1b415a878ed208896886dd1df66 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 25 Jul 2007 22:56:44 +0000 Subject: 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 --- src/or/router.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/or/router.c') 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. */ -- cgit v1.2.3-54-g00ecf