aboutsummaryrefslogtreecommitdiff
path: root/src/or/directory.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2018-05-02 13:42:24 -0400
committerDavid Goulet <dgoulet@torproject.org>2018-05-02 13:42:24 -0400
commit1f739e9b06974566685c662c3526384efd68ed32 (patch)
treec2fdb73da5441b405518a5cc404e2af2299959eb /src/or/directory.c
parent1ef1ed76d864b6c3147c0444d9114ebcc53c18b5 (diff)
downloadtor-1f739e9b06974566685c662c3526384efd68ed32.tar.gz
tor-1f739e9b06974566685c662c3526384efd68ed32.zip
dirauth: Move authdir_mode_v3() to module
This function must return false if the module is not compiled in. In order to do that, we move the authdir_mode_v3() function out of router.c and into the dirauth module new header file named mode.h. It is always returning false if we don't have the module. Closes #25990 Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/directory.c')
-rw-r--r--src/or/directory.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index 2c5ee23f3a..76caab6a3c 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -40,7 +40,6 @@
#include "routerlist.h"
#include "routerparse.h"
#include "routerset.h"
-#include "dirauth/shared_random.h"
#if defined(EXPORTMALLINFO) && defined(HAVE_MALLOC_H) && defined(HAVE_MALLINFO)
#if !defined(OpenBSD)
@@ -49,6 +48,8 @@
#endif
#include "dirauth/dirvote.h"
+#include "dirauth/mode.h"
+#include "dirauth/shared_random.h"
/**
* \file directory.c