]>
git.ipfire.org Git - thirdparty/tor.git/log
Nick Mathewson [Thu, 23 Aug 2018 23:36:45 +0000 (19:36 -0400)]
Merge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Thu, 23 Aug 2018 23:36:45 +0000 (19:36 -0400)]
Merge branch 'maint-0.3.2' into maint-0.3.3
Nick Mathewson [Thu, 23 Aug 2018 23:36:45 +0000 (19:36 -0400)]
Merge branch 'maint-0.2.9' into maint-0.3.2
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.
Nick Mathewson [Thu, 23 Aug 2018 18:22:30 +0000 (14:22 -0400)]
Merge remote-tracking branch 'teor/bug27236-034' into maint-0.3.4
teor [Thu, 23 Aug 2018 14:10:52 +0000 (00:10 +1000)]
Bootstrap: check the exit policy and flag on descriptors
Previously, Tor would only check the exit flag. In small networks, Tor
could bootstrap once it received a consensus with exits, without fetching
the new descriptors for those exits.
After bootstrap, Tor delays descriptor fetches, leading to failures in
fast networks like chutney.
Fixes 27236; bugfix on 0.2.6.3-alpha.
Nick Mathewson [Wed, 22 Aug 2018 13:37:31 +0000 (09:37 -0400)]
Merge branch 'maint-0.3.2' into maint-0.3.3
Nick Mathewson [Wed, 22 Aug 2018 13:37:31 +0000 (09:37 -0400)]
Merge branch 'maint-0.2.9' into maint-0.3.2
Nick Mathewson [Wed, 22 Aug 2018 13:37:31 +0000 (09:37 -0400)]
Merge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Wed, 22 Aug 2018 13:37:26 +0000 (09:37 -0400)]
Mark cert_matches_key as not-intrusive; fix stretch compilation.
Nick Mathewson [Wed, 22 Aug 2018 00:04:17 +0000 (20:04 -0400)]
Merge branch 'maint-0.3.2' into maint-0.3.3
Nick Mathewson [Wed, 22 Aug 2018 00:04:17 +0000 (20:04 -0400)]
Merge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Wed, 22 Aug 2018 00:04:03 +0000 (20:04 -0400)]
Merge remote-tracking branch 'teor/travis-osx-034' into maint-0.3.4
Nick Mathewson [Wed, 22 Aug 2018 00:03:56 +0000 (20:03 -0400)]
Merge remote-tracking branch 'teor/travis-osx-033' into maint-0.3.3
Nick Mathewson [Wed, 22 Aug 2018 00:03:46 +0000 (20:03 -0400)]
Merge branch 'maint-0.2.9' into maint-0.3.2
Nick Mathewson [Wed, 22 Aug 2018 00:03:41 +0000 (20:03 -0400)]
Merge remote-tracking branch 'teor/travis-osx-032' into maint-0.3.2
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
Nick Mathewson [Tue, 21 Aug 2018 23:20:31 +0000 (19:20 -0400)]
Merge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Tue, 21 Aug 2018 23:16:40 +0000 (19:16 -0400)]
Merge branch 'maint-0.3.2' into maint-0.3.3
Nick Mathewson [Tue, 21 Aug 2018 23:16:40 +0000 (19:16 -0400)]
Merge branch 'maint-0.2.9' into maint-0.3.2
Nick Mathewson [Tue, 21 Aug 2018 14:01:41 +0000 (10:01 -0400)]
Merge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Tue, 21 Aug 2018 14:01:38 +0000 (10:01 -0400)]
Add changes file for 26873. I missed this when merging earlier.
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.
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.
Nick Mathewson [Fri, 17 Aug 2018 13:38:26 +0000 (09:38 -0400)]
Merge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Fri, 17 Aug 2018 13:38:08 +0000 (09:38 -0400)]
Merge remote-tracking branch 'onionk/rust-protospace' into maint-0.3.3
cypherpunks [Fri, 17 Aug 2018 03:22:47 +0000 (03:22 +0000)]
rust/protover: don't accept whitespace in ProtoSet::from_str()
It's impossible for spaces to get here, since spaces are used as
separators between individual protocol entries higher up.
And it shouldn't ignore whitespace that isn't a literal space
character, because that would differ from the C implementation.
These were added in
9925d2e68709aa7346f4c5bc98ea1349df6741f3 .
Fixes #27177. Bugfix on 0.3.3.5-rc.
Nick Mathewson [Fri, 17 Aug 2018 13:29:46 +0000 (09:29 -0400)]
Merge branch 'maint-0.3.3' into maint-0.3.4
cypherpunks [Tue, 7 Aug 2018 00:45:33 +0000 (00:45 +0000)]
rust/protover: fix hyphen parsing bug in ProtoSet::from_str()
It was parsing "1-2-3" as if it were 1-2, ignoring the 2nd hyphen
and everything after.
Introduced in
d1820c1516a31a149fc51a9e5126bf899e4c4e08 .
Fixes #27164; bugfix on 0.3.3.1-alpha.
Nick Mathewson [Thu, 16 Aug 2018 12:37:11 +0000 (08:37 -0400)]
Merge branch 'maint-0.3.2' into maint-0.3.3
Nick Mathewson [Thu, 16 Aug 2018 12:37:11 +0000 (08:37 -0400)]
Merge branch 'maint-0.3.3' into maint-0.3.4
George Kadianakis [Sat, 28 Jul 2018 15:31:46 +0000 (17:31 +0200)]
Keep descriptor rotation time after HUP occurs.
Nick Mathewson [Thu, 16 Aug 2018 12:35:31 +0000 (08:35 -0400)]
Merge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Thu, 16 Aug 2018 12:35:27 +0000 (08:35 -0400)]
Merge branch 'maint-0.3.2' into maint-0.3.3
teor [Thu, 16 Aug 2018 08:58:47 +0000 (18:58 +1000)]
Rust: Say that we support rust stable in GettingStartedRust.md
In 24765, we said that we supported rust stable in CodingStandardsRust.md.
But we left GettingStartedRust.md saying that we support rust nightly.
Closes 27160.
Nick Mathewson [Wed, 15 Aug 2018 16:20:57 +0000 (12:20 -0400)]
Merge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Wed, 15 Aug 2018 16:20:57 +0000 (12:20 -0400)]
Merge branch 'maint-0.3.2' into maint-0.3.3
Nick Mathewson [Wed, 15 Aug 2018 16:20:57 +0000 (12:20 -0400)]
Merge branch 'maint-0.2.9' into maint-0.3.2
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
Nick Mathewson [Wed, 15 Aug 2018 06:16:23 +0000 (02:16 -0400)]
Merge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Wed, 15 Aug 2018 06:16:19 +0000 (02:16 -0400)]
Merge remote-tracking branch 'public/bug26779_033' into maint-0.3.3
teor [Fri, 10 Aug 2018 09:06:45 +0000 (19:06 +1000)]
Merge branch 'travis-osx-033' into travis-osx-034
teor [Fri, 10 Aug 2018 09:06:32 +0000 (19:06 +1000)]
Merge branch 'travis-osx-032' into travis-osx-033
teor [Fri, 10 Aug 2018 09:05:49 +0000 (19:05 +1000)]
Merge branch 'travis-osx-029' into travis-osx-032
Merge asciidoc from 029 with rust from 032.
teor [Fri, 10 Aug 2018 08:26:33 +0000 (18:26 +1000)]
Travis: add a missing macOS asciidoc env var
teor [Fri, 10 Aug 2018 06:41:27 +0000 (16:41 +1000)]
Merge branch 'travis-osx-033' into travis-osx-034
Take the asciidoc changes from 033, and the module changes from
034.
teor [Fri, 10 Aug 2018 06:38:13 +0000 (16:38 +1000)]
Merge branch 'travis-osx-032' into travis-osx-033
Preserve 033 changes since 032.
teor [Fri, 10 Aug 2018 03:11:27 +0000 (13:11 +1000)]
Rust: Use --all-features in test_rust.sh for 0.3.3 and 0.3.4
Re-applies 0.3.3 changes after 24629.
teor [Fri, 10 Aug 2018 01:59:42 +0000 (11:59 +1000)]
Travis: Check Rust with distcheck in 0.3.3 and later
Backports an 0.3.4 change that also works in 0.3.3.
Part of 24629.
teor [Fri, 10 Aug 2018 01:55:50 +0000 (11:55 +1000)]
Travis: Use TOR_RUST_DEPENDENCIES for 0.3.3 and later
TOR_RUST_DEPENDENCIES used to be spelt RUST_DEPENDENCIES in 0.3.2.
Re-applies 0.3.3 changes after 24629.
teor [Fri, 10 Aug 2018 06:31:35 +0000 (16:31 +1000)]
Merge branch 'travis-osx-029' into travis-osx-032
Simple merge to resolve order conflicts.
teor [Fri, 10 Aug 2018 06:30:21 +0000 (16:30 +1000)]
Travis: Improve Rust comments
teor [Fri, 10 Aug 2018 06:24:31 +0000 (16:24 +1000)]
Travis: add a missing macOS asciidoc dependency
teor [Fri, 10 Aug 2018 03:20:48 +0000 (13:20 +1000)]
Travis: Check disable module dirauth with and without rust
Part of 24629, also fixes 27088.
teor [Fri, 10 Aug 2018 03:15:16 +0000 (13:15 +1000)]
Merge branch 'travis-osx-033' into travis-osx-034
Replace 034 .travis.yml with 033 .travis.yml.
Subsequent commits will restore 034 functionality.
Replace 034 src/test/test_rust.sh with 033
src/test/test_rust.sh, which was backported from
master.
teor [Fri, 10 Aug 2018 03:11:27 +0000 (13:11 +1000)]
Rust: Use --all-features in test_rust.sh for 0.3.3 and 0.3.4
Re-applies 0.3.3 changes after 24629.
teor [Fri, 10 Aug 2018 02:10:56 +0000 (12:10 +1000)]
Changes file for Travis: enable macOS builds
teor [Fri, 10 Aug 2018 01:59:42 +0000 (11:59 +1000)]
Travis: Check Rust with distcheck in 0.3.3 and later
Backports an 0.3.4 change that also works in 0.3.3.
Part of 24629.
teor [Fri, 10 Aug 2018 01:55:50 +0000 (11:55 +1000)]
Travis: Use TOR_RUST_DEPENDENCIES for 0.3.3 and later
TOR_RUST_DEPENDENCIES used to be spelt RUST_DEPENDENCIES in 0.3.2.
Re-applies 0.3.3 changes after 24629.
teor [Fri, 10 Aug 2018 02:33:51 +0000 (12:33 +1000)]
Travis: put distcheck first for readability
teor [Fri, 10 Aug 2018 02:33:51 +0000 (12:33 +1000)]
Travis: put distcheck first for readability
teor [Fri, 10 Aug 2018 02:10:56 +0000 (12:10 +1000)]
Changes file for Travis: enable macOS builds
teor [Fri, 10 Aug 2018 01:54:26 +0000 (11:54 +1000)]
Rust: use a consistent working directory in builds and tests
cd to ${abs_top_builddir}/src/rust before running cargo in
src/test/test_rust.sh.
Fixes bug 26497; bugfix on 0.3.3.2-alpha.
teor [Fri, 10 Aug 2018 01:47:36 +0000 (11:47 +1000)]
Stop setting $CARGO_HOME in src/rust/tor_rust/include.am
cargo will use the user's $CARGO_HOME, or $HOME/.cargo by default.
Fixes bug 26497; bugfix on 0.3.1.5-alpha.
teor [Fri, 10 Aug 2018 01:43:17 +0000 (11:43 +1000)]
Merge branch 'travis-osx-032' into travis-osx-033
Replace 033 .travis.yml with 032 .travis.yml.
Subsequent commits will restore 033 functionality.
src/rust/tor_util/include.am is deleted in 033.
Subsequent commits will apply 032 changes to
src/rust/tor_rust/include.am.
Replace 033 src/test/test_rust.sh with 032
src/test/test_rust.sh, which was backported from
master.
teor [Fri, 10 Aug 2018 01:26:53 +0000 (11:26 +1000)]
Changes file for Rust: backport src/test/test_rust.sh from master
teor [Thu, 9 Aug 2018 05:41:57 +0000 (15:41 +1000)]
Travis: Use cargo cache
Closes ticket 26952.
teor [Fri, 10 Aug 2018 01:22:36 +0000 (11:22 +1000)]
Fix $abs_top_srcdir in test_rust.sh
Consistently use ../../.. as a fallback for $abs_top_srcdir in
test_rust.sh.
Fixes bug 27093; bugfix on 0.3.4.3-alpha.
teor [Fri, 10 Aug 2018 01:00:46 +0000 (11:00 +1000)]
Stop setting $CARGO_HOME
cargo will use the user's $CARGO_HOME, or $HOME/.cargo by default.
Fixes bug 26497; bugfix on 0.3.1.5-alpha.
teor [Fri, 10 Aug 2018 01:09:18 +0000 (11:09 +1000)]
Rust: backport src/test/test_rust.sh from master
Preparation for 26497.
teor [Thu, 9 Aug 2018 12:53:48 +0000 (22:53 +1000)]
Travis: fix a typo
teor [Thu, 9 Aug 2018 12:53:48 +0000 (22:53 +1000)]
Travis: fix a typo
teor [Thu, 9 Aug 2018 12:52:51 +0000 (22:52 +1000)]
Travis: add rust cargo offline mode
Backports parts of the 0.3.3 travis config.
Part of 24629.
teor [Thu, 9 Aug 2018 12:32:20 +0000 (22:32 +1000)]
Travis: add rust cargo online mode
Forward-ports parts of the 0.3.2 travis config on top of the 0.2.9
merge.
Also:
* build rust on clang and gcc, Linux and macOS
* build combinations of non-default options on gcc Linux
* exclude broken builds
* log the rustup version
Part of 24629.
Nick Mathewson [Thu, 9 Aug 2018 12:47:25 +0000 (08:47 -0400)]
Merge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Thu, 9 Aug 2018 12:47:25 +0000 (08:47 -0400)]
Merge branch 'maint-0.3.2' into maint-0.3.3
Nick Mathewson [Thu, 9 Aug 2018 12:47:24 +0000 (08:47 -0400)]
Merge branch 'maint-0.2.9' into maint-0.3.2
teor [Thu, 9 Aug 2018 09:33:28 +0000 (19:33 +1000)]
Travis: add lzma and zstd, where available
Forward-ports parts of the 0.3.2 travis config on top of the 0.2.9
merge.
Part of 24629, also fixes 27090.
teor [Thu, 9 Aug 2018 12:20:29 +0000 (22:20 +1000)]
Merge branch 'travis-osx-029' into travis-osx-032
Replace 032 .travis.yml with 029 .travis.yml.
Subsequent commits will restore 032 functionality.
teor [Thu, 9 Aug 2018 12:16:28 +0000 (22:16 +1000)]
Travis: list installed package versions before building
Part of 24629.
teor [Thu, 9 Aug 2018 08:29:29 +0000 (18:29 +1000)]
Travis: run an asciidoc build
Implements 27087.
teor [Thu, 9 Aug 2018 05:40:27 +0000 (15:40 +1000)]
Travis: Use ccache
Part of ticket 26952.
teor [Thu, 9 Aug 2018 07:44:11 +0000 (17:44 +1000)]
Travis: make macOS builds work for Tor 0.2.9
Tor 0.2.9 needs extra help to find OpenSSL on macOS.
Part of 24629.
teor [Thu, 9 Aug 2018 07:06:13 +0000 (17:06 +1000)]
Travis: create configure flags once, then echo the flags
Creating the configure flags once avoids inconsistent flags
between configure and distcheck configure.
Echoing the flags helps developers work out what configure is
doing.
(Backported to 0.2.9 and later as a precaution.)
Fixes 27088 on 0.3.4.1-alpha, adds logging in previous releases.
teor [Thu, 9 Aug 2018 08:03:18 +0000 (18:03 +1000)]
Travis: enable macOS builds
Also:
* explain why we don't install zlib
Part of 24629.
teor [Thu, 9 Aug 2018 06:42:05 +0000 (16:42 +1000)]
Travis: Rewrite .travis.yml
Build on all compilers:
* default options + hardening
Build on gcc:
* coverage (+ no hardening)
* distcheck
* no hardening
Add some extra logging:
* tail config.log on failure
(config.log is too long for travis to render)
Put the config in a more logical order
* Sort config items in chronological order
* Put related items together
Part of 24629.
Karsten Loesing [Thu, 9 Aug 2018 07:44:38 +0000 (09:44 +0200)]
Update geoip and geoip6 to the August 7 2018 database.
Taylor Yu [Thu, 28 Jun 2018 19:43:31 +0000 (14:43 -0500)]
Add more optional packages to Travis
Apparently we weren't building with either libcap or libseccomp on
Travis. Install libcap-dev and libseccomp-dev in .travis.yml. Closes
ticket 26560.
Nick Mathewson [Wed, 8 Aug 2018 22:06:15 +0000 (18:06 -0400)]
Merge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Wed, 8 Aug 2018 22:06:11 +0000 (18:06 -0400)]
Merge branch 'bug26948_033' into maint-0.3.3
Nick Mathewson [Wed, 8 Aug 2018 19:41:40 +0000 (15:41 -0400)]
Detect broken stdatomic.h, and pretend that it isn't there at all
I hope that the debian clang maintainers will look at debian bug
903709 soon. But until they do, this should keep our users and our
CI happy on sid with clang.
Closes ticket 26779.
Nick Mathewson [Wed, 8 Aug 2018 13:56:51 +0000 (09:56 -0400)]
Don't search for -lpthread on Windows
If we're building for Windows, we want to use windows threads no
matter what, and we don't want to link a pthread library even if it
is present. Fixes bug 27081; bugfix on
1790dc67607799a in 0.1.0.1-rc.
Nick Mathewson [Wed, 8 Aug 2018 13:26:23 +0000 (09:26 -0400)]
Merge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Wed, 8 Aug 2018 13:26:23 +0000 (09:26 -0400)]
Merge branch 'maint-0.3.2' into maint-0.3.3
Nick Mathewson [Wed, 8 Aug 2018 13:26:22 +0000 (09:26 -0400)]
Merge branch 'maint-0.2.9' into maint-0.3.2
Nick Mathewson [Wed, 8 Aug 2018 13:26:21 +0000 (09:26 -0400)]
Changes file for 25440
Daniel Pinto [Tue, 17 Apr 2018 00:31:49 +0000 (01:31 +0100)]
Fix crash when calling openat with sandbox enabled #25440
The seccomp rule for the openat syscall checks for the AT_FDCWD
constant. Because this constant is usually a negative value, a
cast to unsigned int is necessary to make sure it does not get
converted to uint64_t used by seccomp.
More info on:
https://github.com/seccomp/libseccomp/issues/69#issuecomment-
273805980
Nick Mathewson [Wed, 8 Aug 2018 00:15:34 +0000 (20:15 -0400)]
Update version to 0.3.4.6-rc-dev
Nick Mathewson [Tue, 7 Aug 2018 12:05:51 +0000 (08:05 -0400)]
Merge branch 'bug27003_034_v2' into maint-0.3.4
Nick Mathewson [Mon, 6 Aug 2018 14:39:14 +0000 (10:39 -0400)]
Rename SEC identifier to BW_SEC in test_bwmgt.h
Apparently Solaris 10 defines SEC somewhere in its headers, causing
a compilation problem.
Fixes bug 26994; bugfix on 0.3.4.1-alpha.