diff options
author | teor <teor@torproject.org> | 2018-11-29 00:46:39 +1000 |
---|---|---|
committer | teor <teor@torproject.org> | 2018-11-29 00:50:24 +1000 |
commit | 7a45bc74a430ff64f0696c77f075f9c830822413 (patch) | |
tree | 0c402006dd8c98ea659961cd49d6b5d988b3230d /src/feature/nodelist/networkstatus.h | |
parent | bd29b3531a48b41f6eee5b4a29769a13ef199298 (diff) | |
download | tor-7a45bc74a430ff64f0696c77f075f9c830822413.tar.gz tor-7a45bc74a430ff64f0696c77f075f9c830822413.zip |
Dir: when Tor's clock is behind, use a future consensus to bootstrap
When Tor's clock is behind the clocks on the authorities, allow Tor to
bootstrap successfully.
Fixes bug 28591; bugfix on 0.2.0.9-alpha.
Diffstat (limited to 'src/feature/nodelist/networkstatus.h')
-rw-r--r-- | src/feature/nodelist/networkstatus.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/feature/nodelist/networkstatus.h b/src/feature/nodelist/networkstatus.h index 7b1a0ff72f..6f1d15d532 100644 --- a/src/feature/nodelist/networkstatus.h +++ b/src/feature/nodelist/networkstatus.h @@ -87,6 +87,8 @@ MOCK_DECL(networkstatus_t *, networkstatus_get_live_consensus,(time_t now)); int networkstatus_is_live(const networkstatus_t *ns, time_t now); int networkstatus_consensus_reasonably_live(const networkstatus_t *consensus, time_t now); +int networkstatus_valid_after_is_reasonably_live(time_t valid_after, + time_t now); int networkstatus_valid_until_is_reasonably_live(time_t valid_until, time_t now); MOCK_DECL(networkstatus_t *,networkstatus_get_reasonably_live_consensus, |