summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Fix DNS resolution on busy exit relaysbug21394Sebastian Hahn2017-11-03
| | | | | Thanks to Dhalgren who analyzed this issue two years ago and found a solution!
* Merge branch 'maint-0.3.2'Nick Mathewson2017-11-02
|\
| * nodelist: Downgrade warning to protocol warningDavid Goulet2017-11-02
| | | | | | | | | | | | | | | | | | | | The node_get_ed25519_id() warning can actually be triggered by a relay flagged with NoEdConsensus so instead of triggering a warning on all relays of the network, downgrade it to protocol warning. Fixes #24025 Signed-off-by: David Goulet <dgoulet@torproject.org>
* | Merge branch 'maint-0.3.2'Nick Mathewson2017-11-02
|\ \ | |/
| * Merge branch 'dgoulet_ticket23753_032_02_squashed' into maint-0.3.2Nick Mathewson2017-11-02
| |\
| | * sched: Rate limit scheduler_bug_occurred()David Goulet2017-11-02
| | | | | | | | | | | | | | | | | | | | | Just in case we end up hitting a SCHED_BUG() multiple times, rate limit the log warning. Signed-off-by: David Goulet <dgoulet@torproject.org>
| | * sched: Add another SCHED_BUG() callsiteMatt Traudt2017-11-02
| | |
| | * sched: Use SCHED_BUG() macro in schedulerDavid Goulet2017-11-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a BUG() occurs, this macro will print extra information about the state of the scheduler and the given channel if any. This will help us greatly to fix future bugs in the scheduler especially when they occur rarely. Fixes #23753 Signed-off-by: David Goulet <dgoulet@torproject.org>
| | * sched: Implement SCHED_BUG()David Goulet2017-10-03
| | | | | | | | | | | | Signed-off-by: David Goulet <dgoulet@torproject.org>
* | | Merge branch 'maint-0.3.2'Nick Mathewson2017-11-02
|\ \ \ | |/ /
| * | Test that IPv6-only clients can use microdescriptorsteor2017-11-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When running "make test-network-all", test that IPv6-only clients can use microdescriptors. IPv6-only microdescriptor client support was fixed in tor 0.3.0.1-alpha. Requires chutney master 61c28b9 or later. Closes ticket 24109.
* | | Merge branch 'maint-0.3.2'Nick Mathewson2017-11-02
|\ \ \ | |/ /
| * | Tweak a comment for a minor but important distinctionNick Mathewson2017-11-02
| | |
| * | Merge branch 'ticket23820_032_01_squashed' into maint-0.3.2Nick Mathewson2017-11-02
| |\ \
| | * | Changes file for 23820teor2017-11-02
| | | |
| | * | Don't run IPv6-only v3 single onion service tests using chutneyteor2017-11-02
| | | | | | | | | | | | | | | | Part of #23820.
| | * | Stop users configuring IPv6-only v3 single onion servicesteor2017-11-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | They are not yet implemented: they will upload descriptors, but won't be able to rendezvous, because IPv6 addresses in link specifiers are ignored. Part of #23820.
| | * | Improve v3 onion service logging for intro and rend pointsteor2017-11-02
| | | | | | | | | | | | | | | | Diagnostics for #23820.
| | * | Remove buggy IPv6 and ed25519 handling from get_lspecs_from_extend_info()teor2017-11-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The previous version of this function had the following issues: * it didn't check if the extend_info contained an IPv6 address, * it didn't check if the ed25519 identity key was valid. But we can't add IPv6 support in a bugfix release. Instead, BUG() if the address is an IPv6 address, so we always put IPv4 addresses in link specifiers. And ignore missing ed25519 identifiers, rather than generating an all-zero link specifier. This supports v3 hidden services on IPv4, dual-stack, and IPv6, and v3 single onion services on IPv4 only. Part of 23820, bugfix on 0.3.2.1-alpha.
| | * | Remove buggy IPv6 support from pick_intro_point() and service_intro_point_new()teor2017-10-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The previous version of these functions had the following issues: * they can't supply both the IPv4 and IPv6 addresses in link specifiers, * they try to fall back to a 3-hop path when the address for a direct connection is unreachable, but this isn't supported by launch_rendezvous_point_circuit(), so it fails. But we can't fix these things in a bugfix release. Instead, always put IPv4 addresses in link specifiers. And if a v3 single onion service can't reach any intro points, fail. This supports v3 hidden services on IPv4, dual-stack, and IPv6, and v3 single onion services on IPv4 only. Part of 23820, bugfix on 0.3.2.1-alpha.
| | * | Remove buggy IPv6 support from hs_get_extend_info_from_lspecs()teor2017-10-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The previous version of this function has the following issues: * it doesn't choose between IPv4 and IPv6 addresses correctly, and * it doesn't fall back to a 3-hop path when the address for a direct connection is unreachable. But we can't fix these things in a bugfix release. Instead, treat IPv6 addresses like any other unrecognised link specifier and ignore them. If there is no IPv4 address, return NULL. This supports v3 hidden services on IPv4, dual-stack, and IPv6, and v3 single onion services on IPv4 only. Part of 23820, bugfix on 0.3.2.1-alpha.
* | | | Merge branch 'buf_for_stringbuffer_squashed'Nick Mathewson2017-11-02
|\ \ \ \
| * | | | changes file for 22342Nick Mathewson2017-11-02
| | | | |
| * | | | Refactor geoip_get_dirreq_history to use buf_tNick Mathewson2017-11-02
| | | | |
| * | | | Refactor connection_write_to_buf_impl_(); add one that takes a buf_tNick Mathewson2017-11-02
| | | | |
| * | | | Add a zero-copy buffer move implementation.Nick Mathewson2017-11-02
| | | | |
| * | | | Refactor write_http_response_header_impl() to use buf_tNick Mathewson2017-11-02
| | | | |
| * | | | Add buf_t API helpers for using buffers to construct outputs.Nick Mathewson2017-11-02
| | | | |
* | | | | easy typos while reviewing commitsRoger Dingledine2017-11-01
| | | | |
* | | | | Merge branch 'maint-0.3.2'Nick Mathewson2017-11-01
|\ \ \ \ \ | | |/ / / | |/| | |
| * | | | man: Specify HiddenServiceNumIntroductionPoints for v3David Goulet2017-11-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A v3 service can have between 0 and 20 intro points where v2 has 0 to 10. Fixes #24115 Signed-off-by: David Goulet <dgoulet@torproject.org>
* | | | | rename {,TOR_}RUST_DEPENDENCIESSebastian Hahn2017-11-01
| | | | |
* | | | | Merge remote-tracking branch 'public/owning_control_fd'Nick Mathewson2017-11-01
|\ \ \ \ \
| * | | | | Add __OwningControllerFD to allow controllers without controlportsNick Mathewson2017-10-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This feature should help programs that want to launch and manage a Tor process, as well as programs that want to launch and manage a Tor instance in a separate thread. Right now, they have to open a controlport, and then connect to it, with attendant authentication issues. This feature allows them to just start with an authenticated connection. Bug 23900.
| * | | | | Expose connection_init_accepted_conn.Nick Mathewson2017-10-18
| | | | | |
| * | | | | New function for Tor to treat itself as the "owner" of a socketNick Mathewson2017-10-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Our socket accounting functions assumed that we'd never be asked to close a socket that we didn't open ourselves. But now we want to support taking control sockets that we inherit -- so we need a way of taking ownership of them, so we don't freak out later on when we close them.
| * | | | | Make the mark_socket_open() no-op treat the socket as used.Nick Mathewson2017-10-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is preliminary for extracting the "take socket ownership" code into its own function.
* | | | | | missing changes file for 22605Nick Mathewson2017-11-01
| | | | | |
* | | | | | Merge branch 'tor_api_squashed'Nick Mathewson2017-11-01
|\ \ \ \ \ \
| * | | | | | tor_runner.c: Add a circumlocution and a caveat.Nick Mathewson2017-11-01
| | | | | | |
| * | | | | | Add more usage notes on tor_api.hNick Mathewson2017-11-01
| | | | | | |
| * | | | | | Explain purpose, usage, and status of tor_runner.cNick Mathewson2017-11-01
| | | | | | |
| * | | | | | Add a small library to emulate tor_run_main() with exec()Nick Mathewson2017-11-01
| | | | | | |
| * | | | | | Add a public tor_api.h with an implementation in tor_api.cNick Mathewson2017-11-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The main effect of this change is to commit to an extensible long-term API. Closes ticket 23684.
| * | | | | | Move tor_git_revision into a new module.Nick Mathewson2017-10-18
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | At first, we put the tor_git_revision constant in tor_main.c, so that we wouldn't have to recompile config.o every time the git revision changed. But putting it there had unintended side effect of forcing every program that wanted to link libor.a (including test, test-slow, the fuzzers, the benchmarks, etc) to declare their own tor_git_revision instance. That's not very nice, especially since we want to start supporting others who want to link against Tor (see 23846). So, create a new git_revision.c file that only contains this constant, and remove the duplicated boilerplate from everywhere else. Part of implementing ticket 23845.
* | | | | | trivial comment fixesRoger Dingledine2017-10-31
| | | | | | | | | | | | | | | | | | | | | | | | done while i was trying to debug nearby code
* | | | | | all the other lines here had a tab; make this one blend inRoger Dingledine2017-10-31
| | | | | |
* | | | | | Merge branch 'maint-0.3.2'Nick Mathewson2017-10-31
|\ \ \ \ \ \ | | |/ / / / | |/| | | |
| * | | | | Merge branch 'bug24082_032' into maint-0.3.2Nick Mathewson2017-10-31
| |\ \ \ \ \
| | * | | | | Initialize the mock options in the fuzzing codeNick Mathewson2017-10-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes bug 24082; bugfix on 0.3.0.3-alpha. Found by Brian Carpenter.