Nick Mathewson [Fri, 7 Nov 2008 14:01:44 +0000 (14:01 +0000)]
When we get a duplicated certificate, treat it as a failure and increment the download count. Do not claim to be downloading certificates that we merely want.
vidalia asks us for the value of the Group config option. but now
it's obsolete. which causes us to inform the user every time, even
though the user can't do anything about it other than get confused.
Nick Mathewson [Fri, 7 Nov 2008 02:53:46 +0000 (02:53 +0000)]
Developers should usually configure with --enable-gcc-warnings, and should regularly make check-spaces. Also, int fn() does not mean the same in C as it does in C++ or Java.
Steven Murdoch [Fri, 7 Nov 2008 02:06:12 +0000 (02:06 +0000)]
Patch from Jacob Appelbaum and me to make User option more robust, properly set supplementary groups, deprecated the Group option, and log more information on credential switching
Karsten Loesing [Wed, 5 Nov 2008 10:40:29 +0000 (10:40 +0000)]
(a - b) / 2 != a - (b / 2); this is the reason why tunneled directory requests and client-side introduction circuits don't time out after the intended 30 seconds (task #847). Bugfix on r17106. Found by miner.
when building preemptive circuits, ignore streams that have a
chosen exit node in mind already. otherwise we get tricked into
trying to build a new circuit that will handle them.
fix the other half of r17091. now that best_support can be -1,
we were complaining about no support for our one-hop streams,
when in fact choose_good_exit_server_general() has no business
caring about one-hop streams. patch from miner.
Nick Mathewson [Wed, 29 Oct 2008 19:20:02 +0000 (19:20 +0000)]
Implement the 0x20-hack to make DNS poisoning harder against us, especially when resolving large names. Add a cfg option to disable it, since apparently 3/10 of a percent of servers get it wrong.
Jacob Appelbaum [Sun, 26 Oct 2008 22:56:53 +0000 (22:56 +0000)]
This patch changes some of the code in util.c to refactor calls to
dmalloc_malloc, dmalloc_realloc and dmalloc_strdup. It only calls those
functions if we're using the magic USE_DMALLOC macro. If we're not doing
that, we call the normal malloc, realloc and strdup. This is my first
night at malloc disambiguation club, so I had to disambiguate. Also, first commit, I have my commit bit now. Huzzzah!!!
Roger Dingledine [Fri, 17 Oct 2008 22:08:49 +0000 (22:08 +0000)]
backport candidate:
The "ClientDNSRejectInternalAddresses" config option wasn't being
consistently obeyed: if an exit relay refuses a stream because its
exit policy doesn't allow it, we would remember what IP address
the relay said the destination address resolves to, even if it's
an internal IP address. Bugfix on 0.2.0.7-alpha; patch by rovv.
Roger Dingledine [Wed, 15 Oct 2008 20:59:48 +0000 (20:59 +0000)]
patch4 from proposal 155:
Hidden services start out building five intro circuits rather
than three, and when the first three finish they publish a service
descriptor using those. Now we publish our service descriptor much
faster after restart.
Roger Dingledine [Wed, 15 Oct 2008 18:52:06 +0000 (18:52 +0000)]
add patch2 from proposal 155:
Launch a second client-side introduction circuit in parallel
after a delay of 15 seconds (based on work by Christian Wilms).
Nick Mathewson [Tue, 14 Oct 2008 17:05:52 +0000 (17:05 +0000)]
Patch from rovv: when we have no pending streams, choose exits with choose_good_exit_server_general() rather than with circuit_get_unhandled_ports() and friends. Bugfix on 0.1.1.x, at least.
Roger Dingledine [Mon, 13 Oct 2008 03:34:29 +0000 (03:34 +0000)]
Minor fix in the warning messages when you're having problems
bootstrapping; also, be more forgiving of bootstrap problems when
we're still making incremental progress on a given bootstrap phase.
Make rend_cache_store() use the same return error codes as its v2
equivalent: I got a lonely "Failed to fetch rendezvous descriptor."
in my log file, even when the connection worked.
Nick Mathewson [Mon, 29 Sep 2008 14:53:53 +0000 (14:53 +0000)]
Patch from mwenge: update TrackHostExits mapping expiry times when the mappings are used, so that they expire a while after their last use, not a while after their creation.
Roger Dingledine [Mon, 29 Sep 2008 10:09:05 +0000 (10:09 +0000)]
If we have correct permissions on $datadir, we complain to stdout
and fail to start. But dangerous permissions on
$datadir/cached-status/ would cause us to open a log and complain
there. Now complain to stdout and fail to start in both cases. Fixes
bug 820, reported by seeess.
Roger Dingledine [Mon, 29 Sep 2008 09:36:42 +0000 (09:36 +0000)]
Fix a bug where an unreachable relay would establish enough
reachability testing circuits to do a bandwidth test -- if
we already have a connection to the middle hop of the testing
circuit, then it could establish the last hop by using the existing
connection. Bugfix on 0.1.2.2-alpha, exposed when we made testing
circuits no longer use entry guards in 0.2.1.3-alpha.