]>
git.ipfire.org Git - thirdparty/tor.git/log
Nick Mathewson [Thu, 28 Sep 2017 13:25:17 +0000 (09:25 -0400)]
Move around some LCOV_EXCLs in src/common
Apparently, my compiler now generates coverage markers for
label-only lines, so we need to exclude those too if they are meant
to be unreachable.
Nick Mathewson [Thu, 28 Sep 2017 12:53:16 +0000 (08:53 -0400)]
Improve cov-diff script to account for new files.
Nick Mathewson [Thu, 28 Sep 2017 12:35:30 +0000 (08:35 -0400)]
Add unit test for buf_get_line().
Nick Mathewson [Thu, 28 Sep 2017 12:35:24 +0000 (08:35 -0400)]
Note an unreachable (?) section in buffers.c
Nick Mathewson [Thu, 28 Sep 2017 01:45:55 +0000 (21:45 -0400)]
Let's get 100% coverage for proto_http while we're at it.
There was some coverage before, but it was mostly accidental.
Nick Mathewson [Wed, 27 Sep 2017 23:37:36 +0000 (19:37 -0400)]
Test more error cases of our socks code.
Coverage is now respectable. :)
Nick Mathewson [Wed, 27 Sep 2017 22:55:14 +0000 (18:55 -0400)]
Add unit tests for SOCKS functions that parse server responses
We use these when we're acting as a SOCKS client, but we'd never
actually written tests for them :/
Nick Mathewson [Wed, 27 Sep 2017 15:23:09 +0000 (11:23 -0400)]
socks5 unit tests: add check for ipv6 address type.
Nick Mathewson [Wed, 27 Sep 2017 15:16:29 +0000 (11:16 -0400)]
Socks tests for bad socks5 username/passwd auth.
Nick Mathewson [Wed, 27 Sep 2017 15:15:03 +0000 (11:15 -0400)]
Mark some tests in parse_socks.c as unreachable (BUG, LCOV)
These tests aren't reachable, given their actual arguments. I'm
going to mark them as BUG(), and as unreachable with LCOV.
Nick Mathewson [Wed, 27 Sep 2017 14:54:56 +0000 (10:54 -0400)]
testing: test many possible truncated SOCKS commands
Many of the 'truncated command' paths in fetch_from_buf_socks() were
not reached by the tests. This new unit test tries to check them
exhaustively.
Nick Mathewson [Wed, 27 Sep 2017 13:11:15 +0000 (09:11 -0400)]
Move ext_or_command tests to test_proto_misc.c
No other code changes.
Nick Mathewson [Wed, 27 Sep 2017 13:09:00 +0000 (09:09 -0400)]
Add unit tests for var_cell and control0 proto functions.
Taylor Yu [Tue, 26 Sep 2017 18:41:20 +0000 (13:41 -0500)]
Eat redundant semicolons
Nick Mathewson [Tue, 26 Sep 2017 18:51:35 +0000 (14:51 -0400)]
fix the changes file
David Goulet [Tue, 26 Sep 2017 17:55:51 +0000 (13:55 -0400)]
hs-v3: Don't non fatal assert if we can't get the intro extend info
Fixes #23159.
Signed-off-by: David Goulet <dgoulet@torproject.org>
Nick Mathewson [Tue, 26 Sep 2017 17:02:26 +0000 (13:02 -0400)]
Merge branch 'ticket23602_029'
Nick Mathewson [Tue, 26 Sep 2017 16:26:01 +0000 (12:26 -0400)]
Merge branch 'typecheck4'
Nick Mathewson [Mon, 25 Sep 2017 15:55:51 +0000 (11:55 -0400)]
changes file for my confparse typechecking fun
Nick Mathewson [Mon, 25 Sep 2017 15:52:57 +0000 (11:52 -0400)]
Type bug in shared_random_state -- make sure Version is int.
The confparse field has type UINT, which corresponds to an int
type. We had uint32_t.
This shouldn't cause trouble in practice, since int happens to
4-bytes wide on every platform where an authority is running. It's
still wrong, though.
Nick Mathewson [Tue, 26 Sep 2017 16:25:07 +0000 (12:25 -0400)]
Make the TransProxyType field non-const
The correct type for a STRING confparse value is char *, not const
char *.
Nick Mathewson [Mon, 25 Sep 2017 15:51:15 +0000 (11:51 -0400)]
Correct two state-file variable types.
These should have been int, but we had listed them as unsigned.
That's an easy mistake to make, since "int" corresponds with either
INT or UINT in the configuration file.
This bug cannot have actually caused a problem in practice, since we
check those fields' values on load, and ensure that they are in
range 0..INT32_MAX.
Nick Mathewson [Mon, 25 Sep 2017 15:08:11 +0000 (11:08 -0400)]
Add test to make sure all confparse variables are well-typed
New approach, suggested by Taylor: During testing builds, we
initialize a union member of an appropriate pointer type with the
address of the member field we're trying to test, so we can make
sure that the compiler doesn't warn.
My earlier approach invoked undefined behavior.
Nick Mathewson [Tue, 26 Sep 2017 12:47:02 +0000 (08:47 -0400)]
add changes file for 23645
Nick Mathewson [Tue, 26 Sep 2017 12:55:59 +0000 (08:55 -0400)]
Merge remote-tracking branch 'asn/ticket23645_032_01'
David Goulet [Mon, 25 Sep 2017 20:31:43 +0000 (16:31 -0400)]
hs: Improve logging
Also demote a log message that can occur under natural causes
(if the circuit subsystem is missing descriptors/consensus etc.).
The HS subsystem will naturally retry to connect to intro points,
so no need to make that log user-facing.
David Goulet [Mon, 25 Sep 2017 20:20:15 +0000 (16:20 -0400)]
circuit: Log n_circ_id and global identifier of HS circuits
So we can track them more easily in the logs and match any open/close/free
with those identifiers.
Part of #23645
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Mon, 25 Sep 2017 20:08:11 +0000 (16:08 -0400)]
circuit: Log circuit identifiers when cannibalizing
This removes the "nickname" of the cannibalized circuit last hop as it is
useless. It now logs the n_circ_id and global identifier so we can match it
with other logging statement.
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Mon, 25 Sep 2017 20:04:30 +0000 (16:04 -0400)]
circuit: Keep a copy of n_circ_id for logging
Prior to the log statement, the circuit n_circ_id value is zeroed so keep a
copy so we can log it at the end.
Part of #23645
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Mon, 25 Sep 2017 20:01:12 +0000 (16:01 -0400)]
circuit: Closing reason are signed values
Part of #23645
Signed-off-by: David Goulet <dgoulet@torproject.org>
Nick Mathewson [Mon, 25 Sep 2017 18:32:04 +0000 (14:32 -0400)]
Merge branch 'bug22109'
Nick Mathewson [Mon, 25 Sep 2017 17:26:39 +0000 (13:26 -0400)]
Make testing rend1_payload variables static
This fixes a clang warning.
Nick Mathewson [Mon, 25 Sep 2017 15:12:56 +0000 (11:12 -0400)]
Merge branch 'bug23539_032_01_squashed'
Nick Mathewson [Mon, 25 Sep 2017 15:12:45 +0000 (11:12 -0400)]
Whitespace fix.
Matt Traudt [Mon, 25 Sep 2017 14:43:15 +0000 (10:43 -0400)]
sched: make interval a plain int; initialize with macro
David Goulet [Fri, 22 Sep 2017 15:33:50 +0000 (11:33 -0400)]
sched: Make KISTSchedRunInterval non negative
Fixes #23539.
Signed-off-by: David Goulet <dgoulet@torproject.org>
Nick Mathewson [Mon, 25 Sep 2017 13:29:11 +0000 (09:29 -0400)]
fix changes file
Nick Mathewson [Mon, 25 Sep 2017 13:24:36 +0000 (09:24 -0400)]
Merge remote-tracking branch 'asn/ticket23420_032_01'
George Kadianakis [Mon, 25 Sep 2017 12:00:06 +0000 (15:00 +0300)]
prop224: Add test for parsing RENDEZVOUS1 cell.
Just making sure that added padding does not screw up cell parsing.
Roger Dingledine [Fri, 22 Sep 2017 21:26:29 +0000 (17:26 -0400)]
fix typo
Nick Mathewson [Fri, 22 Sep 2017 19:14:36 +0000 (15:14 -0400)]
Mention even more about changes files in doc/HACKING
Nick Mathewson [Fri, 22 Sep 2017 16:20:26 +0000 (12:20 -0400)]
Fix check-spaces and a weird copyright.
Nick Mathewson [Fri, 22 Sep 2017 14:22:47 +0000 (10:22 -0400)]
Use setup_full_capture_of_logs for 21800
setup_capture_of_logs() doesn't actually suppress warnings :p
Nick Mathewson [Fri, 22 Sep 2017 13:56:54 +0000 (09:56 -0400)]
Remove unused chosen_scheduler_type variable.
Nick Mathewson [Fri, 22 Sep 2017 13:54:41 +0000 (09:54 -0400)]
Merge remote-tracking branch 'pastly/bug23552_032_03'
Nick Mathewson [Fri, 22 Sep 2017 13:09:17 +0000 (09:09 -0400)]
Merge branch 'maint-0.3.1'
Nick Mathewson [Fri, 22 Sep 2017 13:09:17 +0000 (09:09 -0400)]
Merge branch 'maint-0.3.0' into maint-0.3.1
David Goulet [Thu, 21 Sep 2017 17:13:44 +0000 (13:13 -0400)]
hs: Avoid possible double circuit close on error
Fixes #23610
Signed-off-by: David Goulet <dgoulet@torproject.org>
Nick Mathewson [Fri, 22 Sep 2017 12:58:17 +0000 (08:58 -0400)]
Merge branch 'bug22805_v2_squashed'
Nick Mathewson [Fri, 15 Sep 2017 13:43:13 +0000 (09:43 -0400)]
Stop using CREATE_FAST as a signifier of clienthood.
Relays send it, and we may as well let them. Part of our fix for
22805.
Nick Mathewson [Wed, 6 Sep 2017 20:18:40 +0000 (16:18 -0400)]
changes file for bug22805
Nick Mathewson [Wed, 6 Sep 2017 19:37:09 +0000 (15:37 -0400)]
Use channel_is_client() accessor in channelpadding.c.
Also, allow channel_is_client() to take a const channel.
Nick Mathewson [Wed, 6 Sep 2017 18:55:58 +0000 (14:55 -0400)]
Stop clearing the is_client flag on channel directly
Nick Mathewson [Wed, 6 Sep 2017 18:39:40 +0000 (14:39 -0400)]
Remove or_circuit_t.is_first_hop; use channel_is_client() instead
The is_first_hop field should have been called used_create_fast,
but everywhere that we wanted to check it, we should have been
checking channel_is_client() instead.
Matt Traudt [Thu, 21 Sep 2017 17:24:07 +0000 (13:24 -0400)]
sched: move code to respect comments
The diff is confusing, but were two static scheduler functions that
needed moving to static comment block.
No code change. Thanks dgoulet for original commit
Matt Traudt [Thu, 21 Sep 2017 17:15:51 +0000 (13:15 -0400)]
sched: only log when scheduler type changes
Closes 23552. Thanks dgoulet for original impl
Nick Mathewson [Fri, 22 Sep 2017 12:51:03 +0000 (08:51 -0400)]
test_util: capture the log in the correct place.
Nick Mathewson [Thu, 21 Sep 2017 21:39:54 +0000 (17:39 -0400)]
Merge branch 'bug21800'
Nick Mathewson [Thu, 21 Sep 2017 21:34:47 +0000 (17:34 -0400)]
check-changes fix
Nick Mathewson [Thu, 21 Sep 2017 21:33:10 +0000 (17:33 -0400)]
Merge remote-tracking branch 'pastly/bug23581_032_03'
Nick Mathewson [Thu, 21 Sep 2017 21:32:17 +0000 (17:32 -0400)]
Whoops; only run lintchanges when usepython
Nick Mathewson [Thu, 21 Sep 2017 20:39:49 +0000 (16:39 -0400)]
Update CodingStandards.md for changes-file stuff
'check-changes' is now part of "make check", and must pass.
Nick Mathewson [Thu, 21 Sep 2017 20:29:15 +0000 (16:29 -0400)]
Whoops -- put a changes file in the wrong place :(
Nick Mathewson [Thu, 21 Sep 2017 20:27:09 +0000 (16:27 -0400)]
Fix warning in bug23610
Nick Mathewson [Thu, 21 Sep 2017 20:25:30 +0000 (16:25 -0400)]
Merge branch 'ticket23564_squashed'
Nick Mathewson [Tue, 19 Sep 2017 14:10:38 +0000 (10:10 -0400)]
Make check-spaces part of the standard "make check" process
To do this, we had to make sure it passes when the changes directory
is empty. I also tried to improve the quality of the output, and
fix some false-positive cases. Let's see how this goes!
Closes ticket 23564.
Nick Mathewson [Thu, 21 Sep 2017 19:32:16 +0000 (15:32 -0400)]
Capture "Result does not fit in tor_timegm()" warnings in util tests
Fixes bug 21800; bugfix on 0.2.9.x
Nick Mathewson [Thu, 21 Sep 2017 18:43:05 +0000 (14:43 -0400)]
Merge remote-tracking branch 'dgoulet/ticket23303_032_01'
Nick Mathewson [Thu, 21 Sep 2017 18:42:03 +0000 (14:42 -0400)]
Merge remote-tracking branch 'catalyst-oniongit/bug23611'
Nick Mathewson [Thu, 21 Sep 2017 18:39:17 +0000 (14:39 -0400)]
Merge branch 'maint-0.3.1'
David Goulet [Thu, 21 Sep 2017 17:13:44 +0000 (13:13 -0400)]
hs: Avoid possible double circuit close on error
Fixes #23610
Signed-off-by: David Goulet <dgoulet@torproject.org>
Taylor Yu [Thu, 21 Sep 2017 18:31:54 +0000 (13:31 -0500)]
Remove wrong config parameter mention from manpage
Don't refer to the obsolete (and misspelled)
UseEntryGuardsAsDirectoryGuards config parameter in the manpage.
David Goulet [Thu, 21 Sep 2017 18:24:36 +0000 (14:24 -0400)]
hs: Improve comments for when we change timestamps
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Tue, 19 Sep 2017 18:07:39 +0000 (14:07 -0400)]
sched: Hard exit if we can't select a scheduler
Fixes #23581
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Thu, 21 Sep 2017 17:13:44 +0000 (13:13 -0400)]
hs: Avoid possible double circuit close on error
Fixes #23610
Signed-off-by: David Goulet <dgoulet@torproject.org>
Nick Mathewson [Thu, 21 Sep 2017 14:58:06 +0000 (10:58 -0400)]
Merge remote-tracking branch 'catalyst-oniongit/bug23607'
Nick Mathewson [Thu, 21 Sep 2017 14:42:40 +0000 (10:42 -0400)]
lintchanges fix
Nick Mathewson [Thu, 21 Sep 2017 14:39:10 +0000 (10:39 -0400)]
Merge branch 'maint-0.3.1'
Mike Perry [Wed, 20 Sep 2017 22:37:05 +0000 (22:37 +0000)]
Bug 23608: Mock time for all channelpadding tests.
Taylor Yu [Wed, 20 Sep 2017 23:47:15 +0000 (18:47 -0500)]
Avoid assertion failure for state file clock skew
The clock_skew_warning() refactoring allowed calls from
or_state_load() to control_event_bootstrap_problem() to occur prior
bootstrap phase 0, causing an assertion failure. Initialize the
bootstrap status prior to calling clock_skew_warning() from
or_state_load().
Taylor Yu [Wed, 20 Sep 2017 21:54:56 +0000 (16:54 -0500)]
Use correct sign for state file clock skew
or_state_load() was using an incorrect sign convention when calling
clock_skew_warning() to warn about state file clock skew. This caused
the wording of the warning to be incorrect about the direction of the
skew.
Nick Mathewson [Wed, 20 Sep 2017 19:54:36 +0000 (15:54 -0400)]
When detecting OpenSSL, look for 1.0.1, and in homebrew location
Previously we would detect the system openssl on OSX, and then fail
to use it, since we required Open 1.0.1 or later. That's silly!
Instead of looking for RAND_add(), look for TLSv1_1_method(): it was
introduced in 1.0.1, and is also present in LibreSSL.
Also, add the hombebrew path to our search path here.
Fixes bug 23602; bugfix on 0.2.7.2-alpha.
Nick Mathewson [Wed, 20 Sep 2017 19:46:21 +0000 (15:46 -0400)]
Use correct name for authtype 3 in a comment.
David Goulet [Wed, 20 Sep 2017 16:47:09 +0000 (12:47 -0400)]
hs: Log the intro point when we clean it up
When we remove an intro point from the service list, log info about it and
some useful data.
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Wed, 20 Sep 2017 15:56:44 +0000 (11:56 -0400)]
circuit: Log n_circ_id and global identifier
When we can, log the n circuit id and global identifier for origin circuit.
Signed-off-by: David Goulet <dgoulet@torproject.org>
Nick Mathewson [Wed, 20 Sep 2017 16:12:02 +0000 (12:12 -0400)]
Merge branch 'bug23080'
Nick Mathewson [Wed, 20 Sep 2017 14:10:02 +0000 (10:10 -0400)]
Unit test to make sure that our platform string is parseable
Closes 22109.
Nick Mathewson [Wed, 20 Sep 2017 13:45:07 +0000 (09:45 -0400)]
Merge branch 'maint-0.3.1'
Nick Mathewson [Wed, 20 Sep 2017 13:45:03 +0000 (09:45 -0400)]
changes file for bug23568
Andreas Stieger [Mon, 18 Sep 2017 19:15:52 +0000 (21:15 +0200)]
in zstd compression, fix 32 bit build
format '%lu' expects argument of type 'long unsigned int', but argument ... has type 'size_t'
Closes ticket 23568.
Nick Mathewson [Wed, 20 Sep 2017 13:38:50 +0000 (09:38 -0400)]
Fix a comment that misunderstood is_canonical
is_canonical doesn't mean "am I connected to the one true address of
this relay"; it means "does this relay tell me that the address I'm
connected to belong to it." The point is to prevent TCP-based MITM,
not to prevent the relay from multi-homing.
Related to 22890.
Nick Mathewson [Wed, 20 Sep 2017 12:50:49 +0000 (08:50 -0400)]
Warn on ExtORPort USERADDR that is missing or 0.
Diagnoses violations on #23080.
Nick Mathewson [Wed, 20 Sep 2017 12:36:11 +0000 (08:36 -0400)]
Merge remote-tracking branch 'dgoulet/ticket23305_032_01'
Nick Mathewson [Wed, 20 Sep 2017 12:32:55 +0000 (08:32 -0400)]
Merge branch 'maint-0.2.9' into maint-0.3.0
Nick Mathewson [Wed, 20 Sep 2017 12:32:55 +0000 (08:32 -0400)]
Merge branch 'maint-0.2.8' into maint-0.2.9
Nick Mathewson [Wed, 20 Sep 2017 12:32:55 +0000 (08:32 -0400)]
Merge branch 'maint-0.3.0' into maint-0.3.1
Nick Mathewson [Wed, 20 Sep 2017 12:32:55 +0000 (08:32 -0400)]
Merge branch 'maint-0.3.1'
teor [Wed, 20 Sep 2017 04:48:53 +0000 (14:48 +1000)]
Remove longclaw's IPv6 address, as it will soon change
Authority IPv6 addresses were originally added in 0.2.8.1-alpha.
This leaves 3/8 directory authorities with IPv6 addresses, but there
are also 52 fallback directory mirrors with IPv6 addresses.
Resolves 19760.
Matt Traudt [Wed, 20 Sep 2017 00:03:17 +0000 (20:03 -0400)]
sched: reorder code to fit comment bodies; comment typos
Closes 23560
Roger Dingledine [Tue, 19 Sep 2017 23:55:57 +0000 (19:55 -0400)]
fix typos/etc found while starting to look at scheduler