- 10 Jul, 2018 2 commits
-
-
Nick Mathewson authored
(Almost none of Tor should actually need to touch the platform resolver.)
-
Nick Mathewson authored
This function has a nasty API, since whether or not it invokes the resolver depends on whether one of its arguments is NULL. That's a good way for accidents to happen. This patch incidentally makes tor-resolve support socks hosts on IPv6.
-
- 05 Jul, 2018 4 commits
-
-
Nick Mathewson authored
I am very glad to have written this script.
-
Nick Mathewson authored
This commit won't build yet -- it just puts everything in a slightly more logical place. The reasoning here is that "src/core" will hold the stuff that every (or nearly every) tor instance will need in order to do onion routing. Other features (including some necessary ones) will live in "src/feature". The "src/app" directory will hold the stuff needed to have Tor be an application you can actually run. This commit DOES NOT refactor the former contents of src/or into a logical set of acyclic libraries, or change any code at all. That will have to come in the future. We will continue to move things around and split them in the future, but I hope this lays a reasonable groundwork for doing so.
-
Nick Mathewson authored
-
Nick Mathewson authored
Inline its contents (which were all includes) into or.h, and some of its contents into other places that didn't include or.h at all.
-
- 03 Jul, 2018 2 commits
-
-
Nick Mathewson authored
The standard is printf("%"PRIu64, x);
-
Nick Mathewson authored
-
- 01 Jul, 2018 3 commits
-
-
Nick Mathewson authored
-
Nick Mathewson authored
-
Nick Mathewson authored
or.h should really include only the minimum of stuff from or/*, common/*, and lib/*.
-
- 29 Jun, 2018 3 commits
-
-
Nick Mathewson authored
-
Nick Mathewson authored
-
Nick Mathewson authored
-
- 28 Jun, 2018 5 commits
-
-
Nick Mathewson authored
-
Nick Mathewson authored
-
Nick Mathewson authored
-
Nick Mathewson authored
Note that procmon does *not* go here, since procmon needs to integrate with the event loop.
-
Nick Mathewson authored
-
- 27 Jun, 2018 2 commits
-
-
Nick Mathewson authored
The "conffile" module knows about includes and filesystem access, whereas confline doesn't. This will make it possible to put these functions into libraries without introducing a cycle.
-
Nick Mathewson authored
-
- 22 Jun, 2018 1 commit
-
-
Nick Mathewson authored
This patch: - introduces an fdio module for low-level fd functions that don't need to log. - moves the responsibility for opening files outside of torlog.c, so it won't need to call tor_open_cloexec.
-
- 21 Jun, 2018 2 commits
-
-
Nick Mathewson authored
-
Nick Mathewson authored
-
- 20 Jun, 2018 2 commits
-
-
Nick Mathewson authored
-
Nick Mathewson authored
-
- 15 Jun, 2018 1 commit
-
-
Nick Mathewson authored
Now the entire connection_t hierarchy is extracted from or.h
-
- 14 Jun, 2018 1 commit
-
-
Nick Mathewson authored
-
- 10 May, 2018 1 commit
-
-
Nick Mathewson authored
There are three cases where this can happen: changes in our controller events, changes in our DisableNetwork setting, and changes in our hibernation state. Closes ticket 26063.
-
- 09 May, 2018 3 commits
-
-
David Goulet authored
The options_any_client_port_set() returns true if the ControlPort is set which is wrong because we can have that port open but still not behave as a tor client (like many relays for instance). Fixes #26062 Signed-off-by:
David Goulet <dgoulet@torproject.org>
-
David Goulet authored
This functions is now used outside of networkstatus.c and makes more sense to be in config.c. It is also renamed to options_any_client_port_set() for the config.c namespace. No code behavior change. Signed-off-by:
David Goulet <dgoulet@torproject.org>
-
Nick Mathewson authored
Everywhere we use we_are_hibernating(), remind the reader what it means. (Also, add an XXXX to note a DisableNetwork usage to change later.)
-
- 02 May, 2018 1 commit
-
-
David Goulet authored
This function must return false if the module is not compiled in. In order to do that, we move the authdir_mode_v3() function out of router.c and into the dirauth module new header file named mode.h. It is always returning false if we don't have the module. Closes #25990 Signed-off-by:
David Goulet <dgoulet@torproject.org>
-
- 01 May, 2018 4 commits
-
-
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>
-
Nick Mathewson authored
-
Nick Mathewson authored
-
Nick Mathewson authored
This requires that when a log cb happens, the event for flushing queued events is scheduled, so we also add the necessary machinery to have that happen. Note that this doesn't actually help with logs from outside the main thread, but those were already suppressed: see #25987 for a ticket tracking that issue.
-
- 30 Apr, 2018 1 commit
-
-
Nick Mathewson authored
-
- 27 Apr, 2018 2 commits
-
-
-
David Goulet authored
This is a pretty big commit but it only moves these files to src/or/dirauth: dircollate.c dirvote.c shared_random.c shared_random_state.c dircollate.h dirvote.h shared_random.h shared_random_state.h Then many files are modified to change the include line for those header files that have moved into a new directory. Without using --disable-module-dirauth, everything builds fine. When using the flag to disable the module, tor doesn't build due to linking errors. This will be addressed in the next commit(s). No code behavior change. Signed-off-by:
David Goulet <dgoulet@torproject.org>
-