]>
git.ipfire.org Git - thirdparty/tor.git/log
teor [Tue, 31 Jul 2018 01:49:11 +0000 (11:49 +1000)]
Appveyor CI: fix some typos
teor [Tue, 31 Jul 2018 01:47:33 +0000 (11:47 +1000)]
Appveyor CI: Generate correct tag names
Part of 26979.
teor [Tue, 31 Jul 2018 01:37:11 +0000 (11:37 +1000)]
Appveyor CI: Switch to one URL per line
Part of 26979.
teor [Tue, 31 Jul 2018 01:12:21 +0000 (11:12 +1000)]
Appveyor CI: Generate correct branches and URLs for pull requests
Part of 26979.
teor [Tue, 31 Jul 2018 01:10:55 +0000 (11:10 +1000)]
Appveyor CI: Make short commits 10 hexdigits long
That's what git does for tor.
Part of 26979.
teor [Tue, 31 Jul 2018 01:09:54 +0000 (11:09 +1000)]
Appveyor CI: Fix GitHub provider detection
Part of 26979.
Nick Mathewson [Mon, 30 Jul 2018 13:09:10 +0000 (09:09 -0400)]
Remove a now-obsolete comment about deadcode_dummy__
Nick Mathewson [Mon, 30 Jul 2018 13:08:39 +0000 (09:08 -0400)]
Merge branch 'ticket26890'
Nick Mathewson [Mon, 30 Jul 2018 13:01:59 +0000 (09:01 -0400)]
Merge branch 'maint-0.3.4'
Nick Mathewson [Mon, 30 Jul 2018 13:01:59 +0000 (09:01 -0400)]
Merge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Mon, 30 Jul 2018 13:01:55 +0000 (09:01 -0400)]
Merge remote-tracking branch 'teor/bug26627_033_merged_master'
Nick Mathewson [Mon, 30 Jul 2018 13:01:45 +0000 (09:01 -0400)]
Merge remote-tracking branch 'teor/bug26627_033' into maint-0.3.3
Nick Mathewson [Mon, 30 Jul 2018 12:57:18 +0000 (08:57 -0400)]
Update include in tor-print-ed-signing-cert
Nick Mathewson [Mon, 30 Jul 2018 12:55:57 +0000 (08:55 -0400)]
Merge remote-tracking branch 'rl1987/feature19506_3'
Nick Mathewson [Mon, 30 Jul 2018 12:49:49 +0000 (08:49 -0400)]
Merge remote-tracking branch 'rl1987/ticket21349_4'
Nick Mathewson [Mon, 30 Jul 2018 12:45:01 +0000 (08:45 -0400)]
Merge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Mon, 30 Jul 2018 12:45:01 +0000 (08:45 -0400)]
Merge branch 'maint-0.3.2' into maint-0.3.3
Nick Mathewson [Mon, 30 Jul 2018 12:45:01 +0000 (08:45 -0400)]
Merge branch 'maint-0.3.4'
Nick Mathewson [Mon, 30 Jul 2018 12:44:58 +0000 (08:44 -0400)]
Merge remote-tracking branch 'teor/bug26924'
Nick Mathewson [Mon, 30 Jul 2018 12:44:40 +0000 (08:44 -0400)]
Merge remote-tracking branch 'teor/bug26924_032' into maint-0.3.2
Nick Mathewson [Mon, 30 Jul 2018 12:33:59 +0000 (08:33 -0400)]
Merge remote-tracking branch 'juga/ticket3723_03_squashed_rebased'
Nick Mathewson [Mon, 30 Jul 2018 12:24:14 +0000 (08:24 -0400)]
Merge remote-tracking branch 'rl1987/bug26892_take2'
Nick Mathewson [Mon, 30 Jul 2018 12:17:25 +0000 (08:17 -0400)]
Merge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Mon, 30 Jul 2018 12:17:25 +0000 (08:17 -0400)]
Merge branch 'maint-0.3.4'
Nick Mathewson [Mon, 30 Jul 2018 12:17:24 +0000 (08:17 -0400)]
Merge branch 'maint-0.3.2' into maint-0.3.3
Taylor Yu [Thu, 26 Jul 2018 17:32:34 +0000 (12:32 -0500)]
Don't disable an unsupported compiler warning
Conditionalize the pragma that temporarily disables
-Wunused-const-variable. Some versions of gcc don't support it. We
need to do this because of an apparent bug in some libzstd headers.
Fixes bug 26785; bugfix on 0.3.2.11.
rl1987 [Thu, 26 Jul 2018 14:49:27 +0000 (17:49 +0300)]
Early bailout from log_addr_has_changed() if running as client
teor [Wed, 25 Jul 2018 07:40:20 +0000 (17:40 +1000)]
Remove comment about Tor2web
Part of #26367.
teor [Wed, 25 Jul 2018 04:50:45 +0000 (14:50 +1000)]
Merge branch 'bug26924_032' into bug26924
Update rendcommon.h include path.
teor [Wed, 25 Jul 2018 04:39:31 +0000 (14:39 +1000)]
Improve connection auth logging
Improve the log message when connection initiators fail to authenticate
direct connections to relays.
Fixes bug 26927; bugfix on 0.3.0.1-alpha.
teor [Wed, 25 Jul 2018 04:33:10 +0000 (14:33 +1000)]
Merge branch 'bug26924_029' into bug26924_032
teor [Wed, 25 Jul 2018 04:28:06 +0000 (14:28 +1000)]
Stop logging link auth warnings on Single Onion Services and Tor2web
Instead, log a protocol warning when single onion services or
Tor2web clients fail to authenticate direct connections to relays.
Fixes bug 26924; bugfix on 0.2.9.1-alpha.
teor [Tue, 24 Jul 2018 23:17:17 +0000 (09:17 +1000)]
Merge branch 'bug26627_033' into bug26627_033_merged_master
teor [Tue, 24 Jul 2018 08:22:41 +0000 (18:22 +1000)]
Stop putting unsupported
ed25519 link auth in v3 onion service descs
Stop putting
ed25519 link specifiers in v3 onion service descriptors,
when the intro point doesn't support
ed25519 link authentication.
Fixes bug 26627; bugfix on 0.3.2.4-alpha.
teor [Fri, 6 Jul 2018 06:06:44 +0000 (16:06 +1000)]
Stop sending unsupported
ed25519 link specifiers in v3 introduce cells
Stop sending
ed25519 link specifiers in v3 onion service introduce
cells, when the rendezvous point doesn't support
ed25519 link
authentication.
Fixes bug 26627; bugfix on 0.3.2.4-alpha.
juga0 [Sat, 21 Jul 2018 21:59:50 +0000 (21:59 +0000)]
Add changes file regarding bandwidth file headers
rl1987 [Fri, 22 Jun 2018 13:48:57 +0000 (16:48 +0300)]
Add changes file
rl1987 [Fri, 22 Jun 2018 13:43:50 +0000 (16:43 +0300)]
Split select_entry_guard_for_circuit()
rl1987 [Fri, 22 Jun 2018 13:04:08 +0000 (16:04 +0300)]
Make entry_guards_update_primary() shorter
rl1987 [Fri, 22 Jun 2018 12:21:05 +0000 (15:21 +0300)]
Split sampled_guards_update_from_consensus() into subfunctions
Nick Mathewson [Fri, 20 Jul 2018 15:18:11 +0000 (11:18 -0400)]
Remove over-cleverness from our coverity BUG() definition.
Our previous definition implied that code would never keep running
if a BUG occurred (which it does), and that BUG(x) might be true
even if x was false (which it can't be).
Closes ticket 26890. Bugfix on 0.3.1.4-alpha.
Nick Mathewson [Fri, 20 Jul 2018 15:02:05 +0000 (11:02 -0400)]
Tweak assertion in get_time_period_length() for coverity
This is another attempt to fix
1437668 . The assertion here should
be safe, since the rules of networkstatus_get_param() keep the value
it returns in range.
Nick Mathewson [Fri, 20 Jul 2018 14:42:29 +0000 (10:42 -0400)]
Merge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Fri, 20 Jul 2018 14:42:29 +0000 (10:42 -0400)]
Merge branch 'maint-0.3.2' into maint-0.3.3
Nick Mathewson [Fri, 20 Jul 2018 14:42:29 +0000 (10:42 -0400)]
Merge branch 'maint-0.3.4'
Nick Mathewson [Fri, 20 Jul 2018 14:42:23 +0000 (10:42 -0400)]
Merge branch 'ticket26647_032' into maint-0.3.2
Nick Mathewson [Thu, 19 Jul 2018 18:34:26 +0000 (14:34 -0400)]
Merge branch 'maint-0.3.4'
Nick Mathewson [Thu, 19 Jul 2018 18:33:18 +0000 (14:33 -0400)]
Fix linking when dirauth module is disabled.
Bugfix on
dcee4d4c9cc7d98e5ae8e913c73a3afc41753c64 , bug not in any
released Tor.
Nick Mathewson [Thu, 19 Jul 2018 16:22:39 +0000 (12:22 -0400)]
Merge remote-tracking branch 'ahf-github/bugs/26780'
Nick Mathewson [Thu, 19 Jul 2018 16:20:13 +0000 (12:20 -0400)]
Merge branch 'bug26712'
Nick Mathewson [Thu, 19 Jul 2018 12:32:00 +0000 (08:32 -0400)]
Merge branch 'maint-0.3.4'
Nick Mathewson [Thu, 19 Jul 2018 12:31:07 +0000 (08:31 -0400)]
Merge branch 'maint-0.3.2' into maint-0.3.3
Nick Mathewson [Thu, 19 Jul 2018 12:31:07 +0000 (08:31 -0400)]
Merge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Thu, 19 Jul 2018 12:30:59 +0000 (08:30 -0400)]
Merge remote-tracking branch 'teor/bug26853_032' into maint-0.3.2
Roger Dingledine [Thu, 19 Jul 2018 01:23:35 +0000 (21:23 -0400)]
wrap a multi-line if body in { } before somebody gets hurt
Nick Mathewson [Wed, 18 Jul 2018 20:39:25 +0000 (16:39 -0400)]
Merge branch 'maint-0.3.2' into maint-0.3.3
Nick Mathewson [Wed, 18 Jul 2018 20:39:25 +0000 (16:39 -0400)]
Merge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Wed, 18 Jul 2018 20:39:25 +0000 (16:39 -0400)]
Merge branch 'maint-0.2.9' into maint-0.3.2
Nick Mathewson [Wed, 18 Jul 2018 20:39:25 +0000 (16:39 -0400)]
Merge branch 'maint-0.3.4'
Nick Mathewson [Wed, 18 Jul 2018 20:39:22 +0000 (16:39 -0400)]
Changes file for bug 26787
Nick Mathewson [Wed, 18 Jul 2018 20:39:11 +0000 (16:39 -0400)]
Merge branch 'maint-0.3.4'
Nick Mathewson [Wed, 18 Jul 2018 20:39:10 +0000 (16:39 -0400)]
Merge branch 'maint-0.3.2' into maint-0.3.3
Nick Mathewson [Wed, 18 Jul 2018 20:39:10 +0000 (16:39 -0400)]
Merge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Wed, 18 Jul 2018 20:39:10 +0000 (16:39 -0400)]
Merge branch 'maint-0.2.9' into maint-0.3.2
Nick Mathewson [Mon, 16 Jul 2018 11:53:43 +0000 (07:53 -0400)]
Try putting ulimit -c 0 in test_bt.sh to see if it fixes bug 26787
Nick Mathewson [Wed, 18 Jul 2018 20:30:11 +0000 (16:30 -0400)]
Merge remote-tracking branch 'teor/ticket26702-atomically'
Nick Mathewson [Wed, 18 Jul 2018 20:20:31 +0000 (16:20 -0400)]
Add two more dependencies in build.rs
Nick Mathewson [Wed, 18 Jul 2018 20:18:25 +0000 (16:18 -0400)]
Use the "testing" variant of several C libraries in build.rs
Nick Mathewson [Wed, 18 Jul 2018 20:12:29 +0000 (16:12 -0400)]
Merge remote-tracking branch 'isis/bug26398'
Nick Mathewson [Wed, 18 Jul 2018 19:12:18 +0000 (15:12 -0400)]
Add some missing includes and struct declarations.
Nick Mathewson [Wed, 18 Jul 2018 19:09:28 +0000 (15:09 -0400)]
Merge branch 'maint-0.3.4'
Nick Mathewson [Wed, 18 Jul 2018 19:08:57 +0000 (15:08 -0400)]
Merge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Wed, 18 Jul 2018 19:04:14 +0000 (15:04 -0400)]
Merge branch 'maint-0.3.2' into maint-0.3.3
Nick Mathewson [Wed, 18 Jul 2018 19:03:27 +0000 (15:03 -0400)]
Merge branch 'maint-0.2.9' into maint-0.3.2
Nick Mathewson [Wed, 18 Jul 2018 19:01:03 +0000 (15:01 -0400)]
Merge branch 'bug26485_029_squashed' into maint-0.2.9
Nick Mathewson [Tue, 17 Jul 2018 19:39:31 +0000 (15:39 -0400)]
Add a test for format_recommended_version_list.
Nick Mathewson [Wed, 11 Jul 2018 15:24:55 +0000 (11:24 -0400)]
Warn when an authority has voted for a version with a space in it.
Another way to try to prevent a recurrence of 26485.
Nick Mathewson [Wed, 11 Jul 2018 15:14:48 +0000 (11:14 -0400)]
Warn the directory authority operator if their versions list is bogus
Prevents bug 26485; bugfix on 0.1.1.6-alpha.
Nick Mathewson [Wed, 18 Jul 2018 17:20:23 +0000 (13:20 -0400)]
Merge remote-tracking branch 'teor/ticket26852'
Nick Mathewson [Wed, 18 Jul 2018 13:38:04 +0000 (09:38 -0400)]
Merge branch 'ulimit_when_crashing'
teor [Wed, 18 Jul 2018 02:37:12 +0000 (12:37 +1000)]
SKIP test_key_expiration.sh on Windows until the underlying issue is resolved
Skip an unreliable key expiration test on Windows, until the underlying
issue in bug 26076 is resolved.
Fixes bug 26853; bugfix on 0.3.2.1-alpha.
teor [Wed, 18 Jul 2018 02:06:48 +0000 (12:06 +1000)]
doc: Document Appveyor and Jenkins in doc/HACKING/HelpfulTools.md
Closes 26852.
teor [Wed, 18 Jul 2018 01:14:18 +0000 (11:14 +1000)]
doc: Explain how to avoid inconsistent reads on V3BandwidthsFile
Closes 26702.
Nick Mathewson [Tue, 17 Jul 2018 20:19:32 +0000 (16:19 -0400)]
Merge branch 'bug25552_ope_squashed'
George Kadianakis [Mon, 16 Jul 2018 12:28:11 +0000 (15:28 +0300)]
Improve a log message.
George Kadianakis [Tue, 17 Jul 2018 15:00:18 +0000 (11:00 -0400)]
Fix time source bug in sr_state_get_start_time_of_current_protocol_run().
The following bug was causing many issues for this branch in chutney:
In sr_state_get_start_time_of_current_protocol_run() we were using the
consensus valid-after to calculate beginning_of_current_round, but we were
using time(NULL) to calculate the current_round slot. This was causing time
sync issues when the consensus valid-after and time(NULL) were disagreeing on
what the current round is. Our fix is to use the consensus valid-after in both
places.
This also means that we are not using 'now' (aka time(NULL)) anymore in that
function, and hence we can remove that argument from the function (and its
callers). I'll do this in the next commit so that we keep things separated.
Furthermore, we fix a unittest that broke.
George Kadianakis [Thu, 12 Jul 2018 13:51:31 +0000 (16:51 +0300)]
Set revision counter before uploading, not during building.
We only build a descriptor once, and we just re-encode it (and change its intro
points if needed) before uploading.
Hence we should set the revision counter before uploading, not during building.
George Kadianakis [Tue, 10 Jul 2018 17:10:22 +0000 (20:10 +0300)]
Make the OPE scheme return CRYPTO_OPE_ERROR on error.
Instead of UINT64_MAX.
George Kadianakis [Tue, 17 Jul 2018 16:03:18 +0000 (12:03 -0400)]
Compute OPE cipher structure only when needed.
The OPE cipher is tied to the current blinded key which is tied to the current
time period. Hence create the OPE cipher structure when we create a new
descriptor (and build its blinded key).
George Kadianakis [Thu, 14 Jun 2018 12:53:31 +0000 (15:53 +0300)]
Add changes file.
George Kadianakis [Thu, 14 Jun 2018 12:51:00 +0000 (15:51 +0300)]
Remove now useless rev counter state file code.
We are not using the state file for rev counters anymore, we just generate them
on the fly!
George Kadianakis [Thu, 14 Jun 2018 12:38:46 +0000 (15:38 +0300)]
Fix up some unittests by being more careful with the local time.
Now that the rev counter depends on the local time, we need to be more careful
in the unittests. Some unittests were breaking because they were using
consensus values from 1985, but they were not updating the local time
appropriately. That was causing the OPE module to complain that it was trying
to encrypt insanely large values.
George Kadianakis [Thu, 14 Jun 2018 12:38:14 +0000 (15:38 +0300)]
Use approx_time() instead of time(NULL) in some HS functions.
These were breaking our unittests.
George Kadianakis [Thu, 14 Jun 2018 12:35:59 +0000 (15:35 +0300)]
Compute the description revision counter using the OPE scheme.
To do so for a given descriptor, we use the "seconds since the SR protocol run"
started, for the SRV that is relevant to this descriptor. This is guaranteed to
be a positive value (since we need an SRV to be able to build a descriptor),
and it's also guaranteed to be a small value (since SRVs stop being listed on a
consensus after 48 hours).
We cannot use the "seconds since the time period started", because for the next
descriptor we use the next time period, so the timestamp would end up negative.
See [SERVICEUPLOAD] from rend-spec-v3.txt for more details.
To do so, we have to introduce a new `is_current` argument to a bunch of
functions, because to use "seconds since the SR protocol run" we need to know
if we are building the current or the next descriptor, since we use a different
SRV for each descriptor.
George Kadianakis [Thu, 14 Jun 2018 12:25:43 +0000 (15:25 +0300)]
Introduce useful SRV funcs (start time of prev protocol run)
George Kadianakis [Thu, 14 Jun 2018 12:23:09 +0000 (15:23 +0300)]
Increase OPE_INPUT_MAX.
Nick Mathewson [Thu, 10 May 2018 12:46:36 +0000 (08:46 -0400)]
Implementation for a simple order-preserving encryption scheme.
This is meant for use when encrypting the current time within the
period in order to get a monotonically increasing revision counter
without actually revealing our view of the time.
This scheme is far from the most state-of-the-art: don't use it for
anything else without careful analysis by somebody much smarter than
I am.
See ticket #25552 for some rationale for this logic.
Nick Mathewson [Tue, 17 Jul 2018 18:56:52 +0000 (14:56 -0400)]
Merge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Tue, 17 Jul 2018 18:56:52 +0000 (14:56 -0400)]
Merge branch 'maint-0.3.2' into maint-0.3.3
Nick Mathewson [Tue, 17 Jul 2018 18:56:52 +0000 (14:56 -0400)]
Merge branch 'maint-0.2.9' into maint-0.3.2