]>
git.ipfire.org Git - thirdparty/tor.git/log
Nick Mathewson [Wed, 12 Feb 2020 23:52:35 +0000 (18:52 -0500)]
Add a dire warning about not reformatting the whole codebase yet.
Nick Mathewson [Mon, 10 Feb 2020 17:55:00 +0000 (12:55 -0500)]
clang-format: remove StatementMacros usage
This change lets us use clang-format-6.0, and is okay since we now
require semicolons after HT_PROTOTYPE/GENERATE.
Nick Mathewson [Mon, 10 Feb 2020 17:54:43 +0000 (12:54 -0500)]
Use semicolons after HT_PROTOTYPE and HT_GENERATE.
Nick Mathewson [Mon, 10 Feb 2020 17:54:06 +0000 (12:54 -0500)]
ht.h: Require a semicolon after HT_PROTOTYPE and HT_GENERATE[2]
Nick Mathewson [Thu, 6 Feb 2020 22:09:20 +0000 (17:09 -0500)]
Try to shorten an #error in address.c
Nick Mathewson [Thu, 6 Feb 2020 22:05:53 +0000 (17:05 -0500)]
Break CONNECTION_TESTCAE_ARG across multiple lines
Nick Mathewson [Thu, 6 Feb 2020 22:02:43 +0000 (17:02 -0500)]
Extract verbatim table in uname.c
Nick Mathewson [Thu, 6 Feb 2020 21:24:36 +0000 (16:24 -0500)]
checkSpace: permit wide lines for LCOV_EXCL
We're telling clang-format that a line with LCOV_EXCL must not be
split -- that's fine, but we shouldn't complain when it indents it.
Nick Mathewson [Thu, 6 Feb 2020 21:19:49 +0000 (16:19 -0500)]
Fix a couple more long warning lines
These are not a problem with 2-space indentation, but cocci will
start getting confused when clang-format wraps them with 4-space
indentation.
Nick Mathewson [Fri, 10 Jan 2020 15:20:39 +0000 (10:20 -0500)]
circuitbuild: expect bug message that clang-format will generate.
clang-format wants to put no space here, so we need to tell the test
to expect a lack of a space.
Nick Mathewson [Fri, 10 Jan 2020 20:32:34 +0000 (15:32 -0500)]
checkSpace: be more careful about bad function headers.
Previously we would forbid macro indentations like this:
FOO({
int x;
})
But clang-format sometimes generates those.
Nick Mathewson [Fri, 10 Jan 2020 20:13:30 +0000 (15:13 -0500)]
Wrap columnar tables in "clang-format off/on"
These tables have aligned comments, so we don't want clang-format to
mess with them.
Nick Mathewson [Fri, 10 Jan 2020 20:01:42 +0000 (15:01 -0500)]
Use parentheses to avoid mis-indentations of stringified macro args
clang-format sometimes thinks that "#name" should be written as
"# name" if it appears at the start of a line. Using () appears
to suppress this, while confusing Coccinelle.
Nick Mathewson [Fri, 10 Jan 2020 19:07:11 +0000 (14:07 -0500)]
maps: do not include _ as part of expected prefix in macros.
Doing this makes our macro usage a little clear IMO, and also avoids
having to use an unadorned "new" within a macro. (Clang-format
seems to think that "new" means we're doing C++, and so it generates
some output that checkSpace.pl doesn't care for.)
Nick Mathewson [Fri, 10 Jan 2020 16:32:34 +0000 (11:32 -0500)]
Remove senseless CHECK_PRINTF()s from util_bug.c
These belong in util_bug.h (and they already are there).
Their presence made clang-format misindent these functions in a way
that checkSpace.pl dislikes.
Nick Mathewson [Fri, 10 Jan 2020 15:54:35 +0000 (10:54 -0500)]
log_test_helpers: remove semicolons from end of macros
We want our code to require semicolons after use of these macros,
so that our code formatters and/or analysis tools don't get
confused.
Nick Mathewson [Fri, 10 Jan 2020 15:36:51 +0000 (10:36 -0500)]
Use smaller CPP error messages
Clang-format wants to split these messages across multiple lines,
which confuses the heck out of coccinelle.
Nick Mathewson [Fri, 10 Jan 2020 14:25:40 +0000 (09:25 -0500)]
onion_queue.c: use TAILQ_HEAD less confusingly.
When we use macro inline, clang-format likes to break it in the
middle, which makes checkSpace get confused.
Nick Mathewson [Fri, 10 Jan 2020 14:25:04 +0000 (09:25 -0500)]
checkSpace: don't treat an unindented label as starting a function.
Nick Mathewson [Fri, 10 Jan 2020 13:58:39 +0000 (08:58 -0500)]
prob_distr: use "clang-format off" to avoid wide lines for URLs
Nick Mathewson [Fri, 10 Jan 2020 13:55:18 +0000 (08:55 -0500)]
Use a compile-time assert in control_events.h
(The original idiom here led clang-format to generating a too-wide line.)
Nick Mathewson [Fri, 10 Jan 2020 13:32:15 +0000 (08:32 -0500)]
checkSpace.pl: Allow space between iteration macros and ().
Clang-format wants to put these in, and they do make sense for
consistency.
Also allow more types.
Nick Mathewson [Fri, 10 Jan 2020 13:31:35 +0000 (08:31 -0500)]
checkSpace.pl: Use a data structure for a list of non-function names
Nick Mathewson [Fri, 10 Jan 2020 13:04:28 +0000 (08:04 -0500)]
checkspace: allow spaces in cpp directives.
Nick Mathewson [Thu, 9 Jan 2020 21:21:17 +0000 (16:21 -0500)]
checkSpace.pl: allow {{, ){, and ({.
Nick Mathewson [Tue, 17 Dec 2019 18:58:01 +0000 (13:58 -0500)]
checkSpace: remove the nosplabel test.
Nick Mathewson [Mon, 16 Dec 2019 15:58:32 +0000 (10:58 -0500)]
Temporary clang-format configuration and script.
The format is the same as in my previous efforts here.
The script is a little tricky, since it invokes both clang-format
and codetool, and it makes sure that files do not have a changed
mtime unless there is actually some change in the file.
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.