- Apr 23, 2018
-
-
David Goulet authored
Signed-off-by:
David Goulet <dgoulet@torproject.org>
-
David Goulet authored
Signed-off-by:
David Goulet <dgoulet@torproject.org>
-
-
David Goulet authored
Two helper functions to enable an event and disable an event which wraps the launch and destroy of an event but takes care of the enabled flag. They are also idempotent that is can be called multiple time on the same event without effect if the event was already enabled or disabled. Signed-off-by:
David Goulet <dgoulet@torproject.org>
-
David Goulet authored
In case we transitionned to a new role in Tor, we need to launch and/or destroy some periodic events. Signed-off-by:
David Goulet <dgoulet@torproject.org>
-
David Goulet authored
Signed-off-by:
David Goulet <dgoulet@torproject.org>
-
David Goulet authored
In tor, we have a series of possible "roles" that the tor daemon can be enabled for. They are: Client, Bridge, Relay, Authority (directory or bridge) and Onion service. They can be combined sometimes. For instance, a Directory Authority is also a Relay. This adds a "roles" field to a periodic event item object which is used to know for which roles the event is for. The next step is to enable the event only if the roles apply. No behavior change at this commit. Pars of #25762 Signed-off-by:
David Goulet <dgoulet@torproject.org>
-
David Goulet authored
No behavior change, just to make it easier to find callbacks and for the sake of our human brain to parse the list properly. Signed-off-by:
David Goulet <dgoulet@torproject.org>
-
Nick Mathewson authored
-
Nick Mathewson authored
-
Nick Mathewson authored
-
Nick Mathewson authored
-
Nick Mathewson authored
-
Nick Mathewson authored
-
Nick Mathewson authored
-
Nick Mathewson authored
Fixes bug 24969; bugfix on 0.2.5.1-alpha when the sandbox was introduced.
-
Nick Mathewson authored
-
Nick Mathewson authored
Closes 25897.
-
Nick Mathewson authored
-
Nick Mathewson authored
-
-
- Use misspell to check for typos in codebase - Add `make check-typos` to run the checks - Add `check-typos` to `make check`
-
Nick Mathewson authored
-
Nick Mathewson authored
-
Nick Mathewson authored
(Ticket 24378; proposal 290.)
-
Nick Mathewson authored
(Remove support for running without this method.)
-
Nick Mathewson authored
Also remove client detection for pre-EXCLUDING_INVALID_NODES consensuses, and a test for that detection.
-
Nick Mathewson authored
This also lets us remove the old rsa-based routerstatus collator.
-
Nick Mathewson authored
Also remove a rest for pre-19 microdesc versions.
-
Nick Mathewson authored
-
Nick Mathewson authored
Also remove a unit test for pre-MIN_METHOD_FOR_NTOR_KEY consensuses.
-
Nick Mathewson authored
Also, in networkstatus.c, remove client code for recognizing pre- MIN_METHOD_FOR_A_LINES consensuses, and corresponding unit tests in test_dir.c.
-
Nick Mathewson authored
Consensus method 25 is the oldest one supported by any stable version of 0.2.9, which is our current most-recent LTS. Thus, by proposal 290, they should be removed. This commit does not actually remove the code to implement these methods: it only makes it so authorities will no longer support them. I'll remove the backend code for them in later commits.
-
- Apr 22, 2018
-
-
Nick Mathewson authored
-
Nick Mathewson authored
Suggested by teor during code review for 25691.
-
Nick Mathewson authored
It tried to pick nodes for which only routerinfo_t items are set, but without setting UseMicroDescriptors to 0. This won't work any more, now that we're strict about using the right descriptor types due to 25691/25692/25213.
-
Nick Mathewson authored
Changing the name of this function should help keep us from misusing it when node_has_preferred_descriptor() would be more appropriate.
-
Nick Mathewson authored
-
Nick Mathewson authored
In order to fix 25691 and 25692, we need to pass the "direct_conn" flag to more places -- particularly when choosing single-hop tunnels. The right way to do this involves having a couple more functions accept router_crn_flags_t, rather than a big list of boolean arguments. This commit also makes sure that choose_good_exit_server_general() honors the direct_conn flag, to fix 25691 and 25692.
-
Nick Mathewson authored
In router_add_running_nodes_to_smartlist(), we had an inline implementation of the logic from node_has_descriptor(), which should be changed to node_has_preferred_descriptor().
-