aboutsummaryrefslogtreecommitdiff
path: root/src/or/shared_random_state.h
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2017-07-17 14:45:14 +0300
committerNick Mathewson <nickm@torproject.org>2017-08-08 20:29:34 -0400
commit2af254096f68f0cefadb5cb06b010d19edd2e6e1 (patch)
tree03a839b50a812bd17edf04f42f2ff8cc6ae6b450 /src/or/shared_random_state.h
parent85c80adf4a75e1f44250379a4806796a26e861e3 (diff)
downloadtor-2af254096f68f0cefadb5cb06b010d19edd2e6e1.tar.gz
tor-2af254096f68f0cefadb5cb06b010d19edd2e6e1.zip
SR: Compute the start time of the current protocol run.
This function will be used to make the HS desc overlap function be independent of absolute times.
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 3526ad47d3..ae1c5ac219 100644
--- a/src/or/shared_random_state.h
+++ b/src/or/shared_random_state.h
@@ -121,6 +121,8 @@ int sr_state_is_initialized(void);
void sr_state_save(void);
void sr_state_free(void);
+time_t sr_state_get_start_time_of_current_protocol_run(time_t now);
+
#ifdef SHARED_RANDOM_STATE_PRIVATE
STATIC int disk_state_load_from_disk_impl(const char *fname);