]>
git.ipfire.org Git - thirdparty/tor.git/log
Nick Mathewson [Sat, 29 Dec 2012 01:52:24 +0000 (20:52 -0500)]
Fix a crash bug when running an node without IPv6-exit support.
Fixes bug 7814; bugfix on 0.2.4.7-alpha.
Nick Mathewson [Wed, 26 Dec 2012 15:05:45 +0000 (10:05 -0500)]
Rate-limit "No circuits are opened" message to once-per-hour
mr-4 reports on #7799 that he was seeing it several times per second,
which suggests that things had gone very wrong.
This isn't a real fix, but it should make Tor usable till we can
figure out the real issue.
Nick Mathewson [Wed, 26 Dec 2012 04:37:41 +0000 (23:37 -0500)]
Fix a possibly-unused-var warning. Thank you, GCC.
Nick Mathewson [Wed, 26 Dec 2012 04:34:38 +0000 (23:34 -0500)]
Fix compilation warning: must not format u64 as long.
Nick Mathewson [Wed, 26 Dec 2012 04:34:16 +0000 (23:34 -0500)]
Fix whitespace
Nick Mathewson [Wed, 26 Dec 2012 04:30:28 +0000 (23:30 -0500)]
Merge remote-tracking branch 'mikeperry/209-path-bias-changes'
Nick Mathewson [Wed, 26 Dec 2012 04:22:54 +0000 (23:22 -0500)]
Merge branch 'directory_guards_rebased'
Nick Mathewson [Wed, 26 Dec 2012 04:19:10 +0000 (23:19 -0500)]
Add documentation for directory guard options
Nick Mathewson [Tue, 11 Dec 2012 18:05:35 +0000 (13:05 -0500)]
Add configuration options for directory guards
In addition to all the other ways to make directory gurads not go,
you can now set UseEntryGuardsAsDirGuards to 0.
Nick Mathewson [Tue, 11 Dec 2012 17:44:18 +0000 (12:44 -0500)]
Directory guard implementation.
Implements proposal 207; ticket 6526.
Nick Mathewson [Tue, 11 Dec 2012 16:43:27 +0000 (11:43 -0500)]
Remember which of our guards are directory caches
Nick Mathewson [Tue, 11 Dec 2012 16:25:36 +0000 (11:25 -0500)]
Split choosing a regular directory into its own fn
Nick Mathewson [Wed, 26 Dec 2012 03:12:18 +0000 (22:12 -0500)]
One last fix for a warning on non-EC systems
Nick Mathewson [Wed, 26 Dec 2012 03:10:57 +0000 (22:10 -0500)]
Merge branch 'tls_ecdhe_rebased_v2'
Nick Mathewson [Wed, 26 Dec 2012 02:08:42 +0000 (21:08 -0500)]
Be more noncomittal about performance improvement of uint128 backend.
Nick Mathewson [Wed, 26 Dec 2012 01:04:54 +0000 (20:04 -0500)]
Make ECDHE group configurable: 224 for public, 256 for bridges (default)
Nick Mathewson [Tue, 25 Dec 2012 22:39:09 +0000 (17:39 -0500)]
Inform the user if they're passing up a 10x ECDH speedup.
Nick Mathewson [Wed, 28 Nov 2012 19:14:35 +0000 (14:14 -0500)]
Add benchmark for DH handshake and ECDH-P-224/56 handshake
Nick Mathewson [Wed, 28 Nov 2012 18:31:17 +0000 (13:31 -0500)]
Let servers choose better ciphersuites when clients support them
This implements the server-side of proposal 198 by detecting when
clients lack the magic list of ciphersuites that indicates that
they're lying faking some ciphers they don't really have. When
clients lack this list, we can choose any cipher that we'd actually
like. The newly allowed ciphersuites are, currently, "All ECDHE-RSA
ciphers that openssl supports, except for ECDHE-RSA-RC4".
The code to detect the cipher list relies on on (ab)use of
SSL_set_session_secret_cb.
Nick Mathewson [Wed, 28 Nov 2012 17:35:02 +0000 (12:35 -0500)]
Remove the address argument from client cipher classification fns
Nick Mathewson [Wed, 28 Nov 2012 17:06:57 +0000 (12:06 -0500)]
Cache the type of client cipher list we have in the tor_tls_t
We already use this classification for deciding whether (as a server)
to do a v2/v3 handshake, and we're about to start using it for
deciding whether we can use good ciphersuites too.
Nick Mathewson [Tue, 27 Nov 2012 04:19:32 +0000 (23:19 -0500)]
prop198: Detect the list of ciphersuites we used to lie about having
This is less easy than you might think; we can't just look at the
client ciphers list, since openssl doesn't remember client ciphers if
it doesn't know about them. So we have to keep a list of the "v2"
ciphers, with the ones we don't know about removed.
Nick Mathewson [Tue, 27 Nov 2012 04:19:02 +0000 (23:19 -0500)]
Configure SSL context to know about using P-256 for ECDHE.
Roger Dingledine [Tue, 25 Dec 2012 07:52:53 +0000 (02:52 -0500)]
bump to 0.2.4.7-alpha-dev
Roger Dingledine [Mon, 24 Dec 2012 09:19:18 +0000 (04:19 -0500)]
add a blurb for 0.2.4.7-alpha too
Roger Dingledine [Mon, 24 Dec 2012 09:04:04 +0000 (04:04 -0500)]
bump to 0.2.4.7-alpha
Roger Dingledine [Mon, 24 Dec 2012 09:01:44 +0000 (04:01 -0500)]
fold in changes files so far
Nick Mathewson [Wed, 19 Dec 2012 02:32:53 +0000 (21:32 -0500)]
When there are no dir_server_ts to choose, don't crash
It's important not to call choose_array_element_by_weight and then
pass its return value unchecked to smartlist_get : it is allowed to
return -1.
Fixes bug 7756; bugfix on
4e3d07a6 (not in any released Tor)
Mike Perry [Tue, 18 Dec 2012 22:16:01 +0000 (14:16 -0800)]
Nick's Code review #3 part 2.
Mike Perry [Tue, 18 Dec 2012 20:39:03 +0000 (12:39 -0800)]
Changes from Nick's code review 'part 1'
I think this is actually his third code review of this branch so far.
Nick Mathewson [Tue, 18 Dec 2012 20:16:35 +0000 (15:16 -0500)]
Add packaged cell fullness to the heartbeat message.
This is an attempt to diagnose the severity of bug 7743.
Nick Mathewson [Tue, 18 Dec 2012 03:26:05 +0000 (22:26 -0500)]
Remove the obsolete doc/TODO.* files
Closes bug #7730.
Nick Mathewson [Mon, 17 Dec 2012 20:49:09 +0000 (15:49 -0500)]
Merge branch 'ticket7570_7571'
Conflicts:
src/or/routerlist.c
Nick Mathewson [Sun, 25 Nov 2012 22:19:25 +0000 (17:19 -0500)]
Drop the maximum attempts to get a virtual address to 1000.
This is good enough to give P_success >= 999,999,999/1,000,000,000 so
long as the address space is less than 97.95 full. It'd be ridiculous
for that to happen for IPv6, and usome reasonable assumptions, it
would also be pretty silly for IPv4.
Nick Mathewson [Sun, 25 Nov 2012 21:43:32 +0000 (16:43 -0500)]
Describe IPv6 automap changes
Nick Mathewson [Sun, 25 Nov 2012 20:33:07 +0000 (15:33 -0500)]
Document PreferIPv6Automap in the manpage
Nick Mathewson [Sun, 25 Nov 2012 20:12:44 +0000 (15:12 -0500)]
Add missing doxygen for DNS and automap code
Nick Mathewson [Sun, 25 Nov 2012 19:51:36 +0000 (14:51 -0500)]
Per-listener option to prefer IPv6 automaps when possible.
Nick Mathewson [Fri, 23 Nov 2012 22:31:53 +0000 (17:31 -0500)]
Build and test most of the machinery needed for IPv6 virtualaddrmaps
With an IPv6 virtual address map, we can basically hand out a new
IPv6 address for _every_ address we connect to. That'll be cool, and
will let us maybe get around prop205 issues.
This uses some fancy logic to try to make the code paths in the ipv4
and the ipv6 case as close as possible, and moves to randomly
generated addresses so we don't need to maintain those stupid counters
that will collide if Tor restarts but apps don't.
Also has some XXXX items to fix to make this useful. More design
needed.
Nick Mathewson [Sun, 25 Nov 2012 19:31:35 +0000 (14:31 -0500)]
Refactor the code to check if an address is matched by automapsuffixes
Nick Mathewson [Thu, 6 Dec 2012 17:26:10 +0000 (12:26 -0500)]
Fix another uninitialized var warning from GCC
Nick Mathewson [Thu, 6 Dec 2012 16:45:06 +0000 (11:45 -0500)]
Fixed an unused-variable warning
Nick Mathewson [Wed, 28 Nov 2012 01:53:09 +0000 (20:53 -0500)]
Don't use the cache when changing an IP address because of an exit policy
Nick Mathewson [Sun, 25 Nov 2012 21:45:24 +0000 (16:45 -0500)]
changes entry for disabling cache usage by default
Nick Mathewson [Sun, 25 Nov 2012 20:36:35 +0000 (15:36 -0500)]
Turn off by-default use of client-side DNS cacheing.
Nick Mathewson [Sun, 25 Nov 2012 19:57:10 +0000 (14:57 -0500)]
Refactor port_cfg_t creation into a port_cfg_new() function
This function gives us a single place to set reasonable default flags
for port_cfg_t entries, to avoid bugs like the one where we weren't
setting ipv4_traffic_ok to 1 on SocksPorts initialized in an older
way.
Nick Mathewson [Sun, 25 Nov 2012 21:38:29 +0000 (16:38 -0500)]
Changes file for new DNS caching options
Nick Mathewson [Sun, 25 Nov 2012 20:30:11 +0000 (15:30 -0500)]
Add documentation for the client-side DNS cache options
Nick Mathewson [Sun, 25 Nov 2012 18:45:36 +0000 (13:45 -0500)]
Implement option to turn off DNS cache modification by a client port
(This is part 3 of making DNS cache use enabled/disabled on a
per-client port basis. This implements the UseCacheIPv[46]DNS options)
Nick Mathewson [Sun, 25 Nov 2012 18:45:36 +0000 (13:45 -0500)]
Implement option to turn off DNS cache use on a client port
(This is part 2 of making DNS cache use enabled/disabled on a
per-client port basis. This implements the CacheIPv[46]DNS options,
but not the UseCachedIPv[46] ones.)
Nick Mathewson [Sun, 25 Nov 2012 18:38:27 +0000 (13:38 -0500)]
Oops: make the check for not adding ip->ip DNS maps correct
Nick Mathewson [Sun, 25 Nov 2012 18:18:26 +0000 (13:18 -0500)]
Add options to turn DNS cache use on or off per client port.
(This is part 1 of making DNS cache use enabled/disabled on a
per-client port basis. These options are shuffled around correctly,
but don't do anything yet.)
Nick Mathewson [Sun, 25 Nov 2012 18:24:37 +0000 (13:24 -0500)]
Oops; make DNSPort configuration take address family options
Nick Mathewson [Mon, 17 Dec 2012 16:14:12 +0000 (11:14 -0500)]
Avoid a 'may be used uninitialized' warning
Fixes bug 7746; bug not in any released version of Tor.
Nick Mathewson [Thu, 13 Dec 2012 22:34:05 +0000 (17:34 -0500)]
Nuke uses of memcmp outside of unit tests
We want to be saying fast_mem{cmp,eq,neq} when we're doing a
comparison that's allowed to exit early, or tor_mem{cmp,eq,neq} when
we need a data-invariant timing. Direct use of memcmp tends to imply
that we haven't thought about the issue.
Nick Mathewson [Thu, 13 Dec 2012 17:52:44 +0000 (12:52 -0500)]
Merge remote-tracking branch 'origin/maint-0.2.3'
Conflicts:
src/config/geoip
Nick Mathewson [Thu, 13 Dec 2012 17:51:28 +0000 (12:51 -0500)]
Merge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3
Nick Mathewson [Thu, 13 Dec 2012 17:47:46 +0000 (12:47 -0500)]
Note that fallback_dirsource was proposal 206, bug 572.
Nick Mathewson [Thu, 13 Dec 2012 17:44:17 +0000 (12:44 -0500)]
Fix two wide lines in config.c
Nick Mathewson [Thu, 13 Dec 2012 17:42:29 +0000 (12:42 -0500)]
Merge branch 'fallback_dirsource_v3'
Karsten Loesing [Thu, 13 Dec 2012 07:45:25 +0000 (08:45 +0100)]
Add link explaining how the geoip file was created.
Karsten Loesing [Thu, 6 Dec 2012 10:29:47 +0000 (11:29 +0100)]
Update to the December 2012 GeoIP database.
Karsten Loesing [Wed, 28 Nov 2012 02:26:52 +0000 (21:26 -0500)]
Update to the November 2012 GeoIP database.
Mike Perry [Wed, 12 Dec 2012 01:49:12 +0000 (17:49 -0800)]
Tags on relay cells can result in certain reason codes.
Close the circuit (it's probably junk anyways), and make sure we don't probe
it/count it as a success.
Mike Perry [Wed, 12 Dec 2012 01:19:39 +0000 (17:19 -0800)]
Woops, this log message triggers with the 2-hop bias commit.
Nick Mathewson [Tue, 11 Dec 2012 23:11:49 +0000 (18:11 -0500)]
Mention that dist-geoip6 was bug 7655
Mike Perry [Mon, 10 Dec 2012 08:36:10 +0000 (00:36 -0800)]
Add a missing comment.
Mike Perry [Mon, 10 Dec 2012 08:28:07 +0000 (00:28 -0800)]
More log message and space fixups.
Mike Perry [Mon, 10 Dec 2012 08:13:55 +0000 (00:13 -0800)]
Update manpage.
Mike Perry [Mon, 10 Dec 2012 07:58:01 +0000 (23:58 -0800)]
Update changes file.
Mike Perry [Mon, 10 Dec 2012 07:50:05 +0000 (23:50 -0800)]
Clean up some XXX comments.
Mike Perry [Mon, 10 Dec 2012 07:47:04 +0000 (23:47 -0800)]
Space fixes.
Mike Perry [Mon, 10 Dec 2012 04:56:48 +0000 (20:56 -0800)]
Fix a rather serious use-count state bug.
We need to use the success count or the use count depending on the consensus
parameter.
Mike Perry [Mon, 10 Dec 2012 04:53:22 +0000 (20:53 -0800)]
Convert to doubles for all pathbias state.
Let's hope this solves the rounding error issue..
Mike Perry [Mon, 10 Dec 2012 04:20:44 +0000 (20:20 -0800)]
Also shorten circuit_successes to circ_successes.
For consistency and great justice.
Ok, mostly consistency.
Mike Perry [Mon, 10 Dec 2012 04:18:31 +0000 (20:18 -0800)]
Rename first_hop to circ_attempt.
Since we've generalized what we can count from (first or second hop), we
should generalize the variable and constant naming too.
Mike Perry [Mon, 10 Dec 2012 04:02:41 +0000 (20:02 -0800)]
Change from first hop accounting to 2nd hop accounting
This has several advantages, including more resilience to ambient failure.
I still need to rename all the first_hop vars tho.. Saving that for a separate
commit.
Mike Perry [Mon, 10 Dec 2012 04:02:08 +0000 (20:02 -0800)]
Add intro+rend cannibalize param..
Mike Perry [Mon, 10 Dec 2012 03:18:04 +0000 (19:18 -0800)]
Flag cannibalized circs as used (non-ideal).
Also add some comments.
Mike Perry [Sun, 9 Dec 2012 00:37:22 +0000 (16:37 -0800)]
Allow any valid 'end' cell to mean a circuit was used successfully.
Also improve some log messages.
Mike Perry [Sat, 8 Dec 2012 22:16:29 +0000 (14:16 -0800)]
Sadly, we can't safely count client intro circ success
Mike Perry [Sat, 8 Dec 2012 20:07:58 +0000 (12:07 -0800)]
Fix some hidden service edge cases.
Mike Perry [Sat, 8 Dec 2012 01:47:23 +0000 (17:47 -0800)]
Refactor path use bias code into own function.
Also, improve and log some failure cases.
Mike Perry [Fri, 7 Dec 2012 23:50:31 +0000 (15:50 -0800)]
Actually, both nacks and acks indicate a valid path
Mike Perry [Mon, 26 Nov 2012 01:29:16 +0000 (17:29 -0800)]
Note more potential issues.
Mike Perry [Thu, 22 Nov 2012 00:40:25 +0000 (16:40 -0800)]
Note a strange case for SOCKS streams.
Mike Perry [Thu, 22 Nov 2012 00:33:16 +0000 (16:33 -0800)]
Fix another crash bug.
Mike Perry [Thu, 22 Nov 2012 00:32:38 +0000 (16:32 -0800)]
Fix a crash bug and pass down a remote reason code.
Unexpected channel closures count as remote circ failures.
Mike Perry [Thu, 22 Nov 2012 00:31:58 +0000 (16:31 -0800)]
Document that care needs to be taken with any_streams_attached.
Mike Perry [Tue, 20 Nov 2012 09:52:33 +0000 (01:52 -0800)]
Remove n_chan codepaths for determinining guard.
Cpath is apparently good enough.
Mike Perry [Mon, 19 Nov 2012 19:31:35 +0000 (11:31 -0800)]
Move a pathbias function that depends on entryguard_t.
Mike Perry [Mon, 19 Nov 2012 19:30:07 +0000 (11:30 -0800)]
Fix a crash due to NULL circ->n_chan.
Is this redundant? Can we always rely on circ->cpath->extend_info
being present for origin circuits?
Mike Perry [Mon, 19 Nov 2012 18:45:47 +0000 (10:45 -0800)]
Prop209: Rend circuits weren't ever marked dirty.
Mike Perry [Sun, 18 Nov 2012 01:51:27 +0000 (17:51 -0800)]
Prop 209: Add in hidserv path bias counts for usage.
Mike Perry [Sun, 18 Nov 2012 00:30:50 +0000 (16:30 -0800)]
Prop 209: Add path bias counts for timeouts and other mechanisms.
Turns out there's more than one way to block a tagged circuit.
This seems to successfully handle all of the normal exit circuits. Hidden
services need additional tweaks, still.
Mike Perry [Fri, 2 Nov 2012 19:37:26 +0000 (12:37 -0700)]
Be explicit about units for timeout.
Mike Perry [Fri, 2 Nov 2012 19:36:08 +0000 (12:36 -0700)]
Fix an assert crash and an incorrectly placed return.
Mike Perry [Thu, 1 Nov 2012 01:51:07 +0000 (18:51 -0700)]
Add a changes file for bug7157.
Mike Perry [Thu, 1 Nov 2012 01:50:45 +0000 (18:50 -0700)]
Update manpage for new PathBias torrc options.
Mike Perry [Thu, 1 Nov 2012 01:49:49 +0000 (18:49 -0700)]
Update with code review changes from Nick.