diff options
author | George Kadianakis <desnacked@riseup.net> | 2017-08-08 11:45:45 +0300 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-08-08 20:29:35 -0400 |
commit | ff249ee4a6ea665bb7ed1c7ab53d4d6b0eb9db78 (patch) | |
tree | 69acdb1e39d61013705207693c38bf21254b0628 /src/or/hs_common.h | |
parent | 101ce6da01770ba0d05291ccafb98c4274cb616e (diff) | |
download | tor-ff249ee4a6ea665bb7ed1c7ab53d4d6b0eb9db78.tar.gz tor-ff249ee4a6ea665bb7ed1c7ab53d4d6b0eb9db78.zip |
Start caching disaster SRV values.
Also add some unittests.
Diffstat (limited to 'src/or/hs_common.h')
-rw-r--r-- | src/or/hs_common.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/or/hs_common.h b/src/or/hs_common.h index 7e37f81e5c..5004e02088 100644 --- a/src/or/hs_common.h +++ b/src/or/hs_common.h @@ -224,10 +224,15 @@ int hs_set_conn_addr_port(const smartlist_t *ports, edge_connection_t *conn); #ifdef HS_COMMON_PRIVATE +STATIC void get_disaster_srv(uint64_t time_period_num, uint8_t *srv_out); + #ifdef TOR_UNIT_TESTS STATIC uint64_t get_time_period_length(void); +STATIC uint8_t *get_first_cached_disaster_srv(void); +STATIC uint8_t *get_second_cached_disaster_srv(void); + #endif /* TOR_UNIT_TESTS */ #endif /* HS_COMMON_PRIVATE */ |