aboutsummaryrefslogtreecommitdiff
path: root/src/or/dirserv.h
diff options
context:
space:
mode:
authorteor <teor2345@gmail.com>2015-08-14 12:09:00 +1000
committerteor <teor2345@gmail.com>2015-08-18 14:54:40 +1000
commitd1c94dcbea76d4ddd8ccf6c2c94f2fe99ea570e2 (patch)
tree71f0ea1c136a3f5c69a6aefafb95096f7881f98a /src/or/dirserv.h
parent359faf5e4b4a88663201c2b42dd89a6f77569856 (diff)
downloadtor-d1c94dcbea76d4ddd8ccf6c2c94f2fe99ea570e2.tar.gz
tor-d1c94dcbea76d4ddd8ccf6c2c94f2fe99ea570e2.zip
Refactor TestingDirAuthVote* into dirserv_set_routerstatus_testing
Make it easier to unit test TestingDirAuthVote{Exit,Guard,HSDir} by refactoring the code which sets flags based on them into a new function dirserv_set_routerstatus_testing.
Diffstat (limited to 'src/or/dirserv.h')
-rw-r--r--src/or/dirserv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/dirserv.h b/src/or/dirserv.h
index 8a4e68dcf5..d07339bc12 100644
--- a/src/or/dirserv.h
+++ b/src/or/dirserv.h
@@ -109,6 +109,8 @@ int validate_recommended_package_line(const char *line);
#ifdef DIRSERV_PRIVATE
+STATIC void dirserv_set_routerstatus_testing(routerstatus_t *rs);
+
/* Put the MAX_MEASUREMENT_AGE #define here so unit tests can see it */
#define MAX_MEASUREMENT_AGE (3*24*60*60) /* 3 days */