]>
git.ipfire.org Git - thirdparty/tor.git/log
Mike Perry [Thu, 4 Mar 2010 01:35:06 +0000 (17:35 -0800)]
Demote warn to info, since it can happen.
I still feel like we should investigate this case. It seems odd.
Mike Perry [Sat, 27 Feb 2010 00:17:09 +0000 (16:17 -0800)]
Check for empty smartlists and no bandwidth during node selection.
Sebastian Hahn [Fri, 26 Feb 2010 07:00:56 +0000 (08:00 +0100)]
Don't segfault when checking the consensus
Nick Mathewson [Fri, 26 Feb 2010 06:02:20 +0000 (01:02 -0500)]
Don't believe unauthenticated info in a consensus.
Don't allow anything but directory-signature tokens in a consensus after
the first directory-signature token. Fixes bug in bandwidth-weights branch.
Found by "outofwords."
Nick Mathewson [Thu, 25 Feb 2010 22:02:02 +0000 (17:02 -0500)]
add .exe files to gitignore
Nick Mathewson [Thu, 25 Feb 2010 22:00:14 +0000 (17:00 -0500)]
For integers, if !(E<G), then we can infer that E>=G.
This means that "if (E<G) {abc} else if (E>=G) {def}" can be replaced with
"if (E<G) {abc} else {def}"
Doing the second test explicitly made my mingw gcc nervous that we might
never be initializing casename.
Nick Mathewson [Thu, 25 Feb 2010 21:48:26 +0000 (16:48 -0500)]
Add the MIN and MAX macros for platforms that lack them
Nick Mathewson [Thu, 25 Feb 2010 21:22:40 +0000 (16:22 -0500)]
Fix 64-bit printf issues in consensus-bw-weights5-merge.
For my 64-bit Linux system running with GCC 4.4.3-fc12-whatever, you
can't do 'printf("%lld", (int64_t)x);' Instead you need to tell the
compiler 'printf("%lld", (long long int)x);' or else it doesn't
believe the types match. This is why we added U64_PRINTF_ARG; it
looks like we needed an I64_PRINTF_ARG too.
Nick Mathewson [Thu, 25 Feb 2010 21:22:29 +0000 (16:22 -0500)]
Merge remote branch 'mikeperry/consensus-bw-weights5-merge'
Conflicts:
ChangeLog
Mike Perry [Thu, 25 Feb 2010 19:59:35 +0000 (11:59 -0800)]
Check snprintf return values in format_networkstatus_vote.
Maybe this is what parakeep was complaining about? Really wish he
would stick around more. Playing these guessing games is not fun :(
Mike Perry [Thu, 25 Feb 2010 19:42:45 +0000 (11:42 -0800)]
Cast our weights down to ints from int64.
They are capped to be between 0 and weight_scale (10000) by the code
just before the snprintf.
Mike Perry [Thu, 25 Feb 2010 19:42:24 +0000 (11:42 -0800)]
Update dir-spec.txt with begin_dir weights.
Nick Mathewson [Thu, 25 Feb 2010 19:32:22 +0000 (14:32 -0500)]
Merge remote branch 'sebastian/manpage'
Nick Mathewson [Thu, 25 Feb 2010 19:31:53 +0000 (14:31 -0500)]
Merge remote branch 'sebastian/polipo'
Sebastian Hahn [Thu, 25 Feb 2010 11:25:57 +0000 (12:25 +0100)]
Restrict PerConnBWRate|Burst to INT32_MAX, update manpage
All other bandwidthrate settings are restricted to INT32_MAX, but
this check was forgotten for PerConnBWRate and PerConnBWBurst. Also
update the manpage to reflect the fact that specifying a bandwidth
in terabytes does not make sense, because that value will be too
large.
Mike Perry [Wed, 24 Feb 2010 19:17:31 +0000 (11:17 -0800)]
Make unit tests work.
Still not sure why they generate an empty consensus document..
Too much frobbing going on there.
Sebastian Hahn [Tue, 23 Feb 2010 18:59:34 +0000 (19:59 +0100)]
Update a section of the exit notice file, give it a changelog.
Sebastian Hahn [Mon, 22 Feb 2010 14:18:44 +0000 (15:18 +0100)]
Fix some urls in the exit notice
Patch by Christian Kujau to fix some links in the exit notice file
(the file you'd use for your DirPortFrontPage), as well as making
the file xhtml compatible. Thanks!
Sebastian Hahn [Tue, 16 Feb 2010 04:47:24 +0000 (05:47 +0100)]
Update polipo build instructions for OS X 10.6
Sebastian Hahn [Tue, 23 Feb 2010 16:09:02 +0000 (17:09 +0100)]
Proper NULL checking for hsdesc publication
Fix a dereference-then-NULL-check sequence. This bug wasn't triggered
in the wild, but we should fix it anyways in case it ever happens.
Also make sure users get a note about this being a bug when they
see it in their log.
Thanks to ekir for discovering and reporting this bug.
Sebastian Hahn [Tue, 23 Feb 2010 14:02:34 +0000 (15:02 +0100)]
Fix another coverity-spotted memleak
Mike Perry [Tue, 23 Feb 2010 02:43:44 +0000 (18:43 -0800)]
Update consensus methods in spec.
Mike Perry [Tue, 23 Feb 2010 02:43:13 +0000 (18:43 -0800)]
Add consensus method #defines.
Roger Dingledine [Tue, 23 Feb 2010 02:23:06 +0000 (21:23 -0500)]
bump to 0.2.2.9-alpha-dev
Nick Mathewson [Tue, 23 Feb 2010 01:52:19 +0000 (20:52 -0500)]
Mark 160 and 161 as Finished.
Mike Perry [Tue, 23 Feb 2010 01:04:35 +0000 (17:04 -0800)]
Add a changelog entry for the bandwidth weightings.
Mike Perry [Sat, 20 Feb 2010 21:46:43 +0000 (13:46 -0800)]
Remove misc unnecessary newlines found by new check.
Mike Perry [Sat, 20 Feb 2010 21:44:15 +0000 (13:44 -0800)]
Patch from karsten to detect unnecessary \n's.
Also fix a spacing issue.
Mike Perry [Sun, 14 Feb 2010 22:45:45 +0000 (14:45 -0800)]
Always weight routers by bandwidth.
Also always predict that we need a high capacity circuit or internal
circuit.
Mike Perry [Mon, 15 Feb 2010 02:16:06 +0000 (18:16 -0800)]
Update specs for weight computation and use.
Mike Perry [Mon, 15 Feb 2010 01:49:08 +0000 (17:49 -0800)]
Clearly mark directory footer so we parse the new weight line.
Mike Perry [Wed, 27 Jan 2010 23:01:51 +0000 (15:01 -0800)]
Implement bw weighting selection algorithm.
Mike Perry [Fri, 29 Jan 2010 23:40:40 +0000 (15:40 -0800)]
Add parsing+verification for bw weight values.
Mike Perry [Sat, 30 Jan 2010 01:10:50 +0000 (17:10 -0800)]
Perform calculation of consensus bandwidth weights.
Also add bwweightscale consensus param. Use it as our
fixed-point calculation width.
Mike Perry [Mon, 15 Feb 2010 00:26:41 +0000 (16:26 -0800)]
Add %lld compat defines.
Roger Dingledine [Mon, 22 Feb 2010 21:19:35 +0000 (16:19 -0500)]
elevate a changelog entry, and get my mailto out of the man page
Nick Mathewson [Mon, 22 Feb 2010 17:46:43 +0000 (12:46 -0500)]
Merge remote branch 'sebastian/coverity'
Nick Mathewson [Mon, 22 Feb 2010 17:45:01 +0000 (12:45 -0500)]
Merge remote branch 'sebastian/bug1254'
Nick Mathewson [Mon, 22 Feb 2010 17:42:31 +0000 (12:42 -0500)]
Make expand_filename into a tor_strdup() alias on windows.
On Windows, we don't have a notion of ~ meaning "our homedir", so we
were deliberately using an #ifdef to avoid calling expand_filename()
in multiple places. This is silly: The right place to turn a function
into a no-op on a single platform is in the function itself, not in
every single call-site.
Sebastian Hahn [Mon, 22 Feb 2010 11:21:58 +0000 (12:21 +0100)]
Remove some redundant code in options_save_current()
get_torrc_fname() does the same thing we did in this code, so let's
replace it.
Sebastian Hahn [Mon, 22 Feb 2010 11:08:58 +0000 (12:08 +0100)]
Expand homedirs in paths passed to tor-checkkey
This is so that coverity stops complaining about using a user-supplied
string with the open() syscall. Let's see if it works.
Sebastian Hahn [Mon, 22 Feb 2010 10:39:29 +0000 (11:39 +0100)]
Zero a cipher completely before freeing it
We used to only zero the first ptrsize bytes of the cipher. Since
cipher is large enough, we didn't zero too many bytes. Discovered
and fixed by ekir. Fixes bug 1254.
Sebastian Hahn [Mon, 22 Feb 2010 09:57:11 +0000 (10:57 +0100)]
Break early on unknown extendcircuit purpose
Don't continue handling EXTENDCIRCUIT messages when we get an
unknown purpose.
Sebastian Hahn [Mon, 22 Feb 2010 09:56:54 +0000 (10:56 +0100)]
Fix a memory leak, found by coverity
Sebastian Hahn [Mon, 22 Feb 2010 09:41:46 +0000 (10:41 +0100)]
Remove some redundand code in control.c
Found by coverity
Roger Dingledine [Mon, 22 Feb 2010 09:01:04 +0000 (04:01 -0500)]
Merge commit 'sebastian/osxinstructions'
Sebastian Hahn [Sat, 20 Feb 2010 23:19:41 +0000 (00:19 +0100)]
Update the osx dmg creation instructions
Make sure we follow basic whitespace sanity principles, update a
few links
Sebastian Hahn [Mon, 22 Feb 2010 06:58:10 +0000 (07:58 +0100)]
network-status-version must come first in a vote/consensus
Spec conformance issue: The code didn't force the network-status-version
token to be the first token in a v3 vote or consensus.
Problem discovered by Parakeep.
Roger Dingledine [Mon, 22 Feb 2010 05:41:48 +0000 (00:41 -0500)]
we have two faqs for now
Roger Dingledine [Mon, 22 Feb 2010 05:38:02 +0000 (00:38 -0500)]
we deleted AUTHORS, so don't put it in the tarball
Roger Dingledine [Mon, 22 Feb 2010 05:24:33 +0000 (00:24 -0500)]
Merge branch 'maint-0.2.1' into new
Conflicts:
ChangeLog
configure.in
contrib/tor-mingw.nsi.in
src/win32/orconfig.h
Roger Dingledine [Mon, 22 Feb 2010 05:20:55 +0000 (00:20 -0500)]
prepare for 0.2.2.9-alpha
Roger Dingledine [Sun, 21 Feb 2010 22:52:52 +0000 (17:52 -0500)]
put 0.2.1.24 in release notes too
Roger Dingledine [Sun, 21 Feb 2010 22:27:12 +0000 (17:27 -0500)]
bump to 0.2.1.24
Roger Dingledine [Sun, 21 Feb 2010 22:20:37 +0000 (17:20 -0500)]
minor fixes in proposal 169
still need to finish reading it, but so far so good
Roger Dingledine [Sun, 21 Feb 2010 22:18:42 +0000 (17:18 -0500)]
fix typo and garbage grammar
Nick Mathewson [Sat, 20 Feb 2010 23:35:19 +0000 (18:35 -0500)]
Merge remote branch 'public/cbt-status'
Conflicts:
ChangeLog
Nick Mathewson [Fri, 19 Feb 2010 21:58:24 +0000 (16:58 -0500)]
Merge remote branch 'sebastian/bug1143'
Sebastian Hahn [Fri, 19 Feb 2010 16:19:33 +0000 (17:19 +0100)]
Make the DNSPort option work with libevent 2.x
We need to use evdns_add_server_port_with_base() when configuring
our DNS listener, because libevent segfaults otherwise. Add a macro
in compat_libevent.h to pick the correct implementation depending
on the libevent version.
Fixes bug 1143, found by SwissTorExit
Nick Mathewson [Thu, 18 Feb 2010 17:47:42 +0000 (12:47 -0500)]
Future-proof the control protocol by ignoring unrecognized keyword args
Nick Mathewson [Thu, 18 Feb 2010 17:32:11 +0000 (12:32 -0500)]
Make more arguments in control.c properly case-insensitive.
Mike Perry [Thu, 18 Feb 2010 17:40:15 +0000 (09:40 -0800)]
Add changelog entry for CBT testing work.
Mike Perry [Wed, 10 Feb 2010 20:25:06 +0000 (12:25 -0800)]
Describe the recent timeouts reallocation behavior.
Mike Perry [Fri, 22 Jan 2010 00:10:02 +0000 (16:10 -0800)]
Move CBT params into consensus.
Mike Perry [Mon, 11 Jan 2010 18:16:50 +0000 (10:16 -0800)]
Add an event for a case where we drop guards.
Also add a comment about an odd CBT timeout edgecase.
Mike Perry [Tue, 29 Dec 2009 03:17:12 +0000 (04:17 +0100)]
Allow "EXTENDCIRCUIT 0" to omit a path.
Mike Perry [Fri, 25 Dec 2009 11:42:35 +0000 (05:42 -0600)]
Add BUILDTIMEOUT_SET event for CBT stress testing.
Nick Mathewson [Thu, 18 Feb 2010 17:01:56 +0000 (12:01 -0500)]
Merge remote branch 'origin/maint-0.2.1'
Conflicts:
ChangeLog
configure.in
contrib/tor-mingw.nsi.in
src/win32/orconfig.h
Nick Mathewson [Thu, 18 Feb 2010 16:57:47 +0000 (11:57 -0500)]
Bump version to 0.2.1.23-dev
Nick Mathewson [Thu, 18 Feb 2010 16:54:26 +0000 (11:54 -0500)]
Add changelog for latest openssl fix
Sebastian Hahn [Thu, 18 Feb 2010 12:08:57 +0000 (13:08 +0100)]
Fix compile
Nick Mathewson [Thu, 18 Feb 2010 04:55:03 +0000 (23:55 -0500)]
Even more conservative option-setting for SSL renegotiation.
This time, set the SSL3_FLAGS_ALLOW_UNSAFE_RENEGOTIATION flag on every
version before OpenSSL 0.9.8l. I can confirm that the option value (0x0010)
wasn't reused until OpenSSL 1.0.0beta3.
Andrew Lewman [Wed, 17 Feb 2010 18:43:33 +0000 (13:43 -0500)]
add in the apple incantations to get tls renegotiation to work.
Andrew Lewman [Wed, 17 Feb 2010 18:37:51 +0000 (13:37 -0500)]
fix the win32 build instructions for openssl.
Roger Dingledine [Tue, 16 Feb 2010 07:34:52 +0000 (02:34 -0500)]
Merge commit 'sebastian/oldstuff'
Conflicts:
ChangeLog
Sebastian Hahn [Sun, 7 Feb 2010 06:39:00 +0000 (07:39 +0100)]
Remove legacy files from main source distribution
The AUTHORS file was pretty outdated. Its contents moved onto the
people page. Design paper and roadmaps moved to the projects
directory in svn.
Nick Mathewson [Mon, 15 Feb 2010 21:47:47 +0000 (16:47 -0500)]
Build correctly with Libevent 2.0.4-alpha and later
Roger Dingledine [Sat, 13 Feb 2010 19:10:57 +0000 (14:10 -0500)]
give it a blurb, update the date
Nick Mathewson [Sat, 13 Feb 2010 04:06:05 +0000 (23:06 -0500)]
Remove the --enable-iphone option as needless.
On or-talk, Marco Bonetti reports that recent iPhone SDKs build
Tor fine without it.
Sebastian Hahn [Sat, 13 Feb 2010 00:19:26 +0000 (01:19 +0100)]
Remove the --enable-debug option for configure, it didn't do anything.
Roger Dingledine [Fri, 12 Feb 2010 19:31:08 +0000 (14:31 -0500)]
new dannenberg address; make moria2's demise official.
Roger Dingledine [Fri, 12 Feb 2010 17:35:40 +0000 (12:35 -0500)]
prepare for 0.2.1.23
Nick Mathewson [Thu, 11 Feb 2010 05:24:23 +0000 (00:24 -0500)]
Clean up whitespace
Andrew Lewman [Thu, 11 Feb 2010 03:50:23 +0000 (22:50 -0500)]
updated win32 build instructions with new mingw and msys versions.
Andrew Lewman [Thu, 11 Feb 2010 02:44:19 +0000 (21:44 -0500)]
clean up the documentation, break out sections for osx compiles.
Sebastian Hahn [Sun, 7 Feb 2010 04:18:50 +0000 (05:18 +0100)]
Add Windows version detection for Vista and 7
Vista is Windows 6.0, and 7 is Windows 6.1. Fixes bug 1097.
Also fix a coding style violation.
Nick Mathewson [Tue, 9 Feb 2010 18:08:49 +0000 (13:08 -0500)]
Add changelog for memcpy bug, with credit for "memcpyfail"
Nick Mathewson [Tue, 9 Feb 2010 17:58:25 +0000 (12:58 -0500)]
Merge remote branch 'origin/maint-0.2.1'
Nick Mathewson [Tue, 9 Feb 2010 17:50:54 +0000 (12:50 -0500)]
Merge remote branch 'sebastian/bug925'
Nick Mathewson [Tue, 9 Feb 2010 17:50:45 +0000 (12:50 -0500)]
Merge remote branch 'sebastian/bug1238'
Nick Mathewson [Tue, 9 Feb 2010 17:47:38 +0000 (12:47 -0500)]
Merge remote branch 'sebastian/exit-notice'
Nick Mathewson [Tue, 9 Feb 2010 17:32:10 +0000 (12:32 -0500)]
Make tor_addr_copy() conform to memcpy requirements
The src and dest of a memcpy() call aren't supposed to overlap,
but we were sometimes calling tor_addr_copy() as a no-op.
Also, tor_addr_assign was a redundant copy of tor_addr_copy(); this patch
removes it.
Sebastian Hahn [Fri, 5 Feb 2010 16:04:33 +0000 (17:04 +0100)]
Fix a whitespace violation
Sebastian Hahn [Fri, 5 Feb 2010 15:58:24 +0000 (16:58 +0100)]
Speed up the execution of exit_policy_is_general_exit_helper()
It isn't necessary to walk through all possible subnets when the policy
we're looking at doesn't touch that subnet.
Sebastian Hahn [Fri, 5 Feb 2010 10:59:15 +0000 (11:59 +0100)]
Another unit test for exit_policy_is_general_exit()
Sebastian Hahn [Mon, 8 Feb 2010 22:33:22 +0000 (23:33 +0100)]
Fix the path to the exit-notice file in torrc.sample
Also reword it slightly to reflect the fact that no packagers
ship the file.
Sebastian Hahn [Fri, 5 Feb 2010 12:40:31 +0000 (13:40 +0100)]
0/8 doesn't count as a /8 subnet towards an Exit flag
Sebastian Hahn [Sun, 31 Jan 2010 20:54:04 +0000 (21:54 +0100)]
Don't spam controllers with TOO_MANY_CONNECTIONS events
We implemented ratelimiting for warnings going into the logfile, but didn't
rate-limit controller events. Now both log warnings and controller events
are rate-limited.
Sebastian Hahn [Mon, 8 Feb 2010 14:35:34 +0000 (15:35 +0100)]
Don't use gethostbyname() in resolve_my_address()
Tor has tor_lookup_hostname(), which prefers ipv4 addresses automatically.
Bug 1244 occured because gethostbyname() returned an ipv6 address, which
Tor cannot handle currently. Fixes bug 1244; bugfix on 0.0.2pre25.
Reported by Mike Mestnik.
Nick Mathewson [Mon, 8 Feb 2010 03:34:08 +0000 (22:34 -0500)]
Merge commit 'origin/maint-0.2.1'