]>
git.ipfire.org Git - thirdparty/tor.git/log
teor (Tim Wilson-Brown) [Thu, 26 Nov 2015 10:25:31 +0000 (21:25 +1100)]
Add unit tests that check for common RNG failure modes
Check that crypto_rand doesn't return all zeroes, identical values,
or incrementing values (OpenSSL's rand_predictable feature).
Nick Mathewson [Wed, 25 Nov 2015 18:25:21 +0000 (13:25 -0500)]
Add a changes file for bug 17686
Nick Mathewson [Wed, 25 Nov 2015 17:28:20 +0000 (12:28 -0500)]
Fix documentation for crypto_rand*
Nick Mathewson [Wed, 25 Nov 2015 15:42:00 +0000 (10:42 -0500)]
Now that crypto_rand() cannot fail, it should return void.
Nick Mathewson [Wed, 25 Nov 2015 15:36:34 +0000 (10:36 -0500)]
Add crypto-initializer functions to those whose return values must be checked
Nick Mathewson [Wed, 25 Nov 2015 15:30:58 +0000 (10:30 -0500)]
Make crypto_seed_rng() and crypto_rand() less scary.
These functions must really never fail; so have crypto_rand() assert
that it's working okay, and have crypto_seed_rng() demand that
callers check its return value. Also have crypto_seed_rng() check
RAND_status() before returning.
Nick Mathewson [Wed, 25 Nov 2015 14:27:52 +0000 (09:27 -0500)]
Include netinet/in.h (if detected) in check for net/pfvar.h
Patch from rubiate; fixes bug 17551.
David Goulet [Mon, 23 Nov 2015 14:02:54 +0000 (09:02 -0500)]
Fix: use the right list in find_expiring_intro_point()
The wrong list was used when looking up expired intro points in a rend
service object causing what we think could be reachability issues and
triggering a BUG log.
Fixes #16702
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
Nick Mathewson [Fri, 20 Nov 2015 15:27:35 +0000 (10:27 -0500)]
bump version to 0.2.7-dev
Nick Mathewson [Fri, 13 Nov 2015 13:41:30 +0000 (08:41 -0500)]
Bump to 0.2.7.5
Nick Mathewson [Wed, 21 Oct 2015 16:22:05 +0000 (12:22 -0400)]
Note that you can use a unix domain socket for hsport
Nick Mathewson [Wed, 21 Oct 2015 16:02:42 +0000 (12:02 -0400)]
Merge remote-tracking branch 'public/bug17404_024' into maint-0.2.7
Nick Mathewson [Wed, 21 Oct 2015 16:01:05 +0000 (12:01 -0400)]
Fix the return value
Nick Mathewson [Wed, 21 Oct 2015 15:51:03 +0000 (11:51 -0400)]
Merge remote-tracking branch 'public/bug17404_024' into maint-0.2.7
Nick Mathewson [Wed, 21 Oct 2015 15:44:43 +0000 (11:44 -0400)]
Check for len < 4 in dn_indicates_v3_cert
Without this check, we potentially look up to 3 characters before
the start of a malloc'd segment, which could provoke a crash under
certain (weird afaik) circumstances.
Fixes 17404; bugfix on 0.2.6.3-alpha.
Nick Mathewson [Wed, 21 Oct 2015 15:16:28 +0000 (11:16 -0400)]
Fix a memory leak in reading an expired ed signing key.
Closes 17403.
Nick Mathewson [Wed, 21 Oct 2015 14:56:27 +0000 (10:56 -0400)]
Whoops; infinite recursion
Nick Mathewson [Wed, 21 Oct 2015 14:52:57 +0000 (10:52 -0400)]
Fix memory leak in rend_cache_failure_entry_free()
Bug 17402.
Nick Mathewson [Wed, 21 Oct 2015 14:27:19 +0000 (10:27 -0400)]
Fix an (unreachable) memory leak in rendcache.c
The 0.2.8 unit tests provoke this leak, though I don't think it can
happen IRL.
Nick Mathewson [Wed, 21 Oct 2015 13:59:19 +0000 (09:59 -0400)]
Fix a use-after-free in validate_intro_point_failure. Bug 17401. Found w valgrind
Nick Mathewson [Wed, 21 Oct 2015 12:17:07 +0000 (08:17 -0400)]
Fix a memory leak; bug 17398.
Nick Mathewson [Mon, 19 Oct 2015 15:19:51 +0000 (11:19 -0400)]
Bump version to 0.2.7.4-rc
Nick Mathewson [Mon, 19 Oct 2015 15:12:43 +0000 (11:12 -0400)]
tweak some changes files
Nick Mathewson [Thu, 15 Oct 2015 17:56:41 +0000 (13:56 -0400)]
Merge remote-tracking branch 'origin/maint-0.2.6' into maint-0.2.7
David Goulet [Thu, 15 Oct 2015 17:38:12 +0000 (13:38 -0400)]
Add hidserv-stats filname to our sandbox filter
Fixes #17354
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
Nick Mathewson [Thu, 15 Oct 2015 14:35:45 +0000 (10:35 -0400)]
Fix compilation of sandbox.[ch] under musl-libc
Patch from jamestk; fix on 0.2.5.1-alpha. Fixes 17347.
Nick Mathewson [Fri, 9 Oct 2015 14:14:59 +0000 (10:14 -0400)]
Merge remote-tracking branch 'origin/maint-0.2.6' into maint-0.2.7
Nick Mathewson [Fri, 9 Oct 2015 14:14:46 +0000 (10:14 -0400)]
Merge remote-tracking branch 'origin/maint-0.2.5' into maint-0.2.6
Nick Mathewson [Fri, 9 Oct 2015 14:12:59 +0000 (10:12 -0400)]
Merge remote-tracking branch 'origin/maint-0.2.4' into maint-0.2.5
Karsten Loesing [Fri, 9 Oct 2015 13:27:55 +0000 (15:27 +0200)]
Update geoip and geoip6 to the October 9 2015 database.
teor (Tim Wilson-Brown) [Tue, 6 Oct 2015 04:32:44 +0000 (15:32 +1100)]
Make get_ifaddrs tests more tolerant of unusual network configs
* Don't assume that every test box has an IPv4 address
* Don't assume that every test box has a non-local address
Resolves issue #17255 released in unit tests in 0.2.7.3-rc.
Nick Mathewson [Tue, 6 Oct 2015 13:04:37 +0000 (09:04 -0400)]
Work around openssl declaring x509_get_not{Before,After} as functions
Now that x509_get_not{Before,After} are functions in OpenSSL 1.1
(not yet releasesd), we need to define a variant that takes a const
pointer to X509 and returns a const pointer to ASN1_time.
Part of 17237. I'm not convinced this is an openssl bug or a tor
bug. It might be just one of those things.
Nick Mathewson [Tue, 6 Oct 2015 12:58:03 +0000 (08:58 -0400)]
Fix 17251: avoid integer overflow in test_crypto_slow
Nick Mathewson [Tue, 29 Sep 2015 11:50:52 +0000 (13:50 +0200)]
fix compilation; mark test fns static
Nick Mathewson [Tue, 29 Sep 2015 10:49:23 +0000 (12:49 +0200)]
Fix past changelog spelling again!
Nick Mathewson [Tue, 29 Sep 2015 08:21:52 +0000 (10:21 +0200)]
go back in time to fix a changelog entry. Fix for 17165
Nick Mathewson [Tue, 29 Sep 2015 08:20:31 +0000 (10:20 +0200)]
Socks->SOCKS in torrcs. Fixes 15609
teor (Tim Wilson-Brown) [Tue, 29 Sep 2015 05:04:49 +0000 (07:04 +0200)]
Add checks and unit tests for get_interface_address* failure
Ensure that either a valid address is returned in address pointers,
or that the address data is zeroed on error.
Ensure that free_interface_address6_list handles NULL lists.
Add unit tests for get_interface_address* failure cases.
Fixes bug #17173.
Patch by fk/teor, not in any released version of tor.
Fabian Keil [Mon, 28 Sep 2015 14:57:07 +0000 (16:57 +0200)]
get_interface_address6_list(): Bring back a return code check
... that was removed by
31eb486c46 which first appeared in
0.2.7.3-rc.
If tor is running in a ElectroBSD (or FreeBSD) jail it can't
get any IP addresses that aren't assigned to the jail by
looking at the interfaces and (by design) the
get_interface_address6_via_udp_socket_hack() fallback doesn't
work either.
The missing return code check resulted in tor_addr_is_internal()
complaining about a "non-IP address of type 49", due to reading
uninitialised memory.
Fixes #17173.
Nick Mathewson [Tue, 29 Sep 2015 08:10:52 +0000 (10:10 +0200)]
Changes file for bug17154
Marcin Cieślak [Fri, 25 Sep 2015 14:16:40 +0000 (14:16 +0000)]
No spaces around = in variable assignment
BSD make takes spaces around = literally
and produces a "TESTING_TOR_BINARY "
variable with a trailing space, which leads
to test_keygen.sh failure.
Fixes 17154
Nick Mathewson [Tue, 29 Sep 2015 08:08:02 +0000 (10:08 +0200)]
Add changes file for bug17151
Marcin Cieślak [Fri, 25 Sep 2015 00:59:59 +0000 (00:59 +0000)]
FreeBSD needs -lexecinfo to get backtrace()
Marcin Cieślak [Thu, 24 Sep 2015 22:32:51 +0000 (22:32 +0000)]
Skip tests if backtrace support not compiled-in
FreeBSD needs -lexecinfo to fully support
backtrace reporting.
Nick Mathewson [Fri, 25 Sep 2015 13:26:35 +0000 (09:26 -0400)]
Bump to 0.2.7.3-rc-dev
Nick Mathewson [Fri, 25 Sep 2015 13:06:41 +0000 (09:06 -0400)]
A day has passed.
Nick Mathewson [Thu, 24 Sep 2015 23:38:50 +0000 (19:38 -0400)]
Add test-network.sh to EXTRA_DIST
Nick Mathewson [Thu, 24 Sep 2015 21:45:29 +0000 (17:45 -0400)]
Make our digest-mismatch warnings a touch better
Nick Mathewson [Thu, 24 Sep 2015 21:19:21 +0000 (17:19 -0400)]
Merge branch 'bug17149'
Nick Mathewson [Thu, 24 Sep 2015 21:06:49 +0000 (17:06 -0400)]
Include some content when exporting abs_top_srcdir and builddir
FreeBSD make demands this.
Nick Mathewson [Thu, 24 Sep 2015 20:51:25 +0000 (16:51 -0400)]
Put braces around reject-lines for IPv6 addrs
Fixes bug 17149; bug not in any released Tor.
Nick Mathewson [Thu, 24 Sep 2015 19:31:50 +0000 (15:31 -0400)]
fold 17148 into changelog
Nick Mathewson [Thu, 24 Sep 2015 19:25:53 +0000 (15:25 -0400)]
Add more quotes in the test scripts
Nick Mathewson [Thu, 24 Sep 2015 19:07:39 +0000 (15:07 -0400)]
Stop trying to generate test scripts via autoconf substitution.
Use environment variables instead. This repairs 'make distcheck',
which was running into trouble when it tried to chmod the generated
scripts.
Fixes 17148.
Nick Mathewson [Thu, 24 Sep 2015 18:12:45 +0000 (14:12 -0400)]
fix tor-fw-helper url
Nick Mathewson [Thu, 24 Sep 2015 18:08:30 +0000 (14:08 -0400)]
Changelog: more clarity and fixing
Nick Mathewson [Thu, 24 Sep 2015 16:18:24 +0000 (12:18 -0400)]
Increment version.
Nick Mathewson [Thu, 24 Sep 2015 16:15:20 +0000 (12:15 -0400)]
Now I have a number here. (Had to use OSX becaue of #17146)
Nick Mathewson [Thu, 24 Sep 2015 15:56:00 +0000 (11:56 -0400)]
fold 17135 into changelog
Nick Mathewson [Thu, 24 Sep 2015 15:29:14 +0000 (11:29 -0400)]
Merge branch 'underpinning_squashed'
Nick Mathewson [Wed, 23 Sep 2015 15:30:17 +0000 (11:30 -0400)]
changes file and manpage entry for AuthDirPinKeys
Nick Mathewson [Thu, 24 Sep 2015 15:00:30 +0000 (11:00 -0400)]
Fold new entries into changelog
Nick Mathewson [Thu, 24 Sep 2015 14:57:22 +0000 (10:57 -0400)]
Reformat the changelog
Nick Mathewson [Thu, 24 Sep 2015 14:57:07 +0000 (10:57 -0400)]
more edits to the changelog
Nick Mathewson [Thu, 24 Sep 2015 14:06:36 +0000 (10:06 -0400)]
Merge remote-tracking branch 'origin/maint-0.2.6'
Nick Mathewson [Thu, 24 Sep 2015 14:06:15 +0000 (10:06 -0400)]
Merge remote-tracking branch 'origin/maint-0.2.5' into maint-0.2.6
Nick Mathewson [Thu, 24 Sep 2015 14:06:00 +0000 (10:06 -0400)]
Merge remote-tracking branch 'origin/maint-0.2.4' into maint-0.2.5
Karsten Loesing [Thu, 24 Sep 2015 13:08:15 +0000 (15:08 +0200)]
Update geoip and geoip6 to the September 3 2015 database.
Nick Mathewson [Wed, 23 Sep 2015 23:48:41 +0000 (19:48 -0400)]
various changelog entry rewrites/revisions
Nick Mathewson [Wed, 23 Sep 2015 15:22:26 +0000 (11:22 -0400)]
New AuthDirPinKeys option to enable/disable keypinning enforcement
Implements ticket #17135. We're going to need this one to avoid
chaos as everybody figures out how
ed25519 keys work.
Nick Mathewson [Wed, 23 Sep 2015 15:07:17 +0000 (11:07 -0400)]
Extract the add-or-replace-keypin logic into a new function
We're about to need to call it in another place too.
Nick Mathewson [Wed, 23 Sep 2015 14:44:38 +0000 (10:44 -0400)]
Allow conflicts to occur in keypinning journal
When we find a conflict in the keypinning journal, treat the new
entry as superseding all old entries that overlap either of its
keys.
Also add a (not-yet-used) configuration option to disable keypinning
enforcement.
Nick Mathewson [Wed, 23 Sep 2015 14:44:22 +0000 (10:44 -0400)]
some changelog work
Nick Mathewson [Tue, 22 Sep 2015 21:06:39 +0000 (17:06 -0400)]
add a README to src/config
Nick Mathewson [Tue, 22 Sep 2015 15:37:50 +0000 (11:37 -0400)]
add more clang checkers; find no new bugs.
Nick Mathewson [Tue, 22 Sep 2015 13:58:16 +0000 (09:58 -0400)]
scan-build is more mature now; no need to hardcode the one in my /opt/clang-3.4
Nick Mathewson [Tue, 22 Sep 2015 13:55:05 +0000 (09:55 -0400)]
Fix a memory leak in router_parse_addr_policy_item_from_string. CID
1324770
Nick Mathewson [Tue, 22 Sep 2015 13:26:30 +0000 (09:26 -0400)]
Merge branch 'feature16769_squashed'
Nick Mathewson [Tue, 22 Sep 2015 13:22:09 +0000 (09:22 -0400)]
Remove --master-key form the changes file
Nick Mathewson [Mon, 21 Sep 2015 17:07:38 +0000 (13:07 -0400)]
Disable --master-key as not-yet-working for 0.2.7
Nick Mathewson [Tue, 1 Sep 2015 14:58:53 +0000 (10:58 -0400)]
Add a --master-key option
This lets the user override the default location for the master key
when used with --keygen
Part of 16769.
Nick Mathewson [Tue, 1 Sep 2015 14:41:02 +0000 (10:41 -0400)]
Add a new --newpass option to add or remove secret key passphrases.
Nick Mathewson [Tue, 22 Sep 2015 13:19:28 +0000 (09:19 -0400)]
Merge branch 'feature16944_v2'
Nick Mathewson [Tue, 22 Sep 2015 13:14:07 +0000 (09:14 -0400)]
Sort changelog entries a little more
Nick Mathewson [Tue, 22 Sep 2015 12:36:39 +0000 (08:36 -0400)]
Merge branch 'bug17109_v2_squashed'
Sebastian Hahn [Sat, 19 Sep 2015 14:36:55 +0000 (16:36 +0200)]
Check that openssl has ECC support during configure
This allows builds on machines with a crippled openssl to fail early
during configure. Bugfix on 0.2.7.1-alpha, which introduced the
requirement for ECC support. Fixes bug 17109.
teor (Tim Wilson-Brown) [Tue, 22 Sep 2015 01:50:04 +0000 (11:50 +1000)]
Update private ExitPolicy in man page and torrcs for 10727, formatting
Update the definition of the private exit policy in the man page
and torrcs. It didn't get merged correctly into the man page, and
it was incomplete in the torrcs. (Unfortunately, we only reject the
primary configured IPv4 and IPv6 addresses, not all configured IPv4
and IPv6 addresses.)
Also fixup msn page formatting errors from changes in tickets 16069
and 17027, mainly unescaped *s.
teor (Tim Wilson-Brown) [Tue, 22 Sep 2015 01:44:13 +0000 (11:44 +1000)]
Add IPv6 syntax to ExitPolicy intro paragraph in man page
teor (Tim Wilson-Brown) [Tue, 22 Sep 2015 01:41:16 +0000 (11:41 +1000)]
Update docs with advice for separate IPv4 and IPv6 exit policies
Advise users how to configure separate IPv4 and IPv6 exit
policies in the manpage and sample torrcs.
Related to fixes in ticket #16069 and #17027. Patch by "teor".
Patch on
2eb7eafc9d78 and
a96c0affcb4c (25 Oct 2012),
released in 0.2.4.7-alpha.
Nick Mathewson [Mon, 21 Sep 2015 17:58:20 +0000 (13:58 -0400)]
fold new entries into changelog for 0.2.7.3
Nick Mathewson [Wed, 16 Sep 2015 12:46:13 +0000 (08:46 -0400)]
Merge remote-tracking branch 'public/bug17047'
Nick Mathewson [Wed, 16 Sep 2015 12:20:15 +0000 (08:20 -0400)]
Merge remote-tracking branch 'teor/bug16069-bug17027'
Sebastian Hahn [Wed, 16 Sep 2015 02:27:32 +0000 (04:27 +0200)]
Don't enable SSE2 on X86-64.
This removes a comment presumably introduced for debugging that was left
in accidentally. Bug not in any released version of Tor. Fixes bug
17092.
teor (Tim Wilson-Brown) [Tue, 15 Sep 2015 23:09:54 +0000 (09:09 +1000)]
Merge branch 'bug17027-reject-private-all-interfaces-v2' into bug16069-bug17027
src/test/test_policy.c:
Merged calls to policies_parse_exit_policy by adding additional arguments.
fixup to remaining instance of ~EXIT_POLICY_IPV6_ENABLED.
Compacting logic test now produces previous list length of 4, corrected this.
src/config/torrc.sample.in:
src/config/torrc.minimal.in-staging:
Merged torrc modification dates in favour of latest.
teor (Tim Wilson-Brown) [Tue, 15 Sep 2015 17:59:30 +0000 (03:59 +1000)]
fixup Clarify ambiguous log message in router_add_exit_policy
teor (Tim Wilson-Brown) [Tue, 15 Sep 2015 17:58:06 +0000 (03:58 +1000)]
fixup Only set TAPMP_STAR_IPV6_ONLY if TAPMP_EXTENDED_STAR is set
Also fix a comment.
teor (Tim Wilson-Brown) [Tue, 15 Sep 2015 08:57:00 +0000 (18:57 +1000)]
Log an info-level message for each IP blocked by ExitPolicyRejectPrivate
Log an info-level message containing the reject line added to the
exit policy for each local IP address blocked by ExitPolicyRejectPrivate:
- Published IPv4 and IPv6 addresses
- Publicly routable IPv4 and IPv6 interface addresses
teor (Tim Wilson-Brown) [Tue, 15 Sep 2015 08:34:18 +0000 (18:34 +1000)]
ExitPolicyRejectPrivate rejects local IPv6 address and interface addresses
ExitPolicyRejectPrivate now rejects more local addresses by default:
* the relay's published IPv6 address (if any), and
* any publicly routable IPv4 or IPv6 addresses on any local interfaces.
This resolves a security issue for IPv6 Exits and multihomed Exits that
trust connections originating from localhost.
Resolves ticket 17027. Patch by "teor".
Patch on
42b8fb5a1523 (11 Nov 2007), released in 0.2.0.11-alpha.
teor (Tim Wilson-Brown) [Tue, 15 Sep 2015 14:34:12 +0000 (00:34 +1000)]
fixup add malformed_list to unit tests from
d3358a0a05f6 IPv6 wildcards
The unit tests added in
e033d5e90bcb got malformed_list added to
router_parse_addr_policy_item_from_string calls, but unit tests from
subsequent commits didn't get the extra argument until now.
teor (Tim Wilson-Brown) [Mon, 14 Sep 2015 01:46:58 +0000 (11:46 +1000)]
ExitPolicy accept6/reject6 produces IPv6 wildcard addresses only
In previous versions of Tor, ExitPolicy accept6/reject6 * produced
policy entries for IPv4 and IPv6 wildcard addresses.
To reduce operator confusion, change accept6/reject6 * to only produce
an IPv6 wildcard address.
Resolves bug #16069.
Patch on
2eb7eafc9d78 and
a96c0affcb4c (25 Oct 2012),
released in 0.2.4.7-alpha.