]>
git.ipfire.org Git - thirdparty/tor.git/log
Nick Mathewson [Mon, 16 Dec 2019 17:58:58 +0000 (12:58 -0500)]
Include x509.h in tortls_internal.h.
This gives us the definition of tor_x509_cert_impl_t, and makes us
less dependent on include order.
Nick Mathewson [Mon, 16 Dec 2019 17:58:25 +0000 (12:58 -0500)]
Include sys/types.h in fdio.h, for "off_t".
Otherwise our compilation depends on include order.
Nick Mathewson [Mon, 16 Dec 2019 17:57:27 +0000 (12:57 -0500)]
Use raw_assert in ht.h
Also, include torerr.h from ht.h if we are using raw_assert.
Otherwise, our includes need to be ordered so that ht.h comes after
util_log.h.
Nick Mathewson [Tue, 3 Dec 2019 05:51:09 +0000 (00:51 -0500)]
Remove extra ; from tt_assert() macro definition.
We were actually omitting the semicolon in a few places, leading to
confusing indentation and some cocci failures.
Nick Mathewson [Mon, 2 Dec 2019 22:04:17 +0000 (17:04 -0500)]
Use new ENABLE/DISABLE_GCC_WARNING
This is an automated commit, generated by:
perl -i -pe 'next if /define/; s/((?:ENABLE|DISABLE)_GCC_WARNING)\(([A-Za-z0-9_\-]+)\)/$1(\"-W$2\")/' src/*/*/*.[ch] src/*/*.[ch]
Nick Mathewson [Mon, 2 Dec 2019 21:57:37 +0000 (16:57 -0500)]
Replace DISABLE/ENABLE_GCC_WARNING with something that will confuse clang-format less
teor [Sun, 15 Dec 2019 22:16:28 +0000 (08:16 +1000)]
Merge branch 'maint-0.4.2'
teor [Sun, 15 Dec 2019 22:16:20 +0000 (08:16 +1000)]
Merge branch 'maint-0.4.1' into maint-0.4.2
teor [Sun, 15 Dec 2019 22:16:12 +0000 (08:16 +1000)]
Merge branch 'maint-0.4.0' into maint-0.4.1
teor [Sun, 15 Dec 2019 22:16:04 +0000 (08:16 +1000)]
Merge branch 'maint-0.3.5' into maint-0.4.0
teor [Sun, 15 Dec 2019 22:15:55 +0000 (08:15 +1000)]
Merge branch 'maint-0.2.9' into maint-0.3.5
teor [Sun, 15 Dec 2019 22:15:19 +0000 (08:15 +1000)]
Merge remote-tracking branch 'tor-github/pr/1505'
teor [Sun, 15 Dec 2019 22:14:29 +0000 (08:14 +1000)]
Merge remote-tracking branch 'tor-github/pr/1577' into maint-0.4.2
teor [Sun, 15 Dec 2019 22:14:04 +0000 (08:14 +1000)]
Merge remote-tracking branch 'tor-github/pr/1576' into maint-0.3.5
teor [Sun, 15 Dec 2019 22:13:38 +0000 (08:13 +1000)]
Merge remote-tracking branch 'tor-github/pr/1575' into maint-0.2.9
Nick Mathewson [Fri, 13 Dec 2019 16:09:17 +0000 (11:09 -0500)]
Merge remote-tracking branch 'tor-github/pr/1598'
teor [Thu, 12 Dec 2019 06:12:18 +0000 (16:12 +1000)]
changes: update changes file for 32609
teor [Thu, 12 Dec 2019 06:08:05 +0000 (16:08 +1000)]
Makefile: Remove the broken, duplicate check-practracker-unit-test
This test doesn't set PYTHON, and ignores USE_PYTHON. And it's already
listed in TEST_SCRIPTS.
Fixes CI issue 32705.
teor [Thu, 12 Dec 2019 05:59:47 +0000 (15:59 +1000)]
src/ext: Add __future__ imports for python 3 compatibility
Closes ticket 32732.
teor [Thu, 12 Dec 2019 05:58:51 +0000 (15:58 +1000)]
python: Add __future__ imports for python 3 compatibility
Except for src/ext, which we may not want to modify.
Closes ticket 32732.
George Kadianakis [Tue, 10 Dec 2019 16:34:00 +0000 (18:34 +0200)]
Merge branch 'tor-github/pr/1581'
David Goulet [Tue, 3 Dec 2019 16:08:13 +0000 (11:08 -0500)]
hs-v3: Handle client rendezvous circuit timeout
With v3, the "pending_final_cpath" of a circuit is always NULL which means
that for v3, established client rendezvous circuit waiting for the intro point
to ACK, will always end up timing out quickly.
This can increase the delays to which you connect to a service since in order
to succeed, the rendezvous circuit needs to fully established
(CIRCUIT_PURPOSE_C_REND_JOINED) within the cutoff of the introduction circuit
as well which is these days around 2-3 seconds.
Fixes #32021
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Tue, 10 Dec 2019 14:42:09 +0000 (09:42 -0500)]
Merge branch 'tor-github/pr/1583'
George Kadianakis [Wed, 4 Dec 2019 11:40:03 +0000 (13:40 +0200)]
hs-v3: Fix memory leak in test_hs_control_store_permanent_creds()
Nick Mathewson [Mon, 9 Dec 2019 21:04:09 +0000 (16:04 -0500)]
Merge branch 'maint-0.4.2'
"ours" to avoid version bump.
Nick Mathewson [Mon, 9 Dec 2019 21:03:31 +0000 (16:03 -0500)]
bump to 0.4.2.5-dev
Nick Mathewson [Mon, 9 Dec 2019 21:03:01 +0000 (16:03 -0500)]
Merge branch 'maint-0.4.1' into maint-0.4.2
"ours" to avoid version bump.
Nick Mathewson [Mon, 9 Dec 2019 21:02:36 +0000 (16:02 -0500)]
bump to 0.4.1.7-dev
Nick Mathewson [Mon, 9 Dec 2019 21:02:07 +0000 (16:02 -0500)]
Merge branch 'maint-0.4.0' into maint-0.4.1
Nick Mathewson [Mon, 9 Dec 2019 21:01:56 +0000 (16:01 -0500)]
Bump version to 0.4.0.6-dev
Nick Mathewson [Mon, 9 Dec 2019 21:01:22 +0000 (16:01 -0500)]
Merge branch 'maint-0.3.5' into maint-0.4.0
"ours" to avoid version bump.
Nick Mathewson [Mon, 9 Dec 2019 21:01:11 +0000 (16:01 -0500)]
bump to 0.3.5.9-dev
Nick Mathewson [Mon, 9 Dec 2019 18:01:24 +0000 (13:01 -0500)]
Merge remote-tracking branch 'tor-github/pr/1589'
Nick Mathewson [Mon, 9 Dec 2019 16:55:14 +0000 (11:55 -0500)]
Copy forward the changelogs and releasenotes for today's releases.
They are 0.4.2.5, 0.4.1.7, 0.4.0.6, and 0.3.5.9.
Taylor Yu [Mon, 9 Dec 2019 04:37:58 +0000 (22:37 -0600)]
changes file for ticket 30984
Taylor Yu [Mon, 9 Dec 2019 04:20:16 +0000 (22:20 -0600)]
Rename control_reply_add_1kv
Part of ticket 30984.
Nick Mathewson [Mon, 9 Dec 2019 15:53:48 +0000 (10:53 -0500)]
Port changelog tools to python 3
Closes ticket 32704.
Taylor Yu [Mon, 9 Dec 2019 03:58:18 +0000 (21:58 -0600)]
Doxyfile: skip CHECK_PRINTF()
Part of ticket 30984.
Taylor Yu [Thu, 22 Aug 2019 22:54:33 +0000 (17:54 -0500)]
simplify getinfo using reply lines
Simplify handle_control_getinfo() by using the new reply lines
abstraction. Previously, this function explicitly checked for whether
it should generate a MidReplyLine, a DataReplyLine, or an
EndReplyLine. control_write_reply_lines() now abstracts this check.
Part of #30984.
Taylor Yu [Thu, 22 Aug 2019 21:58:30 +0000 (16:58 -0500)]
use control reply lines for protocolinfo
Simplify handle_control_protocolinfo() by using the new reply line
abstraction.
Part of #30984.
Taylor Yu [Thu, 22 Aug 2019 21:58:30 +0000 (16:58 -0500)]
refactor handle_control_protocolinfo
Factor out the parts of handle_control_protocolinfo() that assemble
the AUTHMETHODS and COOKIEFILE strings.
Part of #30984.
Taylor Yu [Thu, 4 Jul 2019 04:48:17 +0000 (23:48 -0500)]
simplify getconf by using reply lines
In handle_control_getconf(), use the new control reply line
abstraction to simplify output generation. Previously, this function
explicitly checked for whether it should generate a MidReplyLine or an
EndReplyLine. control_write_reply_lines() now abstracts this check.
Part of #30984.
Taylor Yu [Thu, 4 Jul 2019 04:16:23 +0000 (23:16 -0500)]
reply lines structures
Part of #30984.
Taylor Yu [Wed, 3 Jul 2019 21:35:35 +0000 (16:35 -0500)]
add KV_RAW to kvline.c
Add the KV_RAW flag to kvline_encode(). This allows generation of
output that is compatible with some quirks of the control protocol.
Part of #30984.
Taylor Yu [Wed, 3 Jul 2019 20:13:51 +0000 (15:13 -0500)]
clean up kvline_can_encode_lines()
Add a check for '=' characters in needs_escape(). This simplifies the
logic in kvline_can_encode_lines().
Part of #30984.
Nick Mathewson [Fri, 6 Dec 2019 21:02:08 +0000 (16:02 -0500)]
Merge branch 'maint-0.4.1' into maint-0.4.2
Nick Mathewson [Fri, 6 Dec 2019 21:02:08 +0000 (16:02 -0500)]
Merge branch 'maint-0.4.0' into maint-0.4.1
Nick Mathewson [Fri, 6 Dec 2019 21:02:08 +0000 (16:02 -0500)]
Merge branch 'maint-0.4.2'
Nick Mathewson [Fri, 6 Dec 2019 21:02:07 +0000 (16:02 -0500)]
Merge branch 'maint-0.3.5' into maint-0.4.0
Nick Mathewson [Fri, 6 Dec 2019 21:02:07 +0000 (16:02 -0500)]
Merge branch 'maint-0.2.9' into maint-0.3.5
Karsten Loesing [Fri, 6 Dec 2019 10:50:35 +0000 (11:50 +0100)]
Update geoip and geoip6 to the December 3 2019 database.
teor [Fri, 6 Dec 2019 00:51:05 +0000 (10:51 +1000)]
changes: file for 32629
teor [Fri, 6 Dec 2019 00:51:05 +0000 (10:51 +1000)]
changes: file for 32629
teor [Fri, 6 Dec 2019 00:51:05 +0000 (10:51 +1000)]
changes: file for 32629
Nick Mathewson [Thu, 5 Dec 2019 18:32:40 +0000 (13:32 -0500)]
Merge branch 'maint-0.4.2'
"ours" to avoid version bump.
Nick Mathewson [Thu, 5 Dec 2019 18:32:30 +0000 (13:32 -0500)]
Bump to 0.4.2.5
Nick Mathewson [Thu, 5 Dec 2019 18:32:06 +0000 (13:32 -0500)]
Merge branch 'maint-0.4.1' into maint-0.4.2
"ours" to avoid version bump.
Nick Mathewson [Thu, 5 Dec 2019 18:31:46 +0000 (13:31 -0500)]
bump version to 0.4.1.7
Nick Mathewson [Thu, 5 Dec 2019 18:31:17 +0000 (13:31 -0500)]
Merge branch 'maint-0.4.0' into maint-0.4.1
"ours" to avoid version bump.
Nick Mathewson [Thu, 5 Dec 2019 18:31:01 +0000 (13:31 -0500)]
Bump to 0.4.0.6
Nick Mathewson [Thu, 5 Dec 2019 18:30:32 +0000 (13:30 -0500)]
Merge branch 'maint-0.3.5' into maint-0.4.0
"ours" to avoid version bump.
Nick Mathewson [Thu, 5 Dec 2019 18:29:49 +0000 (13:29 -0500)]
Bump version to 0.3.5.9
Nick Mathewson [Thu, 5 Dec 2019 18:27:46 +0000 (13:27 -0500)]
Remove changes files that are scheduled for inclusion in 0.4.2.5
Nick Mathewson [Thu, 5 Dec 2019 17:52:30 +0000 (12:52 -0500)]
Add a missing changelog entry in 0.4.1.6 for the FreeBSD part of 31687
teor [Thu, 5 Dec 2019 00:14:16 +0000 (10:14 +1000)]
Merge branch 'maint-0.4.2'
teor [Thu, 5 Dec 2019 00:14:08 +0000 (10:14 +1000)]
Merge branch 'maint-0.4.1' into maint-0.4.2
teor [Thu, 5 Dec 2019 00:14:01 +0000 (10:14 +1000)]
Merge branch 'maint-0.4.0' into maint-0.4.1
teor [Thu, 5 Dec 2019 00:13:53 +0000 (10:13 +1000)]
Merge branch 'maint-0.3.5' into maint-0.4.0
teor [Thu, 5 Dec 2019 00:13:15 +0000 (10:13 +1000)]
Merge remote-tracking branch 'tor-github/pr/1424' into maint-0.4.0
teor [Thu, 5 Dec 2019 00:11:18 +0000 (10:11 +1000)]
Merge remote-tracking branch 'tor-github/pr/1277' into maint-0.3.5
Nick Mathewson [Wed, 4 Dec 2019 17:21:53 +0000 (12:21 -0500)]
Split a few long lists in Makefiles.
Nick Mathewson [Wed, 4 Dec 2019 17:15:28 +0000 (12:15 -0500)]
Merge branch 'ticket32609_squashed'
teor [Tue, 3 Dec 2019 03:29:19 +0000 (13:29 +1000)]
practracker: Add missing .may_include files
All of these files contain "*.h", except for:
* src/app/config/.may_include
* src/test/.may_include
which also contain "*.inc".
This change prevents includes of "*.c" files, and other
unusually named files.
Part of 32609.
teor [Tue, 3 Dec 2019 03:28:55 +0000 (13:28 +1000)]
practracker: document !advisory in includes.py
teor [Tue, 3 Dec 2019 03:06:30 +0000 (13:06 +1000)]
git scripts: Add the checkSpace.pl unit tests
Extra testing after 32613.
teor [Sat, 16 Nov 2019 11:45:52 +0000 (21:45 +1000)]
practracker: Test for bad ".c" includes in the unit tests
Part of 32522.
teor [Sat, 16 Nov 2019 11:44:44 +0000 (21:44 +1000)]
Makefile/git scripts: Add the practracker unit tests
Add a check-practracker-unit-test target, and run it as part of
"make check".
Add the practracker unit tests to scripts/git/pre-commit.git-hook.
Part of 32609.
George Kadianakis [Wed, 4 Dec 2019 11:33:07 +0000 (13:33 +0200)]
control-port: Include HS address in ONION_CLIENT_AUTH_VIEW reply.
David Goulet [Tue, 3 Dec 2019 15:11:42 +0000 (10:11 -0500)]
hs-v3: Fix NULL deref. in hs_circ_service_get_established_intro_circ()
Found by Stem regression tests. Reported by atagar.
Fixes #32664
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Tue, 3 Dec 2019 14:22:21 +0000 (09:22 -0500)]
Merge branch 'tor-github/pr/1563'
George Kadianakis [Mon, 25 Nov 2019 16:31:29 +0000 (18:31 +0200)]
hsv3: ONION_CLIENT_AUTH_REMOVE now also removes the credential file.
George Kadianakis [Mon, 25 Nov 2019 16:03:53 +0000 (18:03 +0200)]
hsv3: Abstract parts of hs_config_client_authorization() into func.
Now we have a function that reads a file and returns a credential. We need that
for the REMOVE control port command.
George Kadianakis [Mon, 25 Nov 2019 15:40:22 +0000 (17:40 +0200)]
hsv3: Start refactoring hs_config_client_authorization().
- Remove key_dir which is useless.
- Kill an indentation layer.
We want to make it cleaner and slimmer so that we can reuse parts of it in the
REMOVE command for removing the right client auth file.
George Kadianakis [Mon, 25 Nov 2019 15:22:52 +0000 (17:22 +0200)]
hsv3: Remove support for client auth nicknames.
Because the function that parses client auth credentials saved on
disk (parse_auth_file_content()) is not future compatible, there is no way to
add support for storing the nickname on the disk. Hence, nicknames cannot
persist after Tor restart making them pretty much useless.
In the future we can introduce nicknames by adding a new file format for client
auth credentials, but this was not deemed worth doing at this stage.
George Kadianakis [Mon, 25 Nov 2019 13:55:47 +0000 (15:55 +0200)]
hsv3: Add tests for permanently storing auth credentials.
Remove Permanent flag from old tests, and make a new test that does all the
permanent things.
George Kadianakis [Mon, 25 Nov 2019 13:55:12 +0000 (15:55 +0200)]
hsv3: Implement permanent storage of auth credentials.
- See hs_client_register_auth_credentials() for the entry point.
- Also set the permanent flag for credentials we read from the filesystem.
- Also add some missing documentation.
teor [Tue, 3 Dec 2019 02:57:06 +0000 (12:57 +1000)]
Merge branch 'pr-1569-squashed'
Nick Mathewson [Mon, 2 Dec 2019 17:43:10 +0000 (12:43 -0500)]
Distribute checkSpaceTest.sh and run it when we have perl.
Nick Mathewson [Mon, 2 Dec 2019 17:43:10 +0000 (12:43 -0500)]
Have checkSpaceTest.sh exit as skipped when on Windows
Managing line-ending issues for this one isn't worth it.
Nick Mathewson [Tue, 26 Nov 2019 18:10:39 +0000 (13:10 -0500)]
Add a simple test for checkSpace.pl
This script is not expected to work on windows due to line-ending
issues, so I'm not making it get run on an automated basis. We
should use it when editing checkSpace.pl.
Closes ticket 32613.
teor [Tue, 3 Dec 2019 02:47:05 +0000 (12:47 +1000)]
Merge branch 'maint-0.4.2'
teor [Tue, 3 Dec 2019 02:46:58 +0000 (12:46 +1000)]
Merge branch 'maint-0.4.1' into maint-0.4.2
teor [Tue, 3 Dec 2019 02:46:50 +0000 (12:46 +1000)]
Merge branch 'maint-0.4.0' into maint-0.4.1
teor [Tue, 3 Dec 2019 02:46:43 +0000 (12:46 +1000)]
Merge branch 'maint-0.3.5' into maint-0.4.0
teor [Thu, 28 Nov 2019 01:38:48 +0000 (11:38 +1000)]
Travis: use -std=gnu99 with NSS, and clang with Chutney
NSS:
* test NSS-specific code with -std=gnu99
* use a recent gcc version from the latest Ubuntu image
Chutney:
* use clang, so we keep one clang Linux job
* keep clang on a fast job, so the overall build finishes quickly
Closes ticket 32500 for 0.3.5.
teor [Tue, 3 Dec 2019 02:45:41 +0000 (12:45 +1000)]
Merge branch 'maint-0.2.9' into maint-0.3.5
Merge C_DIALECT_OPTIONS from ticket32500_029 with
other configure options from maint-0.3.5.
teor [Fri, 15 Nov 2019 00:17:32 +0000 (10:17 +1000)]
Travis: use -std=gnu99 in some jobs
Require C99 standards-conforming code in Travis CI, but allow GNU gcc
extensions. Also activates clang's -Wtypedef-redefinition warnings.
Builds some jobs with -std=gnu99, and some jobs without.
Closes ticket 32500.
Nick Mathewson [Mon, 2 Dec 2019 16:41:40 +0000 (11:41 -0500)]
Merge branch 'ticket32207'
Nick Mathewson [Mon, 2 Dec 2019 16:41:16 +0000 (11:41 -0500)]
Link to mainloop_pubsub.[ch] when describing delivery policies
George Kadianakis [Mon, 2 Dec 2019 10:52:44 +0000 (12:52 +0200)]
Merge branch 'tor-github/pr/1559'