- May 03, 2018
-
-
Nick Mathewson authored
This function is about to get more complicated, so we should track how it's working.
-
Nick Mathewson authored
This now happens in a new function, with the intent of having it invoked from our callbacks. This is one step on the way to 26009.
-
Nick Mathewson authored
-
Nick Mathewson authored
-
Nick Mathewson authored
-
David Goulet authored
From Neel's latest patch on optimizing the hs_circ_service_get_intro_circ() digest calculation, remove an extra white-space and clarify a comment of the legacy key digest to inform when to use it. Signed-off-by:
David Goulet <dgoulet@torproject.org>
-
David Goulet authored
-
- May 02, 2018
-
-
Nick Mathewson authored
-
Nick Mathewson authored
This test was using the current time to pick the time period number, and a randomly generated hs key. Therefore, it sometimes picked an index that would wrap around the example dht, and sometimes would not. The fix here is just to fix the time period and the public key. Fixes bug 25997; bugfix on 0.3.2.1-alpha.
-
David Goulet authored
Signed-off-by:
David Goulet <dgoulet@torproject.org>
-
Nick Mathewson authored
-
Nick Mathewson authored
-
Nick Mathewson authored
-
Nick Mathewson authored
-
Nick Mathewson authored
-
teor authored
When directory authorities read a zero-byte bandwidth file, they log a warning with the contents of an uninitialised buffer. Log a warning about the empty file instead. Fixes bug 26007; bugfix on 0.2.2.1-alpha.
-
-
George Kadianakis authored
-
Neel Chauhan authored
-
- May 01, 2018
-
-
Nick Mathewson authored
This test, in test_client_pick_intro(), will have different coverage depending on whether it selects a good intro point the first time or whether it has to try a few times. Since it produces the shorter coverage with P=1/4, repeat this test 64 times so that it only provides reduced coverage with P=1/2^128. The performance cost is negligible. Closes ticket 25996. This test was introduced in 0.3.2.1-alpha.
-
Nick Mathewson authored
It doesn't match with the tick-count code any longer. Bug not in any released Tor.
-
Nick Mathewson authored
-
Nick Mathewson authored
Arguably, the conditions under which these events happen should be a bit different, but the rules are complex enough here that I've tried to have this commit be pure refactoring. Closes ticket 25952. Finally, before this code goes away, take a moment to look at the amazing way that we used to try to have an event happen every N seconds: get_uptime() / N != (get_uptime()+seconds_elapsed) / N Truly, it is a thing of wonder. I'm glad we didn't start using this pattern everywhere else.
-
David Goulet authored
Signed-off-by:
David Goulet <dgoulet@torproject.org>
-
David Goulet authored
Part of #25988 Signed-off-by:
David Goulet <dgoulet@torproject.org>
-
David Goulet authored
Part of #25988 Signed-off-by:
David Goulet <dgoulet@torproject.org>
-
David Goulet authored
No code behavior change. Pars of #25988 Signed-off-by:
David Goulet <dgoulet@torproject.org>
-
David Goulet authored
By doing so, it is renamed to voting_schedule_recalculate_timing(). This required a lot of changes to include voting_schedule.h everywhere that this function was used. This effectively now makes voting_schedule.{c|h} not include dirauth/dirvote.h for that symbol and thus no dependency on the dirauth module anymore. Signed-off-by:
David Goulet <dgoulet@torproject.org>
-
David Goulet authored
Rename them from dirvote_* to voting_schedule_*. No code behavior change. Part of #25988 Signed-off-by:
David Goulet <dgoulet@torproject.org>
-
David Goulet authored
No code behavior change. Part of #25988 Signed-off-by:
David Goulet <dgoulet@torproject.org>
-
David Goulet authored
This function doesn't need to be public from the dirvote common file (which will get renamed in future commit) so move it to dirauth/dirvote.c and make it static. Part of #25988 Signed-off-by:
David Goulet <dgoulet@torproject.org>
-
David Goulet authored
It makes more sense to be in networkstatus.c so move it there and rename it with the "networkstatus_" prefix. Part of #25988 Signed-off-by:
David Goulet <dgoulet@torproject.org>
-
Nick Mathewson authored
-
Nick Mathewson authored
-
Nick Mathewson authored
-
Nick Mathewson authored
-
Nick Mathewson authored
Closes ticket25937.
-
Nick Mathewson authored
This is remarkably simple, given the macros in the last commit.
-
Nick Mathewson authored
This change should have no behavioral effect: it just uses macros to describe the current control flow.
-