summaryrefslogtreecommitdiff
path: root/src/or/shared_random_state.h
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2017-07-24 13:30:04 +0300
committerNick Mathewson <nickm@torproject.org>2017-08-08 20:29:34 -0400
commit0b22b7fce3f1ce97a85f4022533b206f847b7307 (patch)
tree44eff9cd6443b39b27380a719c2d7e615ba46e0f /src/or/shared_random_state.h
parent2af254096f68f0cefadb5cb06b010d19edd2e6e1 (diff)
downloadtor-0b22b7fce3f1ce97a85f4022533b206f847b7307.tar.gz
tor-0b22b7fce3f1ce97a85f4022533b206f847b7307.zip
SR: Calculate current SRV phase/run duration.
This is also needed to make the HS desc overlap mode function independent of absolute hours.
Diffstat (limited to 'src/or/shared_random_state.h')
-rw-r--r--src/or/shared_random_state.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/shared_random_state.h b/src/or/shared_random_state.h
index ae1c5ac219..03dd5eb37e 100644
--- a/src/or/shared_random_state.h
+++ b/src/or/shared_random_state.h
@@ -122,6 +122,8 @@ void sr_state_save(void);
void sr_state_free(void);
time_t sr_state_get_start_time_of_current_protocol_run(time_t now);
+unsigned int sr_state_get_phase_duration(void);
+unsigned int sr_state_get_protocol_run_duration(void);
#ifdef SHARED_RANDOM_STATE_PRIVATE