]>
git.ipfire.org Git - thirdparty/tor.git/log
Nick Mathewson [Fri, 10 Jan 2020 13:32:56 +0000 (08:32 -0500)]
codetool: post-processor for clang-format
This code transformer makes a couple of changes that we want for our
source code, and can be expanded to handle more.
Nick Mathewson [Thu, 6 Feb 2020 13:28:25 +0000 (08:28 -0500)]
Merge branch 'bug33103'
Nick Mathewson [Thu, 6 Feb 2020 13:27:12 +0000 (08:27 -0500)]
Merge remote-tracking branch 'public/practracker_regen_overbroad_2'
David Goulet [Tue, 4 Feb 2020 14:56:25 +0000 (09:56 -0500)]
test: Missing hs_init() in some hs_control tests
Without the hs_init(), the caches are not initialized and the previous commit
was causing an assert due to the missing caches.
But regardless of that, those tests were not initializing but were calling
hs_free_all().
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Tue, 4 Feb 2020 14:25:55 +0000 (09:25 -0500)]
hs-v3: Remove descriptor when we remove client authorization
When the ONION_CLIENT_AUTH_REMOVE command is given to tor, now also remove the
descriptor associated with the client authorization credentials.
Fixes #33148
Signed-off-by: David Goulet <dgoulet@torproject.org>
Nick Mathewson [Thu, 6 Feb 2020 00:18:32 +0000 (19:18 -0500)]
Fix a memory leak in handling GETINFO.
Fixes bug 33103; bugfix on 0.4.3.1-alpha.
teor [Wed, 5 Feb 2020 22:39:46 +0000 (08:39 +1000)]
Merge branch 'pr1701-fix-typo'
David Goulet [Thu, 30 Jan 2020 16:18:34 +0000 (11:18 -0500)]
configure: Fix and improve summary pretty printing
Fixes #32230
Signed-off-by: David Goulet <dgoulet@torproject.org>
Nick Mathewson [Wed, 5 Feb 2020 13:51:22 +0000 (08:51 -0500)]
Merge remote-tracking branch 'tor-github/pr/1703'
George Kadianakis [Tue, 4 Feb 2020 12:09:41 +0000 (13:09 +0100)]
Merge branch 'tor-github/pr/1704'
George Kadianakis [Tue, 4 Feb 2020 12:06:00 +0000 (13:06 +0100)]
Merge branch 'tor-github/pr/1700'
teor [Tue, 4 Feb 2020 04:36:04 +0000 (14:36 +1000)]
address: Fix comments in address.h
And improve inline function spacing, and function declaration
spacing.
Comment-only change.
Roger Dingledine [Tue, 4 Feb 2020 04:21:58 +0000 (23:21 -0500)]
go in to fix one typo, end up fixing more
Nick Mathewson [Mon, 3 Feb 2020 18:36:56 +0000 (13:36 -0500)]
practracker: use shutil.move so --regen will work on windows
On windows you can't os.rename() a file if the target filename
already exists.
Nick Mathewson [Mon, 3 Feb 2020 18:11:58 +0000 (13:11 -0500)]
practracker: integration tests for --regen and --regen-overbroad
Nick Mathewson [Mon, 3 Feb 2020 18:02:12 +0000 (13:02 -0500)]
practracker: add a --regen-overbroad option to remove overbroad exceptions.
Closes ticket 32372.
David Goulet [Mon, 3 Feb 2020 16:57:30 +0000 (11:57 -0500)]
hs-v3: Purge ephemeral client auth on NEWNYM
Fixes #33139.
Signed-off-by: David Goulet <dgoulet@torproject.org>
Christian Clauss [Mon, 3 Feb 2020 15:55:58 +0000 (17:55 +0200)]
Remove unused import UserDict
Fixes: https://trac.torproject.org/projects/tor/ticket/32791#comment:3
Unblocks: #1686
David Goulet [Thu, 30 Jan 2020 19:06:09 +0000 (14:06 -0500)]
Merge branch 'tor-github/pr/1687'
David Goulet [Thu, 30 Jan 2020 18:53:32 +0000 (13:53 -0500)]
Merge branch 'tor-github/pr/1692'
David Goulet [Thu, 30 Jan 2020 18:48:36 +0000 (13:48 -0500)]
Merge branch 'tor-github/pr/1697'
Nick Mathewson [Thu, 30 Jan 2020 17:56:06 +0000 (12:56 -0500)]
Fix a changelog typo
Nick Mathewson [Thu, 30 Jan 2020 16:19:41 +0000 (11:19 -0500)]
Merge branch 'maint-0.4.2'
Using "ours" strategy to avoid version bump.
Nick Mathewson [Thu, 30 Jan 2020 16:19:23 +0000 (11:19 -0500)]
Merge branch 'maint-0.4.1' into maint-0.4.2
Using "ours" strategy to avoid version bump
Nick Mathewson [Thu, 30 Jan 2020 16:19:16 +0000 (11:19 -0500)]
bump to 0.4.2.6-dev
Nick Mathewson [Thu, 30 Jan 2020 16:18:50 +0000 (11:18 -0500)]
Bump to 0.4.1.8-dev
David Goulet [Thu, 30 Jan 2020 16:14:50 +0000 (11:14 -0500)]
hs-v2: Turn logs into protocol warning
All of those can be triggered remotely so change them to protocol warnings.
Fixes #32706
Signed-off-by: David Goulet <dgoulet@torproject.org>
Nick Mathewson [Thu, 30 Jan 2020 15:05:42 +0000 (10:05 -0500)]
copy 0.4.1.8 and 0.4.2.6 entries to master ChangeLog, ReleaseNotes.
Nick Mathewson [Thu, 30 Jan 2020 14:58:23 +0000 (09:58 -0500)]
Merge branch 'bug32673_035'
Nick Mathewson [Thu, 30 Jan 2020 14:55:40 +0000 (09:55 -0500)]
Merge branch 'bug33093_logging_035'
Nick Mathewson [Thu, 30 Jan 2020 14:43:34 +0000 (09:43 -0500)]
Do not set "once" when calling tor_bug_occurred_ from BUG().
The "once" flag makes tor_bug_occurred_() say that future instances
of the warning will be suppressed -- but that's not something that
BUG() does. Fixes bug 33095; bugfix on 0.4.1.1-alpha.
Nick Mathewson [Thu, 30 Jan 2020 00:44:34 +0000 (19:44 -0500)]
Merge branch 'maint-0.4.2'
Use "-s ours" to avoid version bump.
Nick Mathewson [Thu, 30 Jan 2020 00:44:29 +0000 (19:44 -0500)]
Bump version to 0.4.2.6
Nick Mathewson [Thu, 30 Jan 2020 00:42:43 +0000 (19:42 -0500)]
Merge branch 'maint-0.4.1' into maint-0.4.2
"Ours" merge to avoid version bump.
Nick Mathewson [Thu, 30 Jan 2020 00:42:24 +0000 (19:42 -0500)]
bump to 0.4.1.8
teor [Wed, 29 Jan 2020 21:55:20 +0000 (07:55 +1000)]
Merge branch 'maint-0.4.2'
teor [Wed, 29 Jan 2020 21:55:12 +0000 (07:55 +1000)]
Merge branch 'maint-0.4.1' into maint-0.4.2
teor [Wed, 29 Jan 2020 21:55:05 +0000 (07:55 +1000)]
Merge branch 'maint-0.4.0' into maint-0.4.1
teor [Wed, 29 Jan 2020 21:54:58 +0000 (07:54 +1000)]
Merge branch 'maint-0.3.5' into maint-0.4.0
teor [Wed, 29 Jan 2020 21:54:39 +0000 (07:54 +1000)]
Merge remote-tracking branch 'tor-github/pr/1634' into maint-0.4.1
teor [Wed, 29 Jan 2020 21:53:53 +0000 (07:53 +1000)]
Merge remote-tracking branch 'tor-github/pr/1614' into maint-0.3.5
Nick Mathewson [Wed, 29 Jan 2020 13:49:01 +0000 (08:49 -0500)]
buf_read_from_tls: Return ERROR_MISC, not WANTWRITE, on BUG().
Fixes bug 32673; bugfix on 0.3.0.4-alpha. We introduced these
checks in
ee5471f9aab5526 to help diagnose 21369, but we used "-1"
when "TOR_TLS_ERROR_MISC" would have been correct. Found by opara.
I don't think that this is actually getting triggered in the wild,
but if it were, it could cause nasty behavior: spurious
WANTREAD/WANTWRITE returns have a way of turning into CPU-eating
busy-loops.
Nick Mathewson [Wed, 29 Jan 2020 13:31:22 +0000 (08:31 -0500)]
Change BUG() messages in buf_flush_to_tls() to IF_BUG_ONCE()
We introduced these BUG() checks in
b0ddaac07428a06 to prevent a
recurrence of bug 23690. But there's a report of the BUG() message
getting triggered and filling up the disk. Let's change it to
IF_BUG_ONCE().
Fixes bug 33093; bugfix on 0.3.2.2-alpha.
teor [Wed, 29 Jan 2020 08:27:53 +0000 (18:27 +1000)]
changes: file for 33091
teor [Wed, 29 Jan 2020 08:23:38 +0000 (18:23 +1000)]
mainloop: Simplify ip_address_changed()
Simplify ip_address_changed() by removing redundant checks
(all exits are relays, and need to rebuild their descriptor when their
IP addresses change).
Rewrite the function comment, and rename the argument, so the function
is easier to understand and use.
Closes 33091.
teor [Wed, 29 Jan 2020 08:22:21 +0000 (18:22 +1000)]
connection: Improve function comments
Improve the function comments on connection_finished_connecting(),
to describe what the function actually does.
Part of 33091.
Nick Mathewson [Tue, 28 Jan 2020 13:15:21 +0000 (08:15 -0500)]
Merge remote-tracking branch 'tor-github/pr/1680'
Nick Mathewson [Tue, 28 Jan 2020 12:55:34 +0000 (07:55 -0500)]
Merge remote-tracking branch 'tor-github/pr/1689'
teor [Tue, 28 Jan 2020 09:55:35 +0000 (19:55 +1000)]
Travis: Stop allowing stem test failures
Stop allowing failures on the Travis CI stem tests job. It looks like
all the stem hangs we were seeing are now fixed, but let's make sure we
see them if they happen again.
Closes ticket 33075.
cclauss [Tue, 28 Jan 2020 00:38:54 +0000 (01:38 +0100)]
Use print() function in both Python 2 and Python 3
David Goulet [Mon, 27 Jan 2020 17:04:25 +0000 (12:04 -0500)]
Merge branch 'tor-github/pr/1683'
Taylor Yu [Fri, 24 Jan 2020 17:57:45 +0000 (11:57 -0600)]
changes file for ticket 33039
Taylor Yu [Fri, 24 Jan 2020 16:33:01 +0000 (10:33 -0600)]
tests for ticket 33039
Taylor Yu [Fri, 24 Jan 2020 15:06:30 +0000 (09:06 -0600)]
fix leak in GETCONF
Fix a memory leak introduced by refactoring of control reply
formatting code. Fixes bug 33039; bugfix on 0.4.3.1-alpha.
Nick Mathewson [Thu, 23 Jan 2020 15:26:09 +0000 (10:26 -0500)]
Git hooks: remove support for 0.2.9 directory layout.
We no longer will be pushing or committing things in branches that
use src/common or src/or.
Resolves ticket 32957.
Nick Mathewson [Thu, 23 Jan 2020 13:55:55 +0000 (08:55 -0500)]
update doc/HACKING/ReleasingTor.md
Nick Mathewson [Thu, 23 Jan 2020 01:30:46 +0000 (20:30 -0500)]
Bump to 0.4.3.1-alpha-dev
David Goulet [Wed, 22 Jan 2020 19:32:30 +0000 (14:32 -0500)]
Merge branch 'tor-github/pr/1677'
Alexander Færøy [Mon, 20 Jan 2020 18:29:30 +0000 (18:29 +0000)]
Lower log level of standard error messages from PT's.
This patch lowers the log level of error messages from PT processes from
warning to debug.
See: https://bugs.torproject.org/33005
Nick Mathewson [Wed, 22 Jan 2020 18:10:54 +0000 (13:10 -0500)]
pick a release date
Nick Mathewson [Wed, 22 Jan 2020 18:10:09 +0000 (13:10 -0500)]
Add some changelog edits from seborn
Nick Mathewson [Wed, 22 Jan 2020 16:56:44 +0000 (11:56 -0500)]
draft a changelog blurb for 0.4.3.1-alpha
rl1987 [Wed, 22 Jan 2020 12:25:30 +0000 (20:25 +0800)]
Add changes file
rl1987 [Wed, 22 Jan 2020 11:42:47 +0000 (19:42 +0800)]
Run doxygen makefile target on Travis
teor [Tue, 21 Jan 2020 23:27:40 +0000 (09:27 +1000)]
dir_connection_t: Explain dirconn_direct better
Direct connections can use a DirPort or ORPort.
Indirect connections must use a multi-hop Tor circuit.
Comment-only changes.
Nick Mathewson [Tue, 21 Jan 2020 17:33:05 +0000 (12:33 -0500)]
Bump to 0.4.3.1-alpha
Nick Mathewson [Tue, 21 Jan 2020 17:32:33 +0000 (12:32 -0500)]
changelog: small edits
Nick Mathewson [Tue, 21 Jan 2020 16:37:10 +0000 (11:37 -0500)]
Run format_changelog.py
Nick Mathewson [Tue, 21 Jan 2020 16:35:59 +0000 (11:35 -0500)]
Initial incorporation of 0.4.3.x changelogs.
Nick Mathewson [Tue, 21 Jan 2020 16:33:26 +0000 (11:33 -0500)]
Remove changes files that already appeared in 0.4.2.5
David Goulet [Mon, 20 Jan 2020 15:47:49 +0000 (10:47 -0500)]
Merge branch 'tor-github/pr/1675'
David Goulet [Mon, 20 Jan 2020 15:44:03 +0000 (10:44 -0500)]
Merge branch 'tor-github/pr/1668'
teor [Mon, 20 Jan 2020 06:40:02 +0000 (16:40 +1000)]
doc: Minor man page fixes
Fix a client port list that's missing HTTPTunnelPort.
Wrap a long line.
teor [Mon, 20 Jan 2020 06:38:02 +0000 (16:38 +1000)]
doc: Improve port flags in man page
Explain that:
* most flags default to off
* flags that default to on are specified
Document PreferIPv6Automap in its "No" form, because it's on by
default.
Cleanup after 32637.
teor [Mon, 20 Jan 2020 06:17:38 +0000 (16:17 +1000)]
config: Make clients tell dual-stack exits they prefer IPv6
Make Tor clients tell dual-stack exits that they prefer IPv6
connections.
This change is equivalent to setting the PreferIPv6 flag on
SOCKSPorts (and most other listener ports). Tor Browser has
been setting this flag for some time, and we want to remove a
client distinguisher at exits.
Also update the man page, putting all the IP flags in their
non-default forms.
Closes ticket 32637.
teor [Mon, 20 Jan 2020 05:52:40 +0000 (15:52 +1000)]
Merge remote-tracking branch 'tor-github/pr/1673'
teor [Mon, 20 Jan 2020 03:42:13 +0000 (13:42 +1000)]
test/nodelist: Remove ROUTERSTATUS_FORMAT_NO_CONSENSUS_METHOD
When we removed obsolete consensus methods in 32695, we also
removed ROUTERSTATUS_FORMAT_NO_CONSENSUS_METHOD, so we need to
remove it from the routerstatus format tests.
Part of 20218.
teor [Mon, 20 Jan 2020 05:50:54 +0000 (15:50 +1000)]
Merge branch 'ticket20218_rebased_squashed' into ticket20218_merged
* ticket 32695 removed networkstatus_consensus_has_ipv6(),
keep that change in master.
* ticket 20218 modifies the function name and comment for
routerstatus_has_visibly_changed(), keep that change
in ticket20218_rebased_squashed.
Nick Mathewson [Fri, 17 Jan 2020 14:27:58 +0000 (09:27 -0500)]
Rename test to match new identifier.
Nick Mathewson [Fri, 17 Jan 2020 14:23:32 +0000 (09:23 -0500)]
split a wide line
Nick Mathewson [Fri, 17 Jan 2020 14:22:12 +0000 (09:22 -0500)]
Rename routerstatus_has_changed to routerstatus_has_visibly_changed
This is an automated commit, generated by this command:
./scripts/maint/rename_c_identifier.py \
routerstatus_has_changed routerstatus_has_visibly_changed
It was generated with --no-verify, since it introduces a wide line.
I'll fix it in a subsequent commit.
Nick Mathewson [Fri, 17 Jan 2020 14:20:00 +0000 (09:20 -0500)]
Update routerstatus_has_changed tests.
Now they also check whether output of routerstatus_format_entry()
has changed.
Nick Mathewson [Thu, 16 Jan 2020 17:14:14 +0000 (12:14 -0500)]
Add unit test for routerstatus_has_changed()
teor [Mon, 20 Jan 2020 05:40:42 +0000 (15:40 +1000)]
Merge remote-tracking branch 'tor-github/pr/1671'
teor [Mon, 20 Jan 2020 05:40:08 +0000 (15:40 +1000)]
Merge remote-tracking branch 'tor-github/pr/1667'
teor [Wed, 15 Jan 2020 23:38:26 +0000 (09:38 +1000)]
add_c_file: Fix "control line not preceded by a blank line"
Fix dirauth and relay module include.am add_c_file.py
"control line not preceded by a blank line" errors.
Also remove a duplicate ADD_C_FILE: SOURCES in the relay module.
Obviously correct fixes to already-reviewed code.
teor [Mon, 20 Jan 2020 03:20:42 +0000 (13:20 +1000)]
add_c_file: Replace asserts with exceptions
Closes 32962.
teor [Mon, 20 Jan 2020 03:20:14 +0000 (13:20 +1000)]
add_c_file: Improve script documentation
Part of 32962.
teor [Mon, 20 Jan 2020 03:04:02 +0000 (13:04 +1000)]
add_c_file: Improve tor source directory checks
Check that the script isn't in a tor build directory, by looking
for a src/include.am file.
Part of 32962.
Nick Mathewson [Fri, 17 Jan 2020 13:49:24 +0000 (08:49 -0500)]
Fix a small lint-changes warning.
Nick Mathewson [Fri, 17 Jan 2020 13:49:56 +0000 (08:49 -0500)]
Merge remote-tracking branch 'tor-github/pr/1529'
Nick Mathewson [Mon, 6 Jan 2020 13:45:29 +0000 (08:45 -0500)]
Initialize publish/subscribe code when running as an NT service.
Fixes bug 32778; bugfix on 0.4.1.1-alpha.
Nick Mathewson [Fri, 17 Jan 2020 13:39:56 +0000 (08:39 -0500)]
Revert "Use tor_api.h entry points in ntmain.c."
This reverts commit
dca2629480f143ed8deb71b73b15c7c5ff890571 .
Nick Mathewson [Fri, 17 Jan 2020 13:39:49 +0000 (08:39 -0500)]
Revert "Restore feature where nt-services detect non-"run_tor" modes."
This reverts commit
5c240db0bf7751d74ba438a1ca4ef0d051a53df7 .
Nick Mathewson [Fri, 17 Jan 2020 13:37:33 +0000 (08:37 -0500)]
Merge branch 'ticket32806'
Nick Mathewson [Fri, 17 Jan 2020 13:31:18 +0000 (08:31 -0500)]
Remove some dead checks
The only code that could set these options to be negative was in the
unit tests.
Nick Mathewson [Fri, 17 Jan 2020 13:25:09 +0000 (08:25 -0500)]
fix a stray asterisk in a comment
Nick Mathewson [Fri, 17 Jan 2020 12:50:50 +0000 (07:50 -0500)]
Merge branch 'ticket32487_squashed_and_merged'
Nick Mathewson [Thu, 16 Jan 2020 21:42:01 +0000 (16:42 -0500)]
Merge branch 'ticket32695_squashed'
Nick Mathewson [Wed, 15 Jan 2020 16:26:14 +0000 (11:26 -0500)]
Remove functions that checked for pre-ipv6 consensus.
We no longer need or need to test:
* node_awaiting_ipv6()
* networkstatus_consensus_has_ipv6().