- 30 Apr, 2019 29 commits
-
-
Taylor Yu authored
Split the core reply formatting code out of control_fmt.c into control_proto.c. The remaining code in control_format.c deals with specific subsystems and will eventually move to join those subsystems.
-
Taylor Yu authored
-
George Kadianakis authored
-
George Kadianakis authored
-
George Kadianakis authored
-
George Kadianakis authored
-
George Kadianakis authored
-
George Kadianakis authored
-
George Kadianakis authored
-
David Goulet authored
Signed-off-by:
David Goulet <dgoulet@torproject.org>
-
David Goulet authored
Signed-off-by:
David Goulet <dgoulet@torproject.org>
-
Nick Mathewson authored
When we tell the periodic event manager about an event, we are "registering" that event. The event sits around without being usable, however, until we "connect" the event to libevent. In the end, we "disconnect" the event and remove its libevent parts. Previously, we called these operations "add", "setup", and "destroy", which led to confusion.
-
Nick Mathewson authored
This is now the responsibility of the mainloop's subsystem initializer.
-
Nick Mathewson authored
-
Nick Mathewson authored
Closes ticket 30294.
-
Nick Mathewson authored
We need a little refactoring for this to work, since the initialization code for the periodic events assumes that libevent is already initialized, which it can't be until it's configured. This change, combined with the previous ones, lets other subsystems declare their own periodic events, without mainloop.c having to know about them. Implements ticket 30293.
-
-
-
-
-
-
-
-
This is the last remaining place where our tests had mocked crypto_rand.
-
-
-
-
-
We had this previously, but we did it differently in different places. This implementation is pulled from test_prob_distr.c
-
- 29 Apr, 2019 3 commits
-
-
Nick Mathewson authored
-
Nick Mathewson authored
-
Nick Mathewson authored
-
- 27 Apr, 2019 1 commit
-
-
rl1987 authored
-
- 26 Apr, 2019 5 commits
-
-
Nick Mathewson authored
Fixes bug 30308; bugfix on 0.3.5.1-alpha.
-
Nick Mathewson authored
The nodelist_idx for each node_t serves as a unique identifier for the node, so we can use a bitarray to hold all the excluded nodes, and then remove them from the smartlist. Previously use used smartlist_subtract(sl, excluded), which is O(len(sl)*len(excluded)). We can use this function in other places too, but this is the one that showed up on the profiles of 30291. Closes ticket 30307.
-
Nick Mathewson authored
-
Nick Mathewson authored
-
Nick Mathewson authored
-
- 25 Apr, 2019 2 commits
-
-
Nick Mathewson authored
-
Nick Mathewson authored
This makes it match control-spec.txt.
-