]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
8 years agoAvoid a compilation warning on macOS in scheduler_ev_add()
teor [Tue, 19 Sep 2017 06:32:47 +0000 (16:32 +1000)] 
Avoid a compilation warning on macOS in scheduler_ev_add()

This warning is caused by a different tv_usec data type on macOS
compared to the system on which the patch was developed.

Fixes 23575 on 0.3.2.1-alpha.

8 years agoCorrect what-is-deprecated-when comments
Nick Mathewson [Mon, 18 Sep 2017 19:11:33 +0000 (15:11 -0400)] 
Correct what-is-deprecated-when comments

8 years agoMerge remote-tracking branch 'ewongbb/chkdblcolon'
Nick Mathewson [Mon, 18 Sep 2017 19:04:14 +0000 (15:04 -0400)] 
Merge remote-tracking branch 'ewongbb/chkdblcolon'

8 years agoMerge remote-tracking branch 'public/ticket19704'
Nick Mathewson [Mon, 18 Sep 2017 19:02:16 +0000 (15:02 -0400)] 
Merge remote-tracking branch 'public/ticket19704'

8 years agosmall tweaks to releasingtor.md
Nick Mathewson [Mon, 18 Sep 2017 18:49:06 +0000 (14:49 -0400)] 
small tweaks to releasingtor.md

8 years agoMerge branch 'maint-0.3.1'
Nick Mathewson [Mon, 18 Sep 2017 18:40:50 +0000 (14:40 -0400)] 
Merge branch 'maint-0.3.1'

"ours" to avoid version bump.

8 years agoMerge branch 'maint-0.3.0' into maint-0.3.1
Nick Mathewson [Mon, 18 Sep 2017 18:40:43 +0000 (14:40 -0400)] 
Merge branch 'maint-0.3.0' into maint-0.3.1

"ours" to avoid version bump.

8 years agoMerge branch 'maint-0.2.9' into maint-0.3.0
Nick Mathewson [Mon, 18 Sep 2017 18:40:36 +0000 (14:40 -0400)] 
Merge branch 'maint-0.2.9' into maint-0.3.0

"ours" to avoid version bump.

8 years agoMerge branch 'maint-0.2.8' into maint-0.2.9
Nick Mathewson [Mon, 18 Sep 2017 18:40:22 +0000 (14:40 -0400)] 
Merge branch 'maint-0.2.8' into maint-0.2.9

"ours" to avoid version bump.

8 years agobump to 0.3.2.1.-alpha-dev
Nick Mathewson [Mon, 18 Sep 2017 18:40:13 +0000 (14:40 -0400)] 
bump to 0.3.2.1.-alpha-dev

8 years agobump to 0.3.1.7-dev
Nick Mathewson [Mon, 18 Sep 2017 18:40:04 +0000 (14:40 -0400)] 
bump to 0.3.1.7-dev

8 years agobump to 0.3.0.11-dev
Nick Mathewson [Mon, 18 Sep 2017 18:39:55 +0000 (14:39 -0400)] 
bump to 0.3.0.11-dev

8 years agobump to 0.2.9.12-dev
Nick Mathewson [Mon, 18 Sep 2017 18:39:46 +0000 (14:39 -0400)] 
bump to 0.2.9.12-dev

8 years agobump to 0.2.8.15-dev
Nick Mathewson [Mon, 18 Sep 2017 18:39:40 +0000 (14:39 -0400)] 
bump to 0.2.8.15-dev

8 years agoAdd a cast so that 32-bit compilation goes without errors tor-0.3.2.1-alpha
Nick Mathewson [Mon, 18 Sep 2017 16:44:26 +0000 (12:44 -0400)] 
Add a cast so that 32-bit compilation goes without errors

8 years agochangelog tweaks from asn
Nick Mathewson [Mon, 18 Sep 2017 16:42:51 +0000 (12:42 -0400)] 
changelog tweaks from asn

8 years agoTry to clarify that KIST helps relays.
Nick Mathewson [Mon, 18 Sep 2017 16:25:13 +0000 (12:25 -0400)] 
Try to clarify that KIST helps relays.

8 years agorevision pass on the rest of the changelog
Nick Mathewson [Mon, 18 Sep 2017 15:52:27 +0000 (11:52 -0400)] 
revision pass on the rest of the changelog

8 years agoRevise the first two (big) changelog entries
Nick Mathewson [Mon, 18 Sep 2017 15:39:22 +0000 (11:39 -0400)] 
Revise the first two (big) changelog entries

8 years agoCombine some changelog sections.
Nick Mathewson [Mon, 18 Sep 2017 15:27:24 +0000 (11:27 -0400)] 
Combine some changelog sections.

8 years agoMerge remote-tracking branch 'dgoulet/bug23558_032_01'
Nick Mathewson [Mon, 18 Sep 2017 15:02:37 +0000 (11:02 -0400)] 
Merge remote-tracking branch 'dgoulet/bug23558_032_01'

8 years agosched: BUG() on event_add() and log_warn next_run
David Goulet [Mon, 18 Sep 2017 14:58:38 +0000 (10:58 -0400)] 
sched: BUG() on event_add() and log_warn next_run

It is highly unlikely to happen but if so, we need to know and why. The
warning with the next_run values could help.

Signed-off-by: David Goulet <dgoulet@torproject.org>
8 years agosched: Don't cast to int32_t the monotime_diff_msec() result
David Goulet [Mon, 18 Sep 2017 14:47:05 +0000 (10:47 -0400)] 
sched: Don't cast to int32_t the monotime_diff_msec() result

When the KIST schedule() is called, it computes a diff value between the last
scheduler run and the current monotonic time. If tha value is below the run
interval, the libevent even is updated else the event is run.

It turned out that casting to int32_t the returned int64_t value for the very
first scheduler run (which is set to 0) was creating an overflow on the 32 bit
value leading to adding the event with a gigantic usec value. The scheduler
was simply never running for a while.

First of all, a BUG() is added for a diff value < 0 because if the time is
really monotonic, we should never have a now time that is lower than the last
scheduler run time. And we will try to recover with a diff value to 0.

Second, the diff value is changed to int64_t so we avoid this "bootstrap
overflow" and future casting overflow problems.

Fixes #23558

Signed-off-by: David Goulet <dgoulet@torproject.org>
8 years agoMerge branch 'maint-0.3.1'
Nick Mathewson [Mon, 18 Sep 2017 14:48:31 +0000 (10:48 -0400)] 
Merge branch 'maint-0.3.1'

8 years agoMake hs_ntor_ref.py work with python3
Nick Mathewson [Mon, 18 Sep 2017 14:48:28 +0000 (10:48 -0400)] 
Make hs_ntor_ref.py work with python3

8 years agoStart on a changelog for 0.3.2.1-alpha: sortchanges and formatchangelog
Nick Mathewson [Mon, 18 Sep 2017 14:32:03 +0000 (10:32 -0400)] 
Start on a changelog for 0.3.2.1-alpha: sortchanges and formatchangelog

8 years agoBump to 0.3.2.1-alpha
Nick Mathewson [Mon, 18 Sep 2017 14:30:41 +0000 (10:30 -0400)] 
Bump to 0.3.2.1-alpha

8 years agoUse the lintChanges script to fix style issues in changes entries
Nick Mathewson [Mon, 18 Sep 2017 14:24:03 +0000 (10:24 -0400)] 
Use the lintChanges script to fix style issues in changes entries

8 years agoremove changes files for items that appeared in 0.3.17
Nick Mathewson [Mon, 18 Sep 2017 14:12:30 +0000 (10:12 -0400)] 
remove changes files for items that appeared in 0.3.17

8 years agoforward-port changelogs and release notes for 0.2.8.15, 0.2.9.12, 0.3.0.11, 0.3.1.7
Nick Mathewson [Mon, 18 Sep 2017 14:11:15 +0000 (10:11 -0400)] 
forward-port changelogs and release notes for 0.2.8.15, 0.2.9.12, 0.3.0.11, 0.3.1.7

8 years agoMerge branch 'maint-0.3.1'
Nick Mathewson [Mon, 18 Sep 2017 13:42:30 +0000 (09:42 -0400)] 
Merge branch 'maint-0.3.1'

8 years agoMerge branch 'maint-0.2.9' into maint-0.3.0
Nick Mathewson [Mon, 18 Sep 2017 13:40:40 +0000 (09:40 -0400)] 
Merge branch 'maint-0.2.9' into maint-0.3.0

8 years agoMerge branch 'maint-0.3.0' into maint-0.3.1
Nick Mathewson [Mon, 18 Sep 2017 13:40:40 +0000 (09:40 -0400)] 
Merge branch 'maint-0.3.0' into maint-0.3.1

8 years agoMerge branch 'trove-2017-008_030' into maint-0.3.0
Nick Mathewson [Mon, 18 Sep 2017 13:40:36 +0000 (09:40 -0400)] 
Merge branch 'trove-2017-008_030' into maint-0.3.0

8 years agoMerge branch 'maint-0.2.8' into maint-0.3.0
Nick Mathewson [Mon, 18 Sep 2017 13:40:09 +0000 (09:40 -0400)] 
Merge branch 'maint-0.2.8' into maint-0.3.0

This is an "ours" merge to avoid the conflict from the 0.2.8 version
of the fix for TROVE-2017-008.

8 years agoMerge branch 'maint-0.2.8' into maint-0.2.9
Nick Mathewson [Mon, 18 Sep 2017 13:39:46 +0000 (09:39 -0400)] 
Merge branch 'maint-0.2.8' into maint-0.2.9

8 years agoMerge branch 'trove-2017-008_028' into maint-0.2.8
Nick Mathewson [Mon, 18 Sep 2017 13:39:35 +0000 (09:39 -0400)] 
Merge branch 'trove-2017-008_028' into maint-0.2.8

8 years agoFix log-uninitialized-stack bug in rend_service_intro_established.
Nick Mathewson [Mon, 18 Sep 2017 13:25:21 +0000 (09:25 -0400)] 
Fix log-uninitialized-stack bug in rend_service_intro_established.

Fixes bug 23490; bugfix on 0.2.7.2-alpha.

TROVE-2017-008
CVE-2017-0380

8 years agoFix log-uninitialized-stack bug in rend_service_intro_established.
Nick Mathewson [Mon, 18 Sep 2017 13:25:21 +0000 (09:25 -0400)] 
Fix log-uninitialized-stack bug in rend_service_intro_established.

Fixes bug 23490; bugfix on 0.2.7.2-alpha.

TROVE-2017-008
CVE-2017-0380

8 years agoAdd check for double-semi-colons at the end of a line
Edmund Wong [Mon, 18 Sep 2017 07:33:24 +0000 (15:33 +0800)] 
Add check for double-semi-colons at the end of a line

8 years agoFix memory leak in tor-gencert.c
Nick Mathewson [Mon, 18 Sep 2017 00:42:28 +0000 (20:42 -0400)] 
Fix memory leak in tor-gencert.c

This was introduced in 4ff170d7b1cbe4074cb852, and is probably
unreachable, but coverity complained about it (CID 1417761). Bug not
in any released Tor, so no changes file.

8 years agoadd frebsd ports maintainer to releasingtor list
Nick Mathewson [Mon, 18 Sep 2017 00:32:27 +0000 (20:32 -0400)] 
add frebsd ports maintainer to releasingtor list

8 years agokist_no_kernel_support is unused when we didn't detect it.
Nick Mathewson [Fri, 15 Sep 2017 20:44:05 +0000 (16:44 -0400)] 
kist_no_kernel_support is unused when we didn't detect it.

So, remove it.

8 years agoReplace accumulated C ;;s with ;s
Nick Mathewson [Fri, 15 Sep 2017 20:43:17 +0000 (16:43 -0400)] 
Replace accumulated C ;;s with ;s

I don't know where these came from.

8 years agoMerge branch 'scan-build-032'
Nick Mathewson [Fri, 15 Sep 2017 20:40:11 +0000 (16:40 -0400)] 
Merge branch 'scan-build-032'

8 years agoRun our #else/#endif annotator on our source code.
Nick Mathewson [Fri, 15 Sep 2017 20:24:44 +0000 (16:24 -0400)] 
Run our #else/#endif annotator on our source code.

8 years agoSplit some long #if lines to make the #endif annotator happy
Nick Mathewson [Fri, 15 Sep 2017 20:15:27 +0000 (16:15 -0400)] 
Split some long #if lines to make the #endif annotator happy

8 years agoupdate script to use /* */ comments
Nick Mathewson [Fri, 15 Sep 2017 20:11:48 +0000 (16:11 -0400)] 
update script to use /* */ comments

8 years agoMerge branch 'annotate_ifdefs'
Nick Mathewson [Fri, 15 Sep 2017 20:07:37 +0000 (16:07 -0400)] 
Merge branch 'annotate_ifdefs'

8 years agoMerge branch 'maint-0.3.1'
Nick Mathewson [Fri, 15 Sep 2017 18:40:35 +0000 (14:40 -0400)] 
Merge branch 'maint-0.3.1'

Resolve conflict with 23532 code.

8 years agoMerge branch 'bug23533_031' into maint-0.3.1
Nick Mathewson [Fri, 15 Sep 2017 18:39:23 +0000 (14:39 -0400)] 
Merge branch 'bug23533_031' into maint-0.3.1

8 years agokist: Cast, then do operations on int32.
Nick Mathewson [Fri, 15 Sep 2017 18:30:19 +0000 (14:30 -0400)] 
kist: Cast, then do operations on int32.

Otherwise integer overflows can happen.  Remember, doing a i32xi32
multiply doesn't actually produce a 64-bit output.  You need to do
i64xi32 or i64xi64.

Coverity found this as CID 1417753

8 years agoMerge branch 'bug23487_029'
Nick Mathewson [Fri, 15 Sep 2017 18:27:58 +0000 (14:27 -0400)] 
Merge branch 'bug23487_029'

8 years agoUse different variable names for pw_uid usages
Nick Mathewson [Fri, 15 Sep 2017 18:26:59 +0000 (14:26 -0400)] 
Use different variable names for pw_uid usages

Catalyst points out that using pw_uid for two different purposes
here is likely to be confusing.

8 years agoMake netinet/tcp include conditional too: windows lacks it.
Nick Mathewson [Fri, 15 Sep 2017 18:08:46 +0000 (14:08 -0400)] 
Make netinet/tcp include conditional too: windows lacks it.

8 years agofix some 32-bit warnings about printf arguments
Nick Mathewson [Fri, 15 Sep 2017 18:02:08 +0000 (14:02 -0400)] 
fix some 32-bit warnings about printf arguments

8 years agoTry to improve formatting on the Schedulers option
Nick Mathewson [Fri, 15 Sep 2017 17:57:57 +0000 (13:57 -0400)] 
Try to improve formatting on the Schedulers option

8 years agoMerge branch 'remove_allow_dotexit_v2'
Nick Mathewson [Fri, 15 Sep 2017 16:10:47 +0000 (12:10 -0400)] 
Merge branch 'remove_allow_dotexit_v2'

8 years agoRemove AllowDotExit.
Nick Mathewson [Thu, 7 Sep 2017 13:51:45 +0000 (09:51 -0400)] 
Remove AllowDotExit.

It's been deprecated since 0.2.9.2-alpha.  Closes ticket 23426.

8 years agowrap a wide comment
Nick Mathewson [Fri, 15 Sep 2017 16:03:08 +0000 (12:03 -0400)] 
wrap a wide comment

8 years agoMerge remote-tracking branch 'dgoulet/ticket12541_032_02'
Nick Mathewson [Fri, 15 Sep 2017 16:00:50 +0000 (12:00 -0400)] 
Merge remote-tracking branch 'dgoulet/ticket12541_032_02'

8 years agodoc: Man page entries for KIST
David Goulet [Fri, 15 Sep 2017 15:58:04 +0000 (11:58 -0400)] 
doc: Man page entries for KIST

Signed-off-by: David Goulet <dgoulet@torproject.org>
8 years agoMerge remote-tracking branch 'dgoulet/ticket19254_032_01'
Nick Mathewson [Fri, 15 Sep 2017 15:52:10 +0000 (11:52 -0400)] 
Merge remote-tracking branch 'dgoulet/ticket19254_032_01'

8 years agosched: add comment about how we determine if a socket should write
Matt Traudt [Fri, 15 Sep 2017 14:28:52 +0000 (10:28 -0400)] 
sched: add comment about how we determine if a socket should write

8 years agofixup! sched: add changes file (spaces)
Matt Traudt [Fri, 15 Sep 2017 14:28:01 +0000 (10:28 -0400)] 
fixup! sched: add changes file (spaces)

8 years agosched: add changes file
Matt Traudt [Fri, 15 Sep 2017 14:22:31 +0000 (10:22 -0400)] 
sched: add changes file

8 years agosched: add more per-socket limit documentation; int fix
Matt Traudt [Fri, 15 Sep 2017 14:22:11 +0000 (10:22 -0400)] 
sched: add more per-socket limit documentation; int fix

8 years agosched: Revert IF_BUG_ONCE() to tor_assert()
David Goulet [Fri, 15 Sep 2017 13:25:04 +0000 (09:25 -0400)] 
sched: Revert IF_BUG_ONCE() to tor_assert()

Signed-off-by: David Goulet <dgoulet@torproject.org>
8 years agosched: Define SCHEDULER_KIST_PRIVATE for more encapsulation
David Goulet [Fri, 15 Sep 2017 13:06:11 +0000 (09:06 -0400)] 
sched: Define SCHEDULER_KIST_PRIVATE for more encapsulation

Signed-off-by: David Goulet <dgoulet@torproject.org>
8 years agosched: Improve logging if KIST is disabled
David Goulet [Thu, 14 Sep 2017 20:04:47 +0000 (16:04 -0400)] 
sched: Improve logging if KIST is disabled

Signed-off-by: David Goulet <dgoulet@torproject.org>
8 years agotest: Fix unit tests with latest scheduler changes
David Goulet [Thu, 14 Sep 2017 19:26:12 +0000 (15:26 -0400)] 
test: Fix unit tests with latest scheduler changes

Signed-off-by: David Goulet <dgoulet@torproject.org>
8 years agosched: Make the scheduler object static
David Goulet [Thu, 14 Sep 2017 18:47:59 +0000 (14:47 -0400)] 
sched: Make the scheduler object static

Each type of scheduler implements its own static scheduler_t object and
returns a reference to it.

This commit also makes it a const pointer that is it can only change inside
the scheduler type subsystem but not outside for extra protection.

Signed-off-by: David Goulet <dgoulet@torproject.org>
8 years agosched: Compare channel pointer in the socket table
David Goulet [Thu, 14 Sep 2017 18:37:57 +0000 (14:37 -0400)] 
sched: Compare channel pointer in the socket table

Signed-off-by: David Goulet <dgoulet@torproject.org>
8 years agosched: Make the outbuf table local to run()
David Goulet [Thu, 14 Sep 2017 18:37:10 +0000 (14:37 -0400)] 
sched: Make the outbuf table local to run()

Signed-off-by: David Goulet <dgoulet@torproject.org>
8 years agosched: Make check-spaces happy
David Goulet [Thu, 14 Sep 2017 18:29:52 +0000 (14:29 -0400)] 
sched: Make check-spaces happy

Signed-off-by: David Goulet <dgoulet@torproject.org>
8 years agosched: Extra careful in channel_outbuf_length()
David Goulet [Thu, 14 Sep 2017 18:27:41 +0000 (14:27 -0400)] 
sched: Extra careful in channel_outbuf_length()

In case we don't have a connection object in the channel, just be careful and
recover.

Signed-off-by: David Goulet <dgoulet@torproject.org>
8 years agosched: Don't expose the global scheduler libevent object
David Goulet [Thu, 14 Sep 2017 18:22:22 +0000 (14:22 -0400)] 
sched: Don't expose the global scheduler libevent object

Instead, add wrappers to do the needed action the different scheduler needs
with the libevent object.

Signed-off-by: David Goulet <dgoulet@torproject.org>
8 years agosched: Always call on_channel_free() regardless of state
David Goulet [Thu, 14 Sep 2017 17:29:05 +0000 (13:29 -0400)] 
sched: Always call on_channel_free() regardless of state

A channel can bounce in the scheduler and bounce out with the IDLE state which
means that if it came in the scheduler once, it has socket information that
needs to be freed from the global hash table.

Signed-off-by: David Goulet <dgoulet@torproject.org>
8 years agosched: Add Schedulers torrc option
David Goulet [Thu, 14 Sep 2017 17:23:43 +0000 (13:23 -0400)] 
sched: Add Schedulers torrc option

This option is a list of possible scheduler type tor can use ordered by
priority. Its default value is "KIST,KISTLite,Vanilla" which means that KIST
will be used first and if unavailable will fallback to KISTLite and so on.

Signed-off-by: David Goulet <dgoulet@torproject.org>
8 years agosched: change most asserts to non-fatal BUGs
Matt Traudt [Wed, 13 Sep 2017 20:35:15 +0000 (16:35 -0400)] 
sched: change most asserts to non-fatal BUGs

8 years agosched: revisist compatibility on non-linux systems
Matt Traudt [Wed, 13 Sep 2017 18:32:27 +0000 (14:32 -0400)] 
sched: revisist compatibility on non-linux systems

Wrap things in HAVE_KIST_SUPPORT until Tor compiles and tests cleanly on
my OS X machine.

8 years agosched: rename scheduler to the_scheduler
Matt Traudt [Wed, 13 Sep 2017 16:54:49 +0000 (12:54 -0400)] 
sched: rename scheduler to the_scheduler

8 years agosched: validate KIST sched options
Matt Traudt [Wed, 13 Sep 2017 16:47:02 +0000 (12:47 -0400)] 
sched: validate KIST sched options

8 years agosched: switch to monotonic time; add/fix comments, style, and logs msgs
Matt Traudt [Wed, 13 Sep 2017 02:12:24 +0000 (22:12 -0400)] 
sched: switch to monotonic time; add/fix comments, style, and logs msgs

8 years agosched: Add sandbox support for KIST
David Goulet [Thu, 7 Sep 2017 19:22:05 +0000 (15:22 -0400)] 
sched: Add sandbox support for KIST

Signed-off-by: David Goulet <dgoulet@torproject.org>
8 years agosched: Fallback to naive approach if no runtime KIST support
David Goulet [Thu, 31 Aug 2017 14:41:14 +0000 (10:41 -0400)] 
sched: Fallback to naive approach if no runtime KIST support

It is possible that tor was compiled with KIST support but the running kernel
has no support for it. In that case, fallback to a naive approach and flag
that we have no kernel support.

At this commit, if the kernel support is disabled, there are no ways to come
back from it other than restarting tor with a kernel that supporst KIST.

Signed-off-by: David Goulet <dgoulet@torproject.org>
8 years agosched: Detect KIST support at compile time
David Goulet [Thu, 31 Aug 2017 13:56:55 +0000 (09:56 -0400)] 
sched: Detect KIST support at compile time

Add a detection for the KIST scheduler in our build system and set
HAVE_KIST_SUPPORT if available.

Adapt the should use kist function with this new compile option.

Signed-off-by: David Goulet <dgoulet@torproject.org>
8 years agosched: Implement the KIST scheduler
Matt Traudt [Tue, 11 Jul 2017 16:47:37 +0000 (12:47 -0400)] 
sched: Implement the KIST scheduler

Closes #12541

Signed-off-by: David Goulet <dgoulet@torproject.org>
8 years agosched: Groundwork before KIST implementation
Matt Traudt [Mon, 10 Jul 2017 20:10:29 +0000 (16:10 -0400)] 
sched: Groundwork before KIST implementation

- HT_FOREACH_FN defined in an additional place because nickm did that
  in an old kist prototype
- Make channel_more_to_flush mockable for future sched tests
- Add empty scheduler_{vanilla,kist}.c files and put in include.am

Signed-off-by: David Goulet <dgoulet@torproject.org>
8 years agosched: Remove vanilla sched options that will be going away
Matt Traudt [Mon, 10 Jul 2017 14:47:56 +0000 (10:47 -0400)] 
sched: Remove vanilla sched options that will be going away

- massive change to src/tgest/test_options.c since the sched options
  were added all over the place in it
- removing the sched options caused some tests to pass/fail in new ways
  so I assumed current behavior is correct and made them pass again
   - ex: "ConnLimit must be greater" lines
   - ex: "Authoritative directory servers must" line
- remove test_options_validate__scheduler in prep for new sched tests

Signed-off-by: David Goulet <dgoulet@torproject.org>
8 years agoMerge remote-tracking branch 'catalyst-oniongit/bug23532'
Nick Mathewson [Fri, 15 Sep 2017 15:17:18 +0000 (11:17 -0400)] 
Merge remote-tracking branch 'catalyst-oniongit/bug23532'

8 years agoMake NETINFO clock skew detection work on clients
Taylor Yu [Fri, 15 Sep 2017 01:43:52 +0000 (20:43 -0500)] 
Make NETINFO clock skew detection work on clients

An unnecessary routerlist check in the NETINFO clock skew detection in
channel_tls_process_netinfo_cell() was preventing clients from
reporting NETINFO clock skew to controllers.

8 years agoRefactor channeltls.c lightly
Taylor Yu [Fri, 15 Sep 2017 13:59:00 +0000 (08:59 -0500)] 
Refactor channeltls.c lightly

Refactor some repetitive deep indirections in several functions in
channeltls.c into local variables.

8 years agoFix several places where md-using relays would get wrong behavior.
Nick Mathewson [Wed, 6 Sep 2017 20:26:47 +0000 (16:26 -0400)] 
Fix several places where md-using relays would get wrong behavior.

This patch replaces a few calls to router_get_by_id_digest ("do we
have a routerinfo?") with connection_or_digest_is_known_relay ("do
we know this relay to be in the consensus, or have been there some
time recently?").

Found while doing the 21585 audit; fixes bug 23533.  Bugfix on
0.3.0.1-alpha.

8 years agoMerge branch 'maint-0.3.1'
Nick Mathewson [Fri, 15 Sep 2017 13:33:41 +0000 (09:33 -0400)] 
Merge branch 'maint-0.3.1'

"ours" merge to avoid version bump

8 years agobump to 0.3.1.7
Nick Mathewson [Fri, 15 Sep 2017 13:33:32 +0000 (09:33 -0400)] 
bump to 0.3.1.7

8 years agorepair test_key_expiration.sh
Nick Mathewson [Fri, 15 Sep 2017 13:04:22 +0000 (09:04 -0400)] 
repair test_key_expiration.sh

8 years agoMerge remote-tracking branch 'dgoulet/ticket23310_032_02'
Nick Mathewson [Fri, 15 Sep 2017 13:01:22 +0000 (09:01 -0400)] 
Merge remote-tracking branch 'dgoulet/ticket23310_032_02'

8 years agoMerge branch 'bug23488'
Nick Mathewson [Fri, 15 Sep 2017 12:58:20 +0000 (08:58 -0400)] 
Merge branch 'bug23488'

8 years agotest: Make check-spaces happy
David Goulet [Fri, 15 Sep 2017 12:34:56 +0000 (08:34 -0400)] 
test: Make check-spaces happy

Signed-off-by: David Goulet <dgoulet@torproject.org>