]>
git.ipfire.org Git - thirdparty/tor.git/log
David Goulet [Wed, 11 Dec 2019 15:30:31 +0000 (10:30 -0500)]
hs-v3: Report SOCKS ExtendedErrors when all intro timed out
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Wed, 11 Dec 2019 15:15:02 +0000 (10:15 -0500)]
hs-v3: Report rendezvous circuit failure SOCKS ExtendedErrors
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Wed, 11 Dec 2019 14:50:43 +0000 (09:50 -0500)]
hs-v3: Report introduction failure SOCKS ExtendedErrors
Signed-off-by: David Goulet <dgoulet@torproject.org>
teor [Tue, 31 Mar 2020 23:56:00 +0000 (09:56 +1000)]
address: Simplify tor_addr_is_valid()
And rewrite the function comment.
Part of 33679.
MrSquanchee [Fri, 20 Mar 2020 18:27:40 +0000 (23:57 +0530)]
Added tests for tor_addr_is_null/valid()
Added tests for tor_addr_is_valid(),
and added tests for tor_addr_is_null(),
which is not modfied.
Ticket 33679
teor [Tue, 7 Apr 2020 07:36:17 +0000 (17:36 +1000)]
Merge branch 'pr1838_squashed'
Nick Mathewson [Mon, 6 Apr 2020 14:48:59 +0000 (10:48 -0400)]
Try rewriting normalize_srcdir to normalize harder.
Nick Mathewson [Sat, 4 Apr 2020 15:31:30 +0000 (11:31 -0400)]
Make check_subsystem_order work in distcheck builds.
Nick Mathewson [Sat, 4 Apr 2020 15:31:30 +0000 (11:31 -0400)]
Make check_subsystem_order work in out-of-tree builds.
Nick Mathewson [Thu, 26 Mar 2020 16:40:56 +0000 (12:40 -0400)]
add changes file for 31634
Nick Mathewson [Thu, 26 Mar 2020 16:37:49 +0000 (12:37 -0400)]
Add a test script to check subsystem order as part of make check.
teor [Mon, 6 Apr 2020 09:10:30 +0000 (19:10 +1000)]
channel: Fix a comment typo
teor [Mon, 6 Apr 2020 09:08:33 +0000 (19:08 +1000)]
channel: Remove a newline at the start of the file
teor [Sun, 5 Apr 2020 07:17:51 +0000 (17:17 +1000)]
Merge branch 'maint-0.4.3'
teor [Sun, 5 Apr 2020 07:17:03 +0000 (17:17 +1000)]
doc: Fix another man page typo
The default value of the option is "auto", not "default".
teor [Sun, 5 Apr 2020 07:12:11 +0000 (17:12 +1000)]
Merge branch 'maint-0.4.3'
teor [Sun, 5 Apr 2020 07:10:37 +0000 (17:10 +1000)]
doc: Fix a typo in the man page
"proceeding" means starting an action.
"preceding" means the thing before this thing.
In this context, it's a bit ambiguous.
teor [Sat, 4 Apr 2020 05:05:34 +0000 (15:05 +1000)]
core/or: Fix a comment typo in onion.h
Comment-only change.
teor [Sat, 4 Apr 2020 03:23:56 +0000 (13:23 +1000)]
Merge branch 'maint-0.4.3'
teor [Sat, 4 Apr 2020 03:20:06 +0000 (13:20 +1000)]
changes: file for ticket 33782
Avoid conflicts between the fake sockets in tor's unit tests, and real
file descriptors. Resolves issues running unit tests with GitHub
Actions, where the process that embeds or launches the tests has
already opened a large number of file descriptors.
Fixes bug 33782; bugfix on 0.2.8.1-alpha.
Found and fixed by Putta Khunchalee.
teor [Fri, 3 Apr 2020 12:10:01 +0000 (22:10 +1000)]
doc: Also stop running practracker in hooks
When making a new maint branch, stop running practracker in hooks.
teor [Fri, 3 Apr 2020 12:06:27 +0000 (22:06 +1000)]
doc: Minor restructure for Release Lifecycle
* make end and beginning of life into second-level sections
* write an intro for beginning
* tweak intro for end
teor [Fri, 3 Apr 2020 12:02:11 +0000 (22:02 +1000)]
Re-apply: doc: Replace "underline" with "## Section name".
Re-applying changes after merge.
teor [Fri, 3 Apr 2020 11:59:19 +0000 (21:59 +1000)]
Merge remote-tracking branch 'tor-github/pr/1739'
Ignored conflicting style changes: they will be re-applied in
the next commit.
Putta Khunchalee [Fri, 3 Apr 2020 09:47:38 +0000 (16:47 +0700)]
Change starting file descriptor for tests.
teor [Fri, 3 Apr 2020 09:11:08 +0000 (19:11 +1000)]
scripts: Ignore editor temporary files
Ignore editor temporary files when autostyling in:
* rectify_include_paths.py
* rename_c_identifier.py
Obviously correct changes to already-reviewed code.
teor [Fri, 3 Apr 2020 04:44:34 +0000 (14:44 +1000)]
Merge branch 'maint-0.4.3'
teor [Fri, 3 Apr 2020 04:43:48 +0000 (14:43 +1000)]
doc: Rewrite the approved-routers man page entry
Obviously correct documentation changes.
George Kadianakis [Wed, 1 Apr 2020 23:38:11 +0000 (02:38 +0300)]
Merge branch 'tor-github/pr/1851'
teor [Wed, 1 Apr 2020 13:03:51 +0000 (23:03 +1000)]
Merge branch 'maint-0.4.3'
David Goulet [Tue, 31 Mar 2020 12:21:12 +0000 (08:21 -0400)]
configure: Fix enabled module variable expansion
Fixes #33646
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Wed, 1 Apr 2020 12:31:20 +0000 (08:31 -0400)]
hs-v3: Move to log notice the registration of an OB instance
This is to allow a visual feedback in the logs for operators setting up Onion
Balance so they can confirm they properly configured the instances.
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Wed, 1 Apr 2020 12:22:36 +0000 (08:22 -0400)]
Merge branch 'tor-github/pr/1844'
George Kadianakis [Mon, 30 Mar 2020 20:24:33 +0000 (23:24 +0300)]
hs-v3: Move ob_subcreds to hs_service_state_t.
It's more natural there since it's runtime state.
George Kadianakis [Mon, 30 Mar 2020 20:17:39 +0000 (23:17 +0300)]
hs-v3: Don't crash after SIGHUP in Onionbalance backend mode.
The ob_subcreds array was not copied after SIGHUP, and that left the
post-SIGHUP service with a NULL ob_subcreds pointer (until the next descriptor
gets build where we regenerate ob_subcreds in hs_ob_refresh_keys()).
Fixes bug #33762; not in any released tor version.
David Goulet [Mon, 30 Mar 2020 17:38:58 +0000 (13:38 -0400)]
Merge branch 'maint-0.4.3'
George Kadianakis [Wed, 11 Mar 2020 13:18:47 +0000 (15:18 +0200)]
hs-v3: Relax severity of a log message when decoding descriptors.
Make it LOG_PROTOCOL_WARN and also add the expiration timestamp in there to
ease debugging in the future.
David Goulet [Mon, 30 Mar 2020 17:36:54 +0000 (13:36 -0400)]
changes: Add file for ticket 33014
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Mon, 30 Mar 2020 17:31:56 +0000 (13:31 -0400)]
Merge branch 'tor-github/pr/1775'
Nick Mathewson [Sun, 8 Mar 2020 19:49:40 +0000 (15:49 -0400)]
Use a macro to make our hs_opts checking terser.
Nick Mathewson [Sat, 7 Mar 2020 14:32:54 +0000 (09:32 -0500)]
Use SECTION_HEADER, not "HiddenServiceDir".
Add a nonfatal assertion about a branch that should be unreachable.
Nick Mathewson [Thu, 5 Mar 2020 15:28:06 +0000 (10:28 -0500)]
Update expected log messages in tests to new format.
Nick Mathewson [Fri, 28 Feb 2020 13:46:18 +0000 (08:46 -0500)]
Derive hidden service configuration from hs_opts_t.
This simplifies our parsing code by about 150 lines, and makes the
functions more straightforward.
Nick Mathewson [Tue, 21 Jan 2020 15:23:27 +0000 (10:23 -0500)]
Start using confmgt logic to parse HS configuration.
This patch doesn't actually use the results of the parsed object to
create the service configuration: subsequent patches will do
that. This patch just introduces the necessary configuration tables
and starts using them to validate the configuration.
As of this writing, this patch breaks tests. I'll likely fix that
in a rebase later on: the current error messages for failures to
parse options are a regression, so I've opened #33640 for that.
Nick Mathewson [Wed, 26 Feb 2020 15:12:54 +0000 (10:12 -0500)]
Use config_lines_partition() to parse hs config sections.
rl1987 [Sat, 28 Mar 2020 12:01:07 +0000 (14:01 +0200)]
Put *.a wildcard entry into .gitignore instead of listing all .a files
Nick Mathewson [Fri, 27 Mar 2020 13:15:29 +0000 (09:15 -0400)]
Merge remote-tracking branch 'tor-github/pr/1832/head'
Roger Dingledine [Fri, 27 Mar 2020 07:48:15 +0000 (03:48 -0400)]
fix typo in struct addr_policy_t comment
Roger Dingledine [Fri, 27 Mar 2020 07:46:54 +0000 (03:46 -0400)]
correct tor_addr_family() function comment
kind of a losing game to remember to update that comment when
we add another possible family, but hey, maybe it will be a while
until we add one more.
Roger Dingledine [Fri, 27 Mar 2020 06:56:59 +0000 (02:56 -0400)]
spell consensus more right in comments
Roger Dingledine [Fri, 27 Mar 2020 06:51:01 +0000 (02:51 -0400)]
fix typo in log message
Nick Mathewson [Thu, 26 Mar 2020 16:30:30 +0000 (12:30 -0400)]
Teach --check-subsystem-order to take input from stdin
Nick Mathewson [Fri, 14 Feb 2020 17:58:39 +0000 (12:58 -0500)]
Extend includes.py to compare topology with subsystem init order.
Nick Mathewson [Mon, 30 Sep 2019 14:10:50 +0000 (10:10 -0400)]
Document the --dbg- prefix in tor.1
Nick Mathewson [Mon, 30 Sep 2019 14:07:20 +0000 (10:07 -0400)]
Add --dbg-dump-subsystem-list command to list the subsystems.
I'm prefixing this with --dbg-* because it is not meant to be used
externally.
Bartosz Duszel [Thu, 26 Mar 2020 15:32:13 +0000 (16:32 +0100)]
doc: Remove TODO secion in README.1st.md
It seems like this section is not valid anymore.
Most of this topics are already explained in different
files.
Nick Mathewson [Mon, 30 Sep 2019 14:05:42 +0000 (10:05 -0400)]
Implement a function to list the subsystems to stdout.
Nick Mathewson [Fri, 14 Feb 2020 14:57:46 +0000 (09:57 -0500)]
Add a SUBSYS_DECLARE_LOCATION() to every subsystem.
Nick Mathewson [Fri, 14 Feb 2020 14:39:36 +0000 (09:39 -0500)]
Add a "location" field for subsystems to declare which file they are in.
Bartosz Duszel [Thu, 26 Mar 2020 15:19:42 +0000 (16:19 +0100)]
doc: Replace "underline" with "## Section name".
This approach doesn't require variable-length underlines.
Bartosz Duszel [Thu, 26 Mar 2020 14:59:17 +0000 (15:59 +0100)]
doc: Remove first, empty line in the file.
Bartosz Duszel [Thu, 26 Mar 2020 14:54:29 +0000 (15:54 +0100)]
doc: Updates paths to the top of the source tree.
Example:
.../doc/HACKING is now doc/HACKING
Nick Mathewson [Thu, 26 Mar 2020 14:38:08 +0000 (10:38 -0400)]
Merge remote-tracking branch 'tor-github/pr/1780/head'
David Goulet [Thu, 26 Mar 2020 13:15:01 +0000 (09:15 -0400)]
Merge branch 'maint-0.4.3'
David Goulet [Thu, 26 Mar 2020 13:14:25 +0000 (09:14 -0400)]
Merge branch 'tor-github/pr/1794' into maint-0.4.3
Nick Mathewson [Wed, 25 Mar 2020 14:56:27 +0000 (10:56 -0400)]
Merge branch 'maint-0.4.3'
Nick Mathewson [Wed, 25 Mar 2020 14:56:27 +0000 (10:56 -0400)]
Merge branch 'maint-0.4.2' into maint-0.4.3
Nick Mathewson [Wed, 25 Mar 2020 14:56:27 +0000 (10:56 -0400)]
Merge branch 'maint-0.4.1' into maint-0.4.2
Nick Mathewson [Wed, 25 Mar 2020 14:38:01 +0000 (10:38 -0400)]
Merge branch 'bug33651'
George Kadianakis [Mon, 23 Mar 2020 14:57:49 +0000 (16:57 +0200)]
Merge branch 'tor-github/pr/1789'
George Kadianakis [Mon, 23 Mar 2020 14:57:27 +0000 (16:57 +0200)]
Merge branch 'maint-0.4.3'
George Kadianakis [Mon, 23 Mar 2020 14:56:59 +0000 (16:56 +0200)]
Merge branch 'tor-github/pr/1788' into maint-0.4.3
Nick Mathewson [Mon, 23 Mar 2020 13:27:16 +0000 (09:27 -0400)]
Edits requested by teor
Nick Mathewson [Mon, 23 Mar 2020 13:05:45 +0000 (09:05 -0400)]
Merge remote-tracking branch 'tor-github/pr/1797/head'
Bartosz Duszel [Sun, 22 Mar 2020 12:50:58 +0000 (13:50 +0100)]
Update README files with common style.
- external links use markdown's []() format,
- local files are formated with backquotes,
- duplicated new lines were removed,
- unnecesary single spaces were removed,
- broken links and local paths were updated.
teor [Fri, 20 Mar 2020 18:10:24 +0000 (04:10 +1000)]
practracker: Accept changes
Accept a smaller file and function.
Let router.c grow slightly without warning.
Accept an extra comment line.
Cleanup after 32588.
teor [Fri, 20 Mar 2020 17:42:07 +0000 (03:42 +1000)]
Add some comments about future relay IPv6 work
Comments about 33681.
teor [Tue, 14 Jan 2020 11:49:29 +0000 (21:49 +1000)]
parseconf: Add ORPort and DirPort auto tests
These tests don't actually trigger bug 32588, but they do increase
the coverage of the auto port config code.
Tests for 32588.
teor [Fri, 20 Mar 2020 18:02:08 +0000 (04:02 +1000)]
Merge branch 'bug32588_043' into bug32588_master
teor [Fri, 20 Mar 2020 18:01:00 +0000 (04:01 +1000)]
Merge branch 'bug32588_042' into bug32588_043
Merge static function declaration deletions from bug32588_042 and
maint-0.4.3 in app/config/config.c.
teor [Fri, 20 Mar 2020 17:52:32 +0000 (03:52 +1000)]
Merge branch 'bug32588_041' into bug32588_042
teor [Fri, 20 Mar 2020 17:50:36 +0000 (03:50 +1000)]
Merge branch 'bug32588_035' into bug32588_041
Merge tests from maint-0.4.1 with new tests from bug32588_035
in test_router.c.
Nick Mathewson [Thu, 19 Mar 2020 13:50:36 +0000 (09:50 -0400)]
Add a test for the localhost case.
Nick Mathewson [Thu, 19 Mar 2020 13:44:27 +0000 (09:44 -0400)]
Extend test to handle router_get_advertised_ipv6_or_ap
Nick Mathewson [Thu, 19 Mar 2020 13:36:47 +0000 (09:36 -0400)]
Add a test for router_get_advertised_or_port_by_af().
Nick Mathewson [Thu, 19 Mar 2020 13:17:09 +0000 (09:17 -0400)]
Add tests for get_first_advertised_{addr,port}_by_type_af()
teor [Wed, 8 Jan 2020 07:34:37 +0000 (17:34 +1000)]
router: Refactor IPv6 ORPort function logic
Return early when there is no suitable IPv6 ORPort.
Show the address and port on error, using a convenience function.
Code simplification and refactoring.
Cleanup after 32588.
teor [Fri, 20 Dec 2019 04:30:51 +0000 (14:30 +1000)]
router: Stop advertising incorrect auto IPv6 ORPorts
When IPv6 ORPorts are set to "auto", tor relays and bridges would
advertise an incorrect port in their descriptor.
This may be a low-severity memory safety issue, because the published
port number may be derived from uninitialised or out-of-bounds memory
reads.
Fixes bug 32588; bugfix on 0.2.3.9-alpha.
teor [Fri, 20 Mar 2020 07:17:11 +0000 (17:17 +1000)]
practracker: Accept larger dirvote file
Due to improved function comments.
teor [Fri, 20 Mar 2020 07:10:14 +0000 (17:10 +1000)]
relay: Set some output arguments in stubs
Fixes part of bug 33674; not in any released version of tor.
Nick Mathewson [Fri, 20 Mar 2020 12:06:53 +0000 (08:06 -0400)]
Merge branch 'maint-0.4.3'
Nick Mathewson [Fri, 20 Mar 2020 12:06:46 +0000 (08:06 -0400)]
Merge remote-tracking branch 'tor-github/pr/1824/head'
Nick Mathewson [Fri, 20 Mar 2020 12:06:30 +0000 (08:06 -0400)]
Merge remote-tracking branch 'tor-github/pr/1823/head' into maint-0.4.3
Nick Mathewson [Fri, 20 Mar 2020 11:56:42 +0000 (07:56 -0400)]
Merge branch 'maint-0.4.3'
teor [Fri, 20 Mar 2020 07:01:06 +0000 (17:01 +1000)]
relay/dirauth: Set some output arguments in stubs
And document how some functions set their output arguments.
Fixes bug 33674; bugfix on 0.4.3.1-alpha.
Nick Mathewson [Fri, 20 Mar 2020 00:04:53 +0000 (20:04 -0400)]
Set *have_low_ports_out from stub port_parse_ports_relay().
Previously we just ignored this option, which would leave it unset,
and cause an assertion failure later on when running with the User
option.
Fixes bug 33668; bugfix on 0.4.3.1-alpha.
teor [Fri, 20 Mar 2020 07:33:56 +0000 (17:33 +1000)]
Merge branch 'ticket33678_043' into ticket33678_master
Don't take the practracker disable changes from 0.4.3.
teor [Fri, 20 Mar 2020 07:32:57 +0000 (17:32 +1000)]
practracker: Disable practracker in git hooks
Disable our coding standards best practices tracker in our git hooks.
0.4.3 branches only.
Closes ticket 33678.
teor [Fri, 20 Mar 2020 05:40:39 +0000 (15:40 +1000)]
Merge branch 'maint-0.4.3'
teor [Fri, 20 Mar 2020 05:39:55 +0000 (15:39 +1000)]
dirauth: Remove a duplicate macro definition
Obviously correct changes to already-reviewed code.