]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
6 years agoMerge remote-tracking branch 'tor-github/pr/902' into maint-0.2.9
teor [Fri, 5 Apr 2019 23:28:58 +0000 (09:28 +1000)] 
Merge remote-tracking branch 'tor-github/pr/902' into maint-0.2.9

6 years agoMerge remote-tracking branch 'tor-github/pr/877' into maint-0.2.9
teor [Fri, 5 Apr 2019 23:28:13 +0000 (09:28 +1000)] 
Merge remote-tracking branch 'tor-github/pr/877' into maint-0.2.9

6 years agoMakefile: actually, don't delete the gcno files
teor [Fri, 5 Apr 2019 02:56:29 +0000 (12:56 +1000)] 
Makefile: actually, don't delete the gcno files

We need to keep the gcno files, because they are created at compile time.

6 years agoDo not cache bogus results from classifying client ciphers
Nick Mathewson [Thu, 4 Apr 2019 15:24:55 +0000 (11:24 -0400)] 
Do not cache bogus results from classifying client ciphers

When classifying a client's selection of TLS ciphers, if the client
ciphers are not yet available, do not cache the result. Previously,
we had cached the unavailability of the cipher list and never looked
again, which in turn led us to assume that the client only supported
the ancient V1 link protocol.  This, in turn, was causing Stem
integration tests to stall in some cases.  Fixes bug 30021; bugfix
on 0.2.4.8-alpha.

6 years agoUpdate geoip and geoip6 to the April 2 2019 database.
Karsten Loesing [Wed, 3 Apr 2019 07:26:28 +0000 (09:26 +0200)] 
Update geoip and geoip6 to the April 2 2019 database.

6 years agoMakefile: delete all the gcov-related files in reset-gcov
teor [Mon, 1 Apr 2019 03:49:27 +0000 (13:49 +1000)] 
Makefile: delete all the gcov-related files in reset-gcov

And fix a comment.

See:
https://gcc.gnu.org/onlinedocs/gcc/Gcov-Data-Files.html#Gcov-Data-Files

6 years agochanges: Use the first Tor version with CI coverage for the 29036 changes file
teor [Mon, 1 Apr 2019 03:40:16 +0000 (13:40 +1000)] 
changes: Use the first Tor version with CI coverage for the 29036 changes file

Otherwise, "make check-changes" will complain when we backport the change.

6 years agotest: Backport the 0.3.4 src/test/test-network.sh to 0.2.9
teor [Fri, 22 Mar 2019 03:20:23 +0000 (13:20 +1000)] 
test: Backport the 0.3.4 src/test/test-network.sh to 0.2.9

We need a recent test-network.sh to use new chutney features in CI.

Fixes bug 29703; bugfix on 0.2.9.1-alpha.

6 years agoHandle errors from coveralls more gracefully.
Alexander Færøy [Wed, 20 Mar 2019 14:44:06 +0000 (15:44 +0100)] 
Handle errors from coveralls more gracefully.

Since we have moved coveralls to the script target the entire build will
now fail if coveralls fail. We handle it more gracefully by echo'ing the
failure instead of doing a hard-failure.

See: https://bugs.torproject.org/29036

6 years agoRun `make reset-gcov` after the script target in Travis CI is done.
Alexander Færøy [Mon, 18 Mar 2019 14:27:14 +0000 (15:27 +0100)] 
Run `make reset-gcov` after the script target in Travis CI is done.

This should ensure that GCDA files are never entering the cache of
Travis CI.

See: https://bugs.torproject.org/29036

6 years agoMerge remote-tracking branch 'tor-github/pr/774' into maint-0.2.9
teor [Tue, 19 Mar 2019 23:46:10 +0000 (09:46 +1000)] 
Merge remote-tracking branch 'tor-github/pr/774' into maint-0.2.9

6 years agotest/sr: Clear SRVs after init, and before setup
teor [Mon, 18 Mar 2019 01:12:25 +0000 (11:12 +1000)] 
test/sr: Clear SRVs after init, and before setup

Already merged to 0.4.0 and later in tor-github/pr/776.
Backported to 0.2.9 and later with minor comment changes.

Part of 29706.

6 years agoMerge remote-tracking branch 'tor-github/pr/770' into maint-0.2.9
teor [Wed, 13 Mar 2019 20:37:50 +0000 (06:37 +1000)] 
Merge remote-tracking branch 'tor-github/pr/770' into maint-0.2.9

6 years agoMerge remote-tracking branch 'tor-github/pr/765' into maint-0.2.9
teor [Wed, 13 Mar 2019 20:37:17 +0000 (06:37 +1000)] 
Merge remote-tracking branch 'tor-github/pr/765' into maint-0.2.9

6 years agoMerge remote-tracking branch 'tor-github/pr/746' into maint-0.2.9
teor [Wed, 13 Mar 2019 20:36:47 +0000 (06:36 +1000)] 
Merge remote-tracking branch 'tor-github/pr/746' into maint-0.2.9

6 years agoMerge remote-tracking branch 'tor-github/pr/510' into maint-0.2.9
teor [Wed, 13 Mar 2019 20:36:11 +0000 (06:36 +1000)] 
Merge remote-tracking branch 'tor-github/pr/510' into maint-0.2.9

6 years agoMerge remote-tracking branch 'tor-github/pr/331' into maint-0.2.9
teor [Wed, 13 Mar 2019 20:35:05 +0000 (06:35 +1000)] 
Merge remote-tracking branch 'tor-github/pr/331' into maint-0.2.9

6 years agotest/sr: Free SRVs before replacing them in test_sr_setup_srv()
teor [Sat, 9 Mar 2019 00:50:07 +0000 (10:50 +1000)] 
test/sr: Free SRVs before replacing them in test_sr_setup_srv()

Stop leaking parts of the shared random state in the shared-random unit
tests. The previous fix in 29599 was incomplete.

Fixes bug 29706; bugfix on 0.2.9.1-alpha.

6 years agoUpdate geoip and geoip6 to the March 4 2019 database.
Karsten Loesing [Wed, 6 Mar 2019 10:45:27 +0000 (11:45 +0100)] 
Update geoip and geoip6 to the March 4 2019 database.

6 years agoMerge remote-tracking branch 'tor-github/pr/749' into maint-0.2.9
teor [Fri, 1 Mar 2019 04:15:00 +0000 (14:15 +1000)] 
Merge remote-tracking branch 'tor-github/pr/749' into maint-0.2.9

6 years agoMerge remote-tracking branch 'tor-github/pr/748' into maint-0.2.9
teor [Fri, 1 Mar 2019 04:14:51 +0000 (14:14 +1000)] 
Merge remote-tracking branch 'tor-github/pr/748' into maint-0.2.9

6 years agoMerge remote-tracking branch 'tor-github/pr/747' into maint-0.2.9
teor [Fri, 1 Mar 2019 04:14:26 +0000 (14:14 +1000)] 
Merge remote-tracking branch 'tor-github/pr/747' into maint-0.2.9

6 years agoBug 25733: Avoid assert failure if all circuits time out.
Mike Perry [Mon, 16 Apr 2018 22:49:27 +0000 (22:49 +0000)] 
Bug 25733: Avoid assert failure if all circuits time out.

Prior to #23100, we were not counting HS circuit build times in our
calculation of the timeout. This could lead to a condition where our timeout
was set too low, based on non HS circuit build times, and then we would
abandon all HS circuits, storing no valid timeouts in the histogram.

This commit avoids the assert.

6 years agotest/shared-random: Stop leaking shared random state in the unit tests
teor [Tue, 26 Feb 2019 12:14:30 +0000 (22:14 +1000)] 
test/shared-random: Stop leaking shared random state in the unit tests

Stop leaking parts of the shared random state in the shared-random unit
tests.

Fixes bug 29599; bugfix on 0.2.9.1-alpha.

6 years agoFix a compiler warning on OpenBSD
Kris Katterjohn [Mon, 21 Jan 2019 22:33:32 +0000 (16:33 -0600)] 
Fix a compiler warning on OpenBSD

malloc_options needs to be declared extern (and declaring it extern
means we need to initialize it separately)

Fixes bug 29145; bugfix on 0.2.9.3-alpha

Signed-off-by: Kris Katterjohn <katterjohn@gmail.com>
6 years agoUpdate geoip and geoip6 to the February 5 2019 database.
Karsten Loesing [Tue, 12 Feb 2019 13:40:42 +0000 (14:40 +0100)] 
Update geoip and geoip6 to the February 5 2019 database.

6 years agomaint-0.2.9: remove changes files that are merged in 0.2.9 releases
Nick Mathewson [Wed, 23 Jan 2019 14:48:28 +0000 (09:48 -0500)] 
maint-0.2.9: remove changes files that are merged in 0.2.9 releases

Many of these files cause check-changes to fail, which will be a
long-term problem as we continue to support 0.2.9.

6 years agorend: stop warning when clients send multiple rend establish cells
teor [Wed, 9 Jan 2019 08:00:34 +0000 (18:00 +1000)] 
rend: stop warning when clients send multiple rend establish cells

Stop logging "Tried to establish rendezvous on non-OR circuit..." as
a warning. Instead, log it as a protocol warning, because there is
nothing that relay operators can do to fix it.

Fixes bug 29029; bugfix on 0.2.5.7-rc.

6 years agoUpdate geoip and geoip6 to the January 3 2019 database.
Karsten Loesing [Mon, 7 Jan 2019 08:00:29 +0000 (09:00 +0100)] 
Update geoip and geoip6 to the January 3 2019 database.

6 years agoMerge branch 'bug21394_029_redux' into maint-0.2.9
Nick Mathewson [Fri, 4 Jan 2019 20:04:54 +0000 (15:04 -0500)] 
Merge branch 'bug21394_029_redux' into maint-0.2.9

6 years agoNote ticket number in changes file for 24803
Nick Mathewson [Tue, 11 Dec 2018 15:00:19 +0000 (10:00 -0500)] 
Note ticket number in changes file for 24803

6 years agoFallbacks: Update the hard-coded fallback list in December 2018
teor [Mon, 10 Dec 2018 06:56:29 +0000 (16:56 +1000)] 
Fallbacks: Update the hard-coded fallback list in December 2018

Merge Phoul's two lists into teor's list.

Replace the 150 fallbacks originally introduced in Tor 0.3.3.1-alpha in
January 2018 (of which ~115 were still functional), with a list of
157 fallbacks (92 new, 65 existing, 85 removed) generated in
December 2018.

Closes ticket 24803.

6 years agoFallbacks: Update the hard-coded fallback list in December 2018
teor [Fri, 7 Dec 2018 06:43:10 +0000 (16:43 +1000)] 
Fallbacks: Update the hard-coded fallback list in December 2018

Replace the 150 fallbacks originally introduced in Tor 0.3.3.1-alpha in
January 2018 (of which ~115 were still functional), with a list of
148 fallbacks (89 new, 59 existing, 91 removed) generated in
December 2018.

Closes ticket 24803.

6 years agoUpdate geoip and geoip6 to the December 5 2018 database.
Karsten Loesing [Wed, 5 Dec 2018 20:02:39 +0000 (21:02 +0100)] 
Update geoip and geoip6 to the December 5 2018 database.

6 years agoMerge remote-tracking branch 'public/bug24104_029_squashed' into maint-0.2.9
Nick Mathewson [Thu, 15 Nov 2018 21:43:50 +0000 (16:43 -0500)] 
Merge remote-tracking branch 'public/bug24104_029_squashed' into maint-0.2.9

Resolved conflicts with the 26269 fix in 015fcd0e1191aa6f.

6 years agoWindows: fix uname on recent Windows versions
teor [Mon, 22 Oct 2018 04:02:43 +0000 (14:02 +1000)] 
Windows: fix uname on recent Windows versions

Correctly identify Windows 8.1, Windows 10, and Windows Server 2008
and later from their NT versions.

On recent Windows versions, the GetVersionEx() function may report
an earlier Windows version than the running OS. To avoid user
confusion, add "[or later]" to Tor's version string on affected
versions of Windows.

Remove Windows versions that were never supported by the
GetVersionEx() function.

Stop duplicating the latest Windows version in get_uname().

Fixes bug 28096; bugfix on 0.2.2.34; reported by Keifer Bly.

6 years agoMerge branch 'bug28413_029' into maint-0.2.9
Nick Mathewson [Tue, 13 Nov 2018 13:26:51 +0000 (08:26 -0500)] 
Merge branch 'bug28413_029' into maint-0.2.9

6 years agoFix a compiler warning in aes.c.
Nick Mathewson [Mon, 12 Nov 2018 20:39:28 +0000 (15:39 -0500)] 
Fix a compiler warning in aes.c.

Apparently some freebsd compilers can't tell that 'c' will never
be used uninitialized.

Fixes bug 28413; bugfix on 0.2.9.3-alpha when we added support for
longer AES keys to this function.

6 years agoFix a bug in usage of SSL_set1_groups_list()
Nick Mathewson [Sun, 11 Nov 2018 23:03:50 +0000 (18:03 -0500)] 
Fix a bug in usage of SSL_set1_groups_list()

Apparently, even though the manpage says it returns an int, it
can return a long instead and cause a warning.

Bug not in any released Tor.  Part of #28399

6 years agoUpdate geoip and geoip6 to the November 6 2018 database.
Karsten Loesing [Sun, 11 Nov 2018 10:25:59 +0000 (11:25 +0100)] 
Update geoip and geoip6 to the November 6 2018 database.

6 years agoMerge branch 'bug28245_029' into maint-0.2.9
Nick Mathewson [Fri, 9 Nov 2018 15:49:43 +0000 (10:49 -0500)] 
Merge branch 'bug28245_029' into maint-0.2.9

6 years agoAlways declare groups when building with openssl 1.1.1 APIs
Nick Mathewson [Fri, 9 Nov 2018 15:10:25 +0000 (10:10 -0500)] 
Always declare groups when building with openssl 1.1.1 APIs

Failing to do on clients was causing TLS 1.3 negotiation to fail.

Fixes bug 28245; bugfix on 0.2.9.15, when we added TLS 1.3 support.

7 years agoMerge remote-tracking branch 'tor-github/pr/436' into maint-0.2.9
Nick Mathewson [Wed, 31 Oct 2018 15:01:36 +0000 (11:01 -0400)] 
Merge remote-tracking branch 'tor-github/pr/436' into maint-0.2.9

7 years agoFix two other cases of (buf + N > end) pattern
Nick Mathewson [Thu, 25 Oct 2018 13:08:02 +0000 (09:08 -0400)] 
Fix two other cases of (buf + N > end) pattern

Related to fix for 28202.

7 years agoFix possible UB in an end-of-string check in get_next_token().
Nick Mathewson [Thu, 25 Oct 2018 13:06:13 +0000 (09:06 -0400)] 
Fix possible UB in an end-of-string check in get_next_token().

Remember, you can't check to see if there are N bytes left in a
buffer by doing (buf + N < end), since the buf + N computation might
take you off the end of the buffer and result in undefined behavior.

Fixes 28202; bugfix on 0.2.0.3-alpha.

7 years agoTreat backtrace test failures as expected on most BSD-derived systems
teor [Tue, 23 Oct 2018 01:21:10 +0000 (11:21 +1000)] 
Treat backtrace test failures as expected on most BSD-derived systems

Treat backtrace test failures as expected on NetBSD, OpenBSD, and
macOS/Darwin, until we solve bug 17808.

(FreeBSD failures have been treated as expected since 18204 in 0.2.8.)

Fixes bug 27948; bugfix on 0.2.5.2-alpha.

7 years agoFix make check-spaces.
Nick Mathewson [Mon, 15 Oct 2018 16:47:19 +0000 (12:47 -0400)] 
Fix make check-spaces.

7 years agoMerge branch 'bug27709_029' into maint-0.2.9
Nick Mathewson [Mon, 15 Oct 2018 14:34:39 +0000 (10:34 -0400)] 
Merge branch 'bug27709_029' into maint-0.2.9

7 years agoExplain a bit more about branch prediction in the unit-test case
Nick Mathewson [Mon, 15 Oct 2018 14:16:34 +0000 (10:16 -0400)] 
Explain a bit more about branch prediction in the unit-test case

7 years agoMerge remote-tracking branch 'tor-github/pr/392' into maint-0.2.9
Nick Mathewson [Wed, 10 Oct 2018 21:12:11 +0000 (17:12 -0400)] 
Merge remote-tracking branch 'tor-github/pr/392' into maint-0.2.9

7 years agoUpdate geoip and geoip6 to the October 9 2018 database.
Karsten Loesing [Wed, 10 Oct 2018 15:26:41 +0000 (17:26 +0200)] 
Update geoip and geoip6 to the October 9 2018 database.

7 years agoFix a pair of errors in bug23512
Nick Mathewson [Thu, 20 Sep 2018 18:18:09 +0000 (14:18 -0400)] 
Fix a pair of errors in bug23512

7 years agoTravis: use the Homebrew addon
teor [Tue, 18 Sep 2018 09:26:54 +0000 (19:26 +1000)] 
Travis: use the Homebrew addon

Use the Travis Homebrew addon to install packages on macOS. The package
list is the same, but the Homebrew addon does not do a `brew update` by
default.

This makes builds faster, at the cost of using slightly older packages.

Implements ticket 27738.

7 years agoBug 23512: Test recording bytes in circ queues.
Mike Perry [Thu, 13 Sep 2018 23:03:32 +0000 (23:03 +0000)] 
Bug 23512: Test recording bytes in circ queues.

7 years agoBug 23512: Changes file.
Mike Perry [Thu, 13 Sep 2018 19:19:03 +0000 (19:19 +0000)] 
Bug 23512: Changes file.

7 years agoBug 23512: Report queued cells on or circs as written.
Mike Perry [Fri, 14 Sep 2018 18:50:40 +0000 (18:50 +0000)] 
Bug 23512: Report queued cells on or circs as written.

This avoids asymmetry in our public relay stats, which can be exploited for
guard discovery and other attacks.

7 years agoPromote rep_hist bw functions to uint64_t.
Mike Perry [Fri, 14 Sep 2018 18:35:44 +0000 (18:35 +0000)] 
Promote rep_hist bw functions to uint64_t.

The rest of rephist uses uint64_t internally. Let's make these take it too,
so we don't have to worry about overflowing size_t on 32 bit systems.

7 years agoRevise our assertion and bug macros to work with -Wparentheses
Nick Mathewson [Fri, 14 Sep 2018 15:39:37 +0000 (11:39 -0400)] 
Revise our assertion and bug macros to work with -Wparentheses

On GCC and Clang, there's a feature to warn you about bad
conditionals like "if (a = b)", which should be "if (a == b)".
However, they don't warn you if there are extra parentheses around
"a = b".

Unfortunately, the tor_assert() macro and all of its kin have been
passing their inputs through stuff like PREDICT_UNLIKELY(expr) or
PREDICT_UNLIKELY(!(expr)), both of which expand to stuff with more
parentheses around "expr", thus suppressing these warnings.

To fix this, this patch introduces new macros that do not wrap
expr.  They're only used when GCC or Clang is enabled (both define
__GNUC__), since they require GCC's "({statement expression})"
syntax extension.  They're only used when we're building the
unit-test variant of the object files, since they suppress the
branch-prediction hints.

I've confirmed that tor_assert(), tor_assert_nonfatal(),
tor_assert_nonfatal_once(), BUG(), and IF_BUG_ONCE() all now give
compiler warnings when their argument is an assignment expression.

Fixes bug 27709.

Bugfix on 0.0.6, where we first introduced the "tor_assert()" macro.

7 years agoprotover: reject invalid protocol names
cypherpunks [Sun, 26 Aug 2018 01:20:44 +0000 (01:20 +0000)] 
protover: reject invalid protocol names

The spec only allows the characters [A-Za-z0-9-].

Fix on b2b2e1c7f24d9b65059e3d089768d6c49ba4f58f.
Fixes #27316; bugfix on 0.2.9.4-alpha.

7 years agoIn conditionvar_timeout test, wait for threads to timeout
Nick Mathewson [Fri, 14 Sep 2018 00:47:41 +0000 (20:47 -0400)] 
In conditionvar_timeout test, wait for threads to timeout

Previously we just waited 200msec, which was not enough on slow/busy
systems.

Fixes bug 27073; bugfix on 0.2.6.3-alpha when the test was introduced.

7 years agoMerge branch 'bug27658_029' into maint-0.2.9
Nick Mathewson [Thu, 13 Sep 2018 15:45:58 +0000 (11:45 -0400)] 
Merge branch 'bug27658_029' into maint-0.2.9

7 years agoCheck waitpid return value and exit status in tinytest.c
Nick Mathewson [Wed, 12 Sep 2018 12:57:18 +0000 (08:57 -0400)] 
Check waitpid return value and exit status in tinytest.c

It's possible for a unit test to report success via its pipe, but to
fail as it tries to clean up and exit.  Notably, this happens on a
leak sanitizer failure.

Fixes bug 27658; bugfix on 0.2.2.4-alpha when tinytest was
introduced.

7 years agoMerge remote-tracking branch 'teor/ticket27252-029' into maint-0.2.9
Nick Mathewson [Tue, 11 Sep 2018 17:08:57 +0000 (13:08 -0400)] 
Merge remote-tracking branch 'teor/ticket27252-029' into maint-0.2.9

7 years agoUpdate geoip and geoip6 to the September 6 2018 database.
Karsten Loesing [Tue, 11 Sep 2018 07:26:59 +0000 (09:26 +0200)] 
Update geoip and geoip6 to the September 6 2018 database.

7 years agoBump to 0.2.9.17-dev
Nick Mathewson [Mon, 10 Sep 2018 13:41:22 +0000 (09:41 -0400)] 
Bump to 0.2.9.17-dev

7 years agoBump to 0.2.9.17
Nick Mathewson [Fri, 7 Sep 2018 19:10:49 +0000 (15:10 -0400)] 
Bump to 0.2.9.17

7 years agoMerge branch 'ticket27344_029' into maint-0.2.9
Nick Mathewson [Fri, 7 Sep 2018 13:15:15 +0000 (09:15 -0400)] 
Merge branch 'ticket27344_029' into maint-0.2.9

7 years agoTell openssl to build its TLS contexts with security level 1
Nick Mathewson [Fri, 7 Sep 2018 12:57:14 +0000 (08:57 -0400)] 
Tell openssl to build its TLS contexts with security level 1

Fixes bug 27344, where we'd break compatibility with old tors by
rejecting RSA1024 and DH1024.

7 years agoMerge remote-tracking branch 'teor/bug27461-029' into maint-0.2.9
Nick Mathewson [Fri, 7 Sep 2018 12:46:35 +0000 (08:46 -0400)] 
Merge remote-tracking branch 'teor/bug27461-029' into maint-0.2.9

7 years agoMerge remote-tracking branch 'teor/bug27463-029' into maint-0.2.9
Nick Mathewson [Fri, 7 Sep 2018 12:44:36 +0000 (08:44 -0400)] 
Merge remote-tracking branch 'teor/bug27463-029' into maint-0.2.9

7 years agoWindows: Stop calling SetProcessDEPPolicy() on 64-bit Windows
teor [Fri, 7 Sep 2018 02:58:11 +0000 (12:58 +1000)] 
Windows: Stop calling SetProcessDEPPolicy() on 64-bit Windows

It is not supported, and always fails. Some compilers warn about the
function pointer cast on 64-bit Windows.

Fixes bug 27461; bugfix on 0.2.2.23-alpha.

7 years agohs: Silence a spurious warning in rend_client_send_introduction()
teor [Wed, 5 Sep 2018 11:07:58 +0000 (21:07 +1000)] 
hs: Silence a spurious warning in rend_client_send_introduction()

gcc 8 warns that extend_info_t.nickname might be truncated by strncpy().

But it doesn't know that nickname can either contain a hex id, or a
nicknames. hex ids are only used for general and HSDir circuits.

Fixes bug 27463; bugfix on 0.1.1.2-alpha.

7 years agoWindows: Silence a spurious warning in the GetAdaptersAddresses cast
teor [Thu, 6 Sep 2018 03:11:23 +0000 (13:11 +1000)] 
Windows: Silence a spurious warning in the GetAdaptersAddresses cast

GetProcAddress() returns FARPROC, which is (long long int(*)()) on
64-bit Windows:
https://msdn.microsoft.com/en-us/library/windows/desktop/ms683212(v=vs.85).aspx

But GetAdaptersAddresses() is (long unsigned int(*)()), on both 32-bit
and 64-bit Windows:
https://docs.microsoft.com/en-us/windows/desktop/api/iphlpapi/nf-iphlpapi-getadaptersaddresses

So gcc 8 issues a spurious "incompatible function pointer" warning
about the cast to GetAdaptersAddresses_fn_t.

Silence this warning by casting to a void function pointer, before
the cast to GetAdaptersAddresses_fn_t.

This issue is already fixed by 26481 in 0.3.5 and later, by removing
the lookup and cast.

Fixes bug 27465; bugfix on 0.2.3.11-alpha.

7 years agoMerge remote-tracking branch 'teor/bug27418-029' into maint-0.2.9
Nick Mathewson [Wed, 5 Sep 2018 14:14:56 +0000 (10:14 -0400)] 
Merge remote-tracking branch 'teor/bug27418-029' into maint-0.2.9

7 years agoTravis: don't call echo with a --flag as the first argument
teor [Wed, 5 Sep 2018 03:30:17 +0000 (13:30 +1000)] 
Travis: don't call echo with a --flag as the first argument

When we use echo in Travis, don't pass a --flag as the first argument.

Fixes bug 27418; bugfix on 0.3.4.7-rc.

7 years agoTravis: when showing a log fails, keep trying to show other logs
teor [Wed, 5 Sep 2018 03:12:54 +0000 (13:12 +1000)] 
Travis: when showing a log fails, keep trying to show other logs

When a Travis build fails, and showing a log fails, keep trying to
show the other logs.

Fixes bug 27453; bugfix on 0.3.4.7-rc.

7 years agoTest for descriptor does not change when hibernating
juga0 [Mon, 2 Jul 2018 09:02:32 +0000 (09:02 +0000)] 
Test for descriptor does not change when hibernating

7 years agoAdd missing router_tests to test.h
juga0 [Mon, 2 Jul 2018 08:48:36 +0000 (08:48 +0000)] 
Add missing router_tests to test.h

7 years agoCheck descriptor bandwidth changed if not hibernating
juga0 [Mon, 2 Jul 2018 08:21:43 +0000 (08:21 +0000)] 
Check descriptor bandwidth changed if not hibernating

There should be a separate check to update descriptor when start
or end hibernating.

7 years agoAdd test for check_descriptor_bandwidth_changed
juga0 [Sat, 9 Jun 2018 10:34:41 +0000 (10:34 +0000)] 
Add test for check_descriptor_bandwidth_changed

7 years agoAllow mocking rep_hist_bandwidth_assess
juga0 [Sat, 9 Jun 2018 12:54:08 +0000 (12:54 +0000)] 
Allow mocking rep_hist_bandwidth_assess

7 years agoAdd test log helpers for msgs not containing str
juga0 [Sat, 9 Jun 2018 10:34:17 +0000 (10:34 +0000)] 
Add test log helpers for msgs not containing str

7 years agoAdd changes file
juga0 [Mon, 4 Jun 2018 20:40:21 +0000 (20:40 +0000)] 
Add changes file

7 years agoMake bandwidth change factor a constant
juga0 [Sun, 3 Jun 2018 09:40:57 +0000 (09:40 +0000)] 
Make bandwidth change factor a constant

used to determine large changes in bandwidth.

7 years agoTest: avoid spurious failures in make test-network-all
teor [Fri, 24 Aug 2018 00:25:25 +0000 (10:25 +1000)] 
Test: avoid spurious failures in make test-network-all

Before running make test-network-all, delete old logs and test result
files, to avoid spurious failures.

Fixes bug 27295; bugfix on 0.2.7.3-rc.

7 years agoTest: consistently use $(TEST_NETWORK_ALL_LOG_DIR) in Makefile.am
teor [Fri, 24 Aug 2018 00:20:30 +0000 (10:20 +1000)] 
Test: consistently use $(TEST_NETWORK_ALL_LOG_DIR) in Makefile.am

Part of 27295.

7 years agoSilence a compilation warning on MSVC 2017 and clang-cl
teor [Thu, 23 Aug 2018 08:55:39 +0000 (18:55 +1000)] 
Silence a compilation warning on MSVC 2017 and clang-cl

test.c no longer uses lround(), so we don't need to declare it,
and we can use math.h for fabs().

Fixes bug 27185; bugfix on 0.2.2.2-alpha.

7 years agoTravis: Skip gcc on Linux with default settings
teor [Thu, 23 Aug 2018 08:13:53 +0000 (18:13 +1000)] 
Travis: Skip gcc on Linux with default settings

It's redundant, because all the non-default builds use gcc on Linux.

Part of 27252.

7 years agoTravis: make the exclude descriptions shorter
teor [Thu, 23 Aug 2018 08:12:36 +0000 (18:12 +1000)] 
Travis: make the exclude descriptions shorter

Part of 27252.

7 years agoTravis: Skip a duplicate hardening-off build in Tor 0.2.9
teor [Thu, 23 Aug 2018 07:06:53 +0000 (17:06 +1000)] 
Travis: Skip a duplicate hardening-off build in Tor 0.2.9

Part of 27252.

7 years agoTravis: skip gcc on OSX, because the default compiler is clang
teor [Thu, 23 Aug 2018 07:00:42 +0000 (17:00 +1000)] 
Travis: skip gcc on OSX, because the default compiler is clang

Part of #27252.

7 years agoMark cert_matches_key as not-intrusive; fix stretch compilation.
Nick Mathewson [Wed, 22 Aug 2018 13:37:26 +0000 (09:37 -0400)] 
Mark cert_matches_key as not-intrusive; fix stretch compilation.

7 years agoMerge remote-tracking branch 'teor/travis-osx-029' into maint-0.2.9
Nick Mathewson [Wed, 22 Aug 2018 00:03:19 +0000 (20:03 -0400)] 
Merge remote-tracking branch 'teor/travis-osx-029' into maint-0.2.9

7 years agoRewrite test_tortls_cert_matches_key()
Nick Mathewson [Mon, 20 Aug 2018 21:43:41 +0000 (17:43 -0400)] 
Rewrite test_tortls_cert_matches_key()

Unlike the old test, this test no will no longer mess around with
the forbidden internals of any openssl data structures.

Additionally, it verifies several other behaviors of
tor_tls_cert_matches_key() that we had wanted to verify, such as
the possibility of the certificate's key not matching.

Fixes bug 27226; bugfix on 0.2.5.1-alpha.

7 years agoUse our x509 wrapper code in tor_tls_cert_matches_key()
Nick Mathewson [Mon, 20 Aug 2018 21:42:38 +0000 (17:42 -0400)] 
Use our x509 wrapper code in tor_tls_cert_matches_key()

This allows us to mock our own tor_tls_get_peer_certificate()
function in order to test ..cert_matches_key(), which will in turn
allow us to simplify test_tortls_cert_matches_key() considerably.

Prep work for the fix for 27226.

7 years agoMerge remote-tracking branch 'github/bug27081_029' into maint-0.2.9
Nick Mathewson [Wed, 15 Aug 2018 16:20:53 +0000 (12:20 -0400)] 
Merge remote-tracking branch 'github/bug27081_029' into maint-0.2.9

7 years agoTravis: add a missing macOS asciidoc env var
teor [Fri, 10 Aug 2018 08:26:33 +0000 (18:26 +1000)] 
Travis: add a missing macOS asciidoc env var

7 years agoTravis: add a missing macOS asciidoc dependency
teor [Fri, 10 Aug 2018 06:24:31 +0000 (16:24 +1000)] 
Travis: add a missing macOS asciidoc dependency

7 years agoTravis: put distcheck first for readability
teor [Fri, 10 Aug 2018 02:33:51 +0000 (12:33 +1000)] 
Travis: put distcheck first for readability

7 years agoChanges file for Travis: enable macOS builds
teor [Fri, 10 Aug 2018 02:10:56 +0000 (12:10 +1000)] 
Changes file for Travis: enable macOS builds