]>
git.ipfire.org Git - thirdparty/tor.git/log
Nick Mathewson [Wed, 21 Feb 2018 14:35:48 +0000 (09:35 -0500)]
Revert
4438ef32 's changes to test_address.c
Apparently some versions of the mac sdk care about the ordering of
net/if.h wrt other headers.
Fixes bug 25319; bug not in any released tor.
Nick Mathewson [Tue, 20 Feb 2018 15:14:15 +0000 (10:14 -0500)]
Remove a bunch of other redundant #includes
Folks have found two in the past week or so; we may as well fix the
others.
Found with:
\#!/usr/bin/python3
import re
def findMulti(fname):
includes = set()
with open(fname) as f:
for line in f:
m = re.match(r'^\s*#\s*include\s+["<](\S+)[>"]', line)
if m:
inc = m.group(1)
if inc in includes:
print("{}: {}".format(fname, inc))
includes.add(m.group(1))
import sys
for fname in sys.argv[1:]:
findMulti(fname)
Nick Mathewson [Tue, 20 Feb 2018 15:03:52 +0000 (10:03 -0500)]
Merge remote-tracking branch 'fristonio/ticket-25261'
Nick Mathewson [Sun, 18 Feb 2018 21:19:43 +0000 (16:19 -0500)]
Use autoconf to check for optional zstd functionality.
Fixes a bug in our zstd-static code. Bug not in any released
version of Tor.
Nick Mathewson [Fri, 16 Feb 2018 14:55:59 +0000 (09:55 -0500)]
Merge branch 'maint-0.3.3'
Nick Mathewson [Fri, 16 Feb 2018 14:55:41 +0000 (09:55 -0500)]
Merge branch 'maint-0.3.2' into maint-0.3.3
"ours" merge to avoid taking 24902 a second time and having to reconcile
all the merge conflicts.
Nick Mathewson [Fri, 16 Feb 2018 14:54:13 +0000 (09:54 -0500)]
Merge branch 'maint-0.3.1' into maint-0.3.2
Nick Mathewson [Fri, 16 Feb 2018 14:48:11 +0000 (09:48 -0500)]
Merge branch 'maint-0.2.9' into maint-0.3.1
Nick Mathewson [Fri, 16 Feb 2018 14:41:06 +0000 (09:41 -0500)]
Merge remote-tracking branch 'dgoulet/ticket24902_029_05' into maint-0.2.9
Nick Mathewson [Fri, 16 Feb 2018 14:40:29 +0000 (09:40 -0500)]
Whoops. 256 was not big enough.
Nick Mathewson [Fri, 16 Feb 2018 14:25:50 +0000 (09:25 -0500)]
Allow checkpointing of non-sha1 digests.
This is necessary because apparently v3 rendezvous cpath hops use
sha3, which I had forgotten.
Bugfix on master; bug not in any released Tor.
Nick Mathewson [Fri, 16 Feb 2018 13:49:08 +0000 (08:49 -0500)]
Merge branch 'maint-0.3.2' into maint-0.3.3
Nick Mathewson [Fri, 16 Feb 2018 13:49:08 +0000 (08:49 -0500)]
Merge branch 'maint-0.3.3'
Nick Mathewson [Fri, 16 Feb 2018 13:48:46 +0000 (08:48 -0500)]
Remove changes file for 24898-029 backports in maint-0.3.2
These patches were already merged, and so don't need a changes file
in these branches.
Nick Mathewson [Fri, 16 Feb 2018 13:47:41 +0000 (08:47 -0500)]
Merge branch 'maint-0.3.2' into maint-0.3.3
Nick Mathewson [Fri, 16 Feb 2018 13:47:41 +0000 (08:47 -0500)]
Merge branch 'maint-0.3.3'
Nick Mathewson [Fri, 16 Feb 2018 13:47:41 +0000 (08:47 -0500)]
Merge branch 'maint-0.3.1' into maint-0.3.2
Nick Mathewson [Fri, 16 Feb 2018 13:47:12 +0000 (08:47 -0500)]
Merge branch 'maint-0.2.9' into maint-0.3.1
"ours" merge to avoid conflicts with the cherry-picked fix for 24898.
Roger Dingledine [Wed, 31 Jan 2018 08:21:27 +0000 (03:21 -0500)]
stop calling channel_mark_client in response to a create_fast
since all it does is produce false positives
this commit should get merged into 0.2.9 and 0.3.0 *and* 0.3.1, even
though the code in the previous commit is already present in 0.3.1. sorry
for the mess.
[Cherry-picked]
Roger Dingledine [Wed, 31 Jan 2018 08:21:27 +0000 (03:21 -0500)]
stop calling channel_mark_client in response to a create_fast
since all it does is produce false positives
this commit should get merged into 0.2.9 and 0.3.0 *and* 0.3.1, even
though the code in the previous commit is already present in 0.3.1. sorry
for the mess.
Roger Dingledine [Tue, 30 Jan 2018 23:05:39 +0000 (18:05 -0500)]
backport to make channel_is_client() accurate
This commit takes a piece of commit
af8cadf3a9 and a piece of commit
46fe353f25 , with the goal of making channel_is_client() be based on what
sort of connection handshake the other side used, rather than seeing
whether the other side ever sent a create_fast cell to us.
Neel Chauhan [Tue, 6 Feb 2018 13:13:55 +0000 (08:13 -0500)]
Remove the return value of node_get_prim_orport() and node_get_prim_dirport()
Nick Mathewson [Fri, 16 Feb 2018 13:16:12 +0000 (08:16 -0500)]
Compilation workaround for windows, which lacks O_SYNC
Bug not in any released Tor.
Nick Mathewson [Fri, 16 Feb 2018 13:06:01 +0000 (08:06 -0500)]
tor_zstd_format_version shouldn't be built when !HAVE_ZSTD
Fixes bug 25276; bugfix not in any released Tor.
Nick Mathewson [Fri, 16 Feb 2018 02:05:12 +0000 (21:05 -0500)]
Merge branch 'maint-0.3.3'
Nick Mathewson [Fri, 16 Feb 2018 02:05:08 +0000 (21:05 -0500)]
Merge remote-tracking branch 'dgoulet/ticket24343_033_01' into maint-0.3.3
Nick Mathewson [Fri, 16 Feb 2018 02:00:10 +0000 (21:00 -0500)]
Merge remote-tracking branch 'ffmancera-1/bug18918'
Nick Mathewson [Fri, 16 Feb 2018 01:56:23 +0000 (20:56 -0500)]
Merge branch 'bug23909'
Nick Mathewson [Fri, 16 Feb 2018 01:53:50 +0000 (20:53 -0500)]
Merge branch 'bug24914'
Nick Mathewson [Fri, 16 Feb 2018 01:52:01 +0000 (20:52 -0500)]
Fix a stack-protector warning: don't use a variable-length buffer
Instead, define a maximum size, and enforce it with an assertion.
Nick Mathewson [Fri, 16 Feb 2018 01:40:03 +0000 (20:40 -0500)]
Merge branch 'onion_ntor_malloc_less'
Nick Mathewson [Fri, 16 Feb 2018 01:38:08 +0000 (20:38 -0500)]
Documentation fixes suggested by catalyst.
Nick Mathewson [Fri, 16 Feb 2018 01:35:30 +0000 (20:35 -0500)]
Merge remote-tracking branch 'isis/bug25185'
Nick Mathewson [Fri, 16 Feb 2018 01:33:00 +0000 (20:33 -0500)]
Merge branch 'maint-0.3.3'
Nick Mathewson [Fri, 16 Feb 2018 01:32:57 +0000 (20:32 -0500)]
Merge remote-tracking branch 'isis/bug25171' into maint-0.3.3
Nick Mathewson [Fri, 16 Feb 2018 01:28:07 +0000 (20:28 -0500)]
Merge branch '25162_zstd_static'
Nick Mathewson [Fri, 16 Feb 2018 01:26:09 +0000 (20:26 -0500)]
This stats_n_seconds_working variable needs to be static now.
(When a variable isn't going to be declared extern in the header, we
require that it be static.)
Nick Mathewson [Fri, 16 Feb 2018 01:23:23 +0000 (20:23 -0500)]
Merge remote-tracking branch 'valentecaio/t-25081'
Nick Mathewson [Fri, 16 Feb 2018 01:19:53 +0000 (20:19 -0500)]
Merge remote-tracking branch 'valentecaio/t-24714'
Isis Lovecruft [Fri, 16 Feb 2018 01:19:12 +0000 (01:19 +0000)]
tests: Remove duplicate included header file in src/test/test.c.
* FIXES #25271: https://bugs.torproject.org/25271
Nick Mathewson [Fri, 16 Feb 2018 01:17:31 +0000 (20:17 -0500)]
Merge branch 'bug18105'
Nick Mathewson [Fri, 16 Feb 2018 01:13:53 +0000 (20:13 -0500)]
Merge branch 'bug24484_squashed'
Nick Mathewson [Thu, 25 Jan 2018 22:04:12 +0000 (17:04 -0500)]
Remove workaround code for systems where free(NULL) is busted.
Add an autoconf test to make sure we won't regret it.
Closes ticket 24484.
Nick Mathewson [Fri, 16 Feb 2018 01:11:25 +0000 (20:11 -0500)]
Bump version in master to 0.3.4.0-alpha-dev
Nick Mathewson [Fri, 16 Feb 2018 01:00:33 +0000 (20:00 -0500)]
Merge branch 'protover_rust_compat_v3'
Nick Mathewson [Thu, 15 Feb 2018 15:47:09 +0000 (10:47 -0500)]
rust protover: match the C implementation on empty-str cases
Empty versions lists are permitted; empty keywords are not.
Nick Mathewson [Thu, 15 Feb 2018 15:27:27 +0000 (10:27 -0500)]
Forbid u32::MAX as a protover range element in rust
Part of the 25249 fix to make rust match the C.
Nick Mathewson [Thu, 15 Feb 2018 13:37:19 +0000 (08:37 -0500)]
Rust protover compat: forbid more than MAX_VERSIONS_TO_EXPAND in a range
Also correct MAX_VERSIONS_TO_EXPAND to match the C.
NOTE that this patch leads to incorrect behavior: the C code allows
huge ranges; it just doesn't allow votes on them (currently). For
full compatibility, we'll need to make the rust code store ranges as
ranges natively, possibly using something like the range_map crate.
Still, this patch is smaller than a "proper" fix.
Fixes TROVE-2018-003.
Deepesh Pathak [Thu, 15 Feb 2018 16:58:34 +0000 (22:28 +0530)]
ticket 25261: Removed multiple includes of transports.h in connection.c
Nick Mathewson [Wed, 14 Feb 2018 15:03:14 +0000 (10:03 -0500)]
Merge remote-tracking branch 'mikeperry/bug24769'
Nick Mathewson [Tue, 13 Feb 2018 23:12:01 +0000 (18:12 -0500)]
Merge branch 'tests_rust'
Nick Mathewson [Tue, 13 Feb 2018 21:55:34 +0000 (16:55 -0500)]
Merge branch 'maint-0.3.2'
Nick Mathewson [Tue, 13 Feb 2018 21:55:19 +0000 (16:55 -0500)]
Merge branch 'maint-0.3.1' into maint-0.3.2
Nick Mathewson [Tue, 13 Feb 2018 21:55:18 +0000 (16:55 -0500)]
Merge branch 'maint-0.2.9' into maint-0.3.1
Taylor Yu [Tue, 13 Feb 2018 21:06:04 +0000 (15:06 -0600)]
fix make check-changes
Nick Mathewson [Tue, 13 Feb 2018 20:00:43 +0000 (15:00 -0500)]
Merge remote-tracking branch 'dgoulet/ticket24902_029_05'
David Goulet [Tue, 13 Feb 2018 19:56:31 +0000 (14:56 -0500)]
Make check-changes happy
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Tue, 13 Feb 2018 15:53:47 +0000 (10:53 -0500)]
man: Document default values if not in the consensus for DoS mitigation
Fixes #25236
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Tue, 13 Feb 2018 18:11:10 +0000 (13:11 -0500)]
Merge remote-tracking branch 'dgoulet/bug25223_029_01' into ticket24902_029_05
David Goulet [Tue, 13 Feb 2018 15:41:21 +0000 (10:41 -0500)]
dos: Add extra safety asserts in cc_stats_refill_bucket()
Never allow the function to set a bucket value above the allowed circuit
burst.
Closes #25202
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Tue, 13 Feb 2018 15:29:41 +0000 (10:29 -0500)]
dos: Don't set consensus param if we aren't a public relay
We had this safeguard around dos_init() but not when the consensus changes
which can modify consensus parameters and possibly enable the DoS mitigation
even if tor wasn't a public relay.
Fixes #25223
Signed-off-by: David Goulet <dgoulet@torproject.org>
Nick Mathewson [Tue, 13 Feb 2018 13:51:29 +0000 (08:51 -0500)]
Remove 25170 changes file from master: it was already merged in 0.3.3.2-alpha
Nick Mathewson [Tue, 13 Feb 2018 13:50:59 +0000 (08:50 -0500)]
Merge branch 'maint-0.3.1' into maint-0.3.2
Nick Mathewson [Tue, 13 Feb 2018 13:50:59 +0000 (08:50 -0500)]
Merge branch 'maint-0.3.2'
Nick Mathewson [Tue, 13 Feb 2018 13:50:58 +0000 (08:50 -0500)]
Merge branch 'maint-0.2.9' into maint-0.3.1
David Goulet [Thu, 8 Feb 2018 14:42:26 +0000 (09:42 -0500)]
dirserv: Improve returned message when relay is rejected
Explicitly inform the operator of the rejected relay to set a valid email
address in the ContactInfo field and contact bad-relays@ mailing list.
Fixes #25170
Signed-off-by: David Goulet <dgoulet@torproject.org>
Nick Mathewson [Tue, 13 Feb 2018 13:47:06 +0000 (08:47 -0500)]
Merge remote-tracking branch 'dgoulet/ticket24902_029_05'
Nick Mathewson [Mon, 12 Feb 2018 16:08:33 +0000 (11:08 -0500)]
Have tor_addr hashes return a randomized hash for AF_UNSPEC.
We don't expect this to come up very much, but we may as well make
sure that the value isn't predictable (as we do for the other
addresses) in case the issue ever comes up.
Spotted by teor.
Nick Mathewson [Mon, 12 Feb 2018 15:59:46 +0000 (10:59 -0500)]
Fix a typo in an address_set.c comment.
Nick Mathewson [Mon, 12 Feb 2018 13:33:48 +0000 (08:33 -0500)]
Merge branch 'maint-0.3.2'
Nick Mathewson [Mon, 12 Feb 2018 13:33:47 +0000 (08:33 -0500)]
Merge branch 'maint-0.3.1' into maint-0.3.2
Nick Mathewson [Mon, 12 Feb 2018 13:33:47 +0000 (08:33 -0500)]
Merge branch 'maint-0.2.9' into maint-0.3.1
Nick Mathewson [Mon, 12 Feb 2018 13:33:03 +0000 (08:33 -0500)]
Merge branch 'bug23318-redux_029' into maint-0.2.9
Fernando Fernandez Mancera [Mon, 12 Feb 2018 11:30:52 +0000 (12:30 +0100)]
Tweaks into router_should_be_dirserver() log msg.
Fixed log message that has been changed in commit
5ea993fa5a .
Signed-off-by: Fernando Fernandez Mancera <ffmancera@riseup.net>
Nick Mathewson [Sun, 11 Feb 2018 23:11:04 +0000 (18:11 -0500)]
Merge branch 'maint-0.3.2'
Nick Mathewson [Sun, 11 Feb 2018 23:11:04 +0000 (18:11 -0500)]
Merge branch 'maint-0.3.1' into maint-0.3.2
Nick Mathewson [Sun, 11 Feb 2018 23:11:04 +0000 (18:11 -0500)]
Merge branch 'maint-0.2.9' into maint-0.3.1
Nick Mathewson [Sun, 11 Feb 2018 23:10:59 +0000 (18:10 -0500)]
Merge remote-tracking branch 'public/bug24198_029' into maint-0.2.9
Nick Mathewson [Sun, 11 Feb 2018 23:09:35 +0000 (18:09 -0500)]
Merge branch 'maint-0.3.2'
Nick Mathewson [Sun, 11 Feb 2018 23:09:35 +0000 (18:09 -0500)]
Merge branch 'maint-0.3.1' into maint-0.3.2
Nick Mathewson [Sun, 11 Feb 2018 23:09:35 +0000 (18:09 -0500)]
Merge branch 'maint-0.2.9' into maint-0.3.1
Nick Mathewson [Sun, 11 Feb 2018 23:07:37 +0000 (18:07 -0500)]
Merge branch 'ticket24315_029' into maint-0.2.9
Nick Mathewson [Sun, 11 Feb 2018 22:01:00 +0000 (17:01 -0500)]
Merge branch 'maint-0.3.2'
Nick Mathewson [Sun, 11 Feb 2018 22:00:52 +0000 (17:00 -0500)]
Merge branch 'maint-0.3.1' into maint-0.3.2
Nick Mathewson [Sun, 11 Feb 2018 21:51:56 +0000 (16:51 -0500)]
Merge branch 'maint-0.2.9' into maint-0.3.1
Nick Mathewson [Sun, 11 Feb 2018 21:51:53 +0000 (16:51 -0500)]
Merge remote-tracking branch 'public/bug21074_029' into maint-0.2.9
Nick Mathewson [Sun, 11 Feb 2018 21:17:41 +0000 (16:17 -0500)]
Merge remote-tracking branch 'isis/bug25127_redux'
Nick Mathewson [Sun, 11 Feb 2018 21:16:58 +0000 (16:16 -0500)]
fix compilation.
Nick Mathewson [Sun, 11 Feb 2018 21:14:19 +0000 (16:14 -0500)]
chnages file for 25120
Nick Mathewson [Sun, 11 Feb 2018 21:10:58 +0000 (16:10 -0500)]
Merge branch 'bug25120'
Alexander Færøy [Thu, 1 Feb 2018 20:27:38 +0000 (21:27 +0100)]
Lower log-level in different error conditions in entropy selection.
This patch lowers the log-level from warning to info in the cases where
we are going to attempt another method as entropy source to hopefully
make the user feel less concerned.
See: https://bugs.torproject.org/25120
Nick Mathewson [Sat, 10 Feb 2018 21:09:01 +0000 (16:09 -0500)]
Merge branch 'maint-0.3.1' into maint-0.3.2
Nick Mathewson [Sat, 10 Feb 2018 21:09:01 +0000 (16:09 -0500)]
Merge branch 'maint-0.3.2'
Nick Mathewson [Sat, 10 Feb 2018 21:09:00 +0000 (16:09 -0500)]
Merge branch 'maint-0.2.9' into maint-0.3.1
Nick Mathewson [Sat, 10 Feb 2018 21:08:58 +0000 (16:08 -0500)]
Merge branch 'bug24978_029_enable' into maint-0.2.9
Nick Mathewson [Sat, 10 Feb 2018 15:41:23 +0000 (10:41 -0500)]
Bump version to 0.3.3.2-alpha-dev
Nick Mathewson [Sat, 10 Feb 2018 14:57:36 +0000 (09:57 -0500)]
Increment the release date in the changelog.
"We fray into the future, rarely wrought
save in the tapestries of afterthought"
-- Richard Wilbur, _Years End_
Isis Lovecruft [Sat, 10 Feb 2018 02:20:50 +0000 (02:20 +0000)]
rust: Remove now unused byte_slice_is_c_like() utility.
Isis Lovecruft [Sat, 10 Feb 2018 01:41:06 +0000 (01:41 +0000)]
rust: Remove empty_static_cstr() in favour of new cstr!() macro.
Isis Lovecruft [Sat, 10 Feb 2018 01:52:26 +0000 (01:52 +0000)]
rust: Use tor_util::strings utils for protover_compute_for_old_tor.