Nick Mathewson
af3af49408
Add a function to check whether a given ed id key is ours
2016-12-08 16:47:58 -05:00
Nick Mathewson
c837786868
Teach circuit_extend() more about Ed25519 identities.
...
- forbid extending to the previous hop by Ed25519 ID.
- If we know the Ed25519 ID for the next hop and the client doesn't,
insist on the one from the consensus.
2016-12-08 16:47:57 -05:00
Nick Mathewson
6aa239df36
Rename connection_or_remove_from_identity_map
2016-12-08 16:47:57 -05:00
Nick Mathewson
cdce221e68
Remove orconn_identity_map.
...
It is no longer needed; look up channels by identity instead.
2016-12-08 16:47:57 -05:00
Nick Mathewson
a20c8a81d7
Migrate main data loop for set_bad_connections to use channel structures
...
This was the last user of our or_connections-by-ID map. It also had
a tendency to be O(N) in cases that only had to be O(1).
2016-12-08 16:47:57 -05:00
Nick Mathewson
bfff729728
Add a bunch of work-in-progress comments for 15056 planning
2016-12-08 16:47:57 -05:00
Nick Mathewson
ef5158b2d2
When attempting to find a channel by ID, consider Ed ID.
...
Right now, there's only a mechanism to look for a channel where the
RSA ID matches *and* the ED ID matches. We can add a separate map
later if we want.
2016-12-08 16:47:56 -05:00
Nick Mathewson
e33c85a450
Forward-port 0.2.8.11 notes (master)
2016-12-08 11:09:42 -05:00
Nick Mathewson
44e192db30
Merge branch 'maint-0.2.9'
2016-12-08 11:03:36 -05:00
Nick Mathewson
f9636ebc2f
Merge branch 'maint-0.2.8' into maint-0.2.9
...
"Ours" merge to avoid bumping version.
2016-12-08 11:03:08 -05:00
Nick Mathewson
d47c52b384
Bump to 0.2.8.11-dev
2016-12-08 11:02:49 -05:00
Nick Mathewson
9c899dad31
Merge remote-tracking branch 'origin/maint-0.2.8' into maint-0.2.8
2016-12-08 09:07:28 -05:00
Nick Mathewson
1ba52d044d
Merge branch 'maint-0.2.9'
2016-12-08 09:06:49 -05:00
Nick Mathewson
5d4ff915cb
Merge branch 'maint-0.2.8' into maint-0.2.9
2016-12-08 09:06:10 -05:00
Nick Mathewson
4732e150e8
Bump to 0.2.8.11
2016-12-08 09:04:37 -05:00
Nick Mathewson
85538498b6
Merge branch 'maint-0.2.9'
2016-12-08 07:49:56 -05:00
cypherpunks
9fe6ffa588
Use the correct preprocessor macro for Linux
...
Also combine all of the checks into one if-tree as only one of them
should actually succeed.
2016-12-08 07:48:19 -05:00
Nick Mathewson
d838a812bd
Merge branch 'bug19960_2' into maint-0.2.9
2016-12-08 07:48:14 -05:00
Nick Mathewson
7fea2c3188
Merge branch 'maint-0.2.9'
2016-12-07 18:28:48 -05:00
Nick Mathewson
f602172dba
Merge branch 'maint-0.2.8' into maint-0.2.9
...
(ours merge, to avoid taking 20865 fix)
2016-12-07 18:28:09 -05:00
Nick Mathewson
10baf2c684
Backport the other sierra fix in 20865.
...
They added clock_gettime(), but with tv_nsec as a long, whereas
tv_usec is a __darwin_suseconds_t (a.k.a. 'int'). Now, why would
they do that? Are they preparing for a world where there are more
than 2 billion nanoseconds per second? Are they planning for having
int be less than 32 bits again? Or are they just not paying
attention to the Darwin API?
Also, they forgot to mark clock_gettime() as Sierra-only, so even
if we fixed the issue here, we'd still be stick with portability
breakage like we were for 0.2.9.
So, just disable clock_gettime() on apple.
2016-12-07 18:24:28 -05:00
Nick Mathewson
b658893590
Merge branch 'bug19960_2'
2016-12-07 15:23:14 -05:00
Nick Mathewson
53d4e89626
Netbsd doesn't have ipfw, only the regular pf transport stuff.
...
Attempted fix for 19960.
Also, fixes a typo.
2016-12-07 15:22:44 -05:00
Nick Mathewson
ab013719e5
Merge branch 'maint-0.2.9'
2016-12-07 11:26:02 -05:00
Nick Mathewson
e7ade23f97
Increase verbosity on options/validate__transproxy
...
This is an attempt to figure out what's up with #19960
2016-12-07 11:24:58 -05:00
Nick Mathewson
1d45438ef0
Capture warning in dir/purpose_needs_anonymity_returns_true_by_default
2016-12-07 11:19:49 -05:00
Nick Mathewson
2499ea359a
Merge branch 'maint-0.2.9'
2016-12-07 11:14:56 -05:00
Nick Mathewson
0815f96416
Fix a BUG() warning from next_random_exponential_delay().
...
Fixes 20875; this code is as suggested by teor on the ticket. Thanks!
2016-12-07 11:13:11 -05:00
Nick Mathewson
b0a842913a
Merge branch 'maint-0.2.9'
2016-12-07 11:09:27 -05:00
Nick Mathewson
fce425e3ff
Increase tolerances in util/monotonic_time tests
...
This is an attempt to fix #19974 .
2016-12-07 11:08:54 -05:00
Nick Mathewson
129cee1c75
Merge branch 'maint-0.2.9'
2016-12-07 10:52:28 -05:00
Nick Mathewson
d6ca36defa
Merge branch 'bug20710_025' into maint-0.2.9
2016-12-07 10:52:12 -05:00
Nick Mathewson
045a50e45a
Forgot to add changes file for 20710.
2016-12-07 10:51:39 -05:00
J. Ryan Stinnett
9b2b799d82
Accept non-space whitespace characters in log severity syntax.
...
Adds a test_config_parse_log_severity unit test to verify behavior.
Fixes #19965 .
2016-12-06 11:11:43 -10:00
Nick Mathewson
41adfd6fa3
Fix a couple more crypto_digest() calls to be explicit < 0
2016-12-05 10:31:31 -05:00
Nick Mathewson
daeb633825
whitespace fix
2016-12-05 10:31:10 -05:00
Nick Mathewson
f92630941a
Merge remote-tracking branch 'chelseakomlo/20717_hashing_api_bug'
2016-12-05 10:27:16 -05:00
Nick Mathewson
3f295bbef1
Merge branch 'maint-0.2.9'
2016-12-05 10:07:09 -05:00
Nick Mathewson
30f05167f1
Merge branch 'maint-0.2.8' into maint-0.2.9
2016-12-05 10:06:45 -05:00
Nick Mathewson
cc34ba1cec
Merge branch 'getentropy_028' into maint-0.2.8
2016-12-05 10:06:16 -05:00
Nick Mathewson
714aeedc52
20865: Don't use getentropy() on OSX Sierra.
...
Tor 0.2.9 has a broader range of fixes and workarounds here, but for
0.2.8, we're just going to maintain the existing behavior.
(The alternative would be to backport both
1eba088054
and
16fcbd21c9
, but the latter is kind of
a subtle kludge in the configure.ac script, and I'm not a fan of
backporting that kind of thing.)
2016-12-05 10:02:33 -05:00
Nick Mathewson
5923418eff
Merge remote-tracking branch 'jryans/service_is_ephemeral'
2016-12-05 08:57:00 -05:00
Nick Mathewson
f96f4c0e42
Merge remote-tracking branch 'chelseakomlo/circuituse'
2016-12-05 08:25:22 -05:00
Nick Mathewson
0ded72322c
Merge branch 'maint-0.2.9'
2016-12-05 08:21:46 -05:00
J. Ryan Stinnett
cf2f36b8b4
Test for .git as readable instead of a dir to support worktrees
...
Fixes #20492 .
2016-12-05 08:21:17 -05:00
Nick Mathewson
8230cf7ea6
Merge remote-tracking branch 'jryans/local-hostname'
2016-12-05 08:17:01 -05:00
Nick Mathewson
f7e8bd640a
Merge branch 'maint-0.2.9'
2016-12-05 08:13:14 -05:00
Nick Mathewson
42ec60ecfb
Fix changes file for 20864: 20638 _did_ get into 0.2.9
2016-12-05 08:12:10 -05:00
Nick Mathewson
a23c581d13
Merge remote-tracking branch 'teor/bug20864-029' into maint-0.2.9
2016-12-05 08:10:48 -05:00
Nick Mathewson
6eb1b4bd9c
Merge branch 'maint-0.2.9'
2016-12-05 08:06:36 -05:00