]>
git.ipfire.org Git - thirdparty/tor.git/log
Nick Mathewson [Thu, 21 Mar 2013 11:52:36 +0000 (07:52 -0400)]
Fix a small memory leak in the unit tests
Found by coverity; this is CID 992692.
Nick Mathewson [Thu, 21 Mar 2013 11:22:59 +0000 (07:22 -0400)]
The *default* guard lifetime is two months; the *min* is one
This caused an assertion failure when pruning guards.
Fixes bug #8553; bug not in any released Tor.
Nick Mathewson [Wed, 20 Mar 2013 18:47:13 +0000 (14:47 -0400)]
Merge remote-tracking branch 'public/bug8475_023' into maint-0.2.4
Andrea Shepard [Wed, 20 Mar 2013 18:16:41 +0000 (11:16 -0700)]
Set default minimum bandwidth for exit flag to zero for TestingTorNetwork
Andrea Shepard [Wed, 20 Mar 2013 18:03:18 +0000 (11:03 -0700)]
Fix an EOL@EOF in circuituse.c
Nick Mathewson [Wed, 20 Mar 2013 17:34:57 +0000 (13:34 -0400)]
Let testing networks override ABSOLUTE_MIN_VALUE_FOR_FAST_FLAG
This adds a new option to fix bug 8508 which broke chutney
networks. The bug was introduced by
317d16de .
Nick Mathewson [Wed, 20 Mar 2013 14:52:26 +0000 (10:52 -0400)]
Merge commit '
2f98bf5c9fac4dfd1bb07564ce08b13d1e330252 ' into maint-0.2.4
(This is the part of the Bug 8042 patch that warns about unsigned time_t)
Nick Mathewson [Wed, 20 Mar 2013 14:31:28 +0000 (10:31 -0400)]
Merge remote-tracking branch 'public/bug6304_v3' into maint-0.2.4
Conflicts:
src/or/circuitbuild.c
src/or/config.c
Nick Mathewson [Tue, 19 Mar 2013 20:43:00 +0000 (16:43 -0400)]
Merge branch 'bug7350_redux' into maint-0.2.4
Nick Mathewson [Tue, 19 Mar 2013 20:35:40 +0000 (16:35 -0400)]
Don't assert when writing a cell to a CLOSING connection.
Instead, drop the cell.
Fixes another case of bug 7350; bugfix on 0.2.4.4-alpha
Nick Mathewson [Tue, 19 Mar 2013 20:16:48 +0000 (16:16 -0400)]
Merge remote-tracking branch 'public/bug7164_diagnostic' into maint-0.2.4
Nick Mathewson [Tue, 19 Mar 2013 20:15:27 +0000 (16:15 -0400)]
Merge branch 'bug8240_v2_squashed' into maint-0.2.4
Conflicts:
doc/tor.1.txt
src/or/circuitbuild.c
src/or/config.c
src/or/or.h
Nick Mathewson [Tue, 12 Mar 2013 02:16:25 +0000 (22:16 -0400)]
Drop the minimum guard lifetime back down to one month
Mike believes that raising the default to 2 months with no way to lower
it may create horrible load-balancing issues.
Nick Mathewson [Tue, 12 Mar 2013 01:35:50 +0000 (21:35 -0400)]
Add support for days of the week to intervals
Nick Mathewson [Tue, 12 Mar 2013 01:25:37 +0000 (21:25 -0400)]
Document the GuardLifetime option
Nick Mathewson [Fri, 15 Feb 2013 22:24:13 +0000 (17:24 -0500)]
Make the guard lifetime configurable and adjustable via the consensus
Fixes 8240.
(Don't actually increase the default guard lifetime. It seems likely to
break too many things if done precipitiously.)
Nick Mathewson [Tue, 19 Mar 2013 19:32:17 +0000 (15:32 -0400)]
Merge remote-tracking branch 'public/bug7950' into maint-0.2.4
Nick Mathewson [Tue, 19 Mar 2013 19:11:47 +0000 (15:11 -0400)]
Merge remote-tracking branch 'public/bug7768' into maint-0.2.4
Nick Mathewson [Tue, 19 Mar 2013 19:11:34 +0000 (15:11 -0400)]
Use --test-commandline name in tor-fw-helper manpage
David Fifield [Wed, 13 Mar 2013 07:43:21 +0000 (00:43 -0700)]
Use option name --test-commandline in tor-fw-helper.
It was previously --Test in the help output and --test-commandline in
the getopt call. The man page already had --test.
(Originally by David, who resolved the tie in favor of "--test"; I
chose --test-commandline" instead so that nothing that depended
on it could break. -Nick)
Nick Mathewson [Tue, 19 Mar 2013 18:26:45 +0000 (14:26 -0400)]
Merge remote-tracking branch 'public/bug8002' into maint-0.2.4
Nick Mathewson [Tue, 19 Mar 2013 18:18:07 +0000 (14:18 -0400)]
Merge remote-tracking branch 'public/bug8031' into maint-0.2.4
Nick Mathewson [Tue, 19 Mar 2013 16:29:29 +0000 (12:29 -0400)]
Merge branch 'bug7582_v2' into maint-0.2.4
Nick Mathewson [Tue, 19 Mar 2013 16:29:08 +0000 (12:29 -0400)]
Free prepend_policy values in origin circuits
Nick Mathewson [Mon, 18 Mar 2013 20:36:25 +0000 (16:36 -0400)]
Merge remote-tracking branch 'public/bug6174' into maint-0.2.4
Nick Mathewson [Mon, 18 Mar 2013 20:33:47 +0000 (16:33 -0400)]
Merge remote-tracking branch 'public/bug8062' into maint-0.2.4
Nick Mathewson [Mon, 18 Mar 2013 19:56:55 +0000 (15:56 -0400)]
Merge branch 'bug7947' into maint-0.2.4
Nick Mathewson [Mon, 18 Mar 2013 19:55:55 +0000 (15:55 -0400)]
Handle TRUNCATE correctly if our next channel isn't done yet.
Patch from 'cypherpunks'. Fixes bug #7947. Bugfix on 0.0.7.1.
Nick Mathewson [Mon, 18 Mar 2013 19:45:49 +0000 (15:45 -0400)]
Merge remote-tracking branch 'public/bug6164' into maint-0.2.4
Nick Mathewson [Mon, 18 Mar 2013 19:44:23 +0000 (15:44 -0400)]
Fix another case of bug 8206; patch from flupzor
Nick Mathewson [Mon, 18 Mar 2013 19:40:50 +0000 (15:40 -0400)]
Merge remote-tracking branch 'public/bug6673' into maint-0.2.4
Nick Mathewson [Mon, 18 Mar 2013 19:39:11 +0000 (15:39 -0400)]
Fix some wide lines
Nick Mathewson [Mon, 18 Mar 2013 19:28:39 +0000 (15:28 -0400)]
Merge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4
Conflicts:
src/test/test_addr.c
Nick Mathewson [Mon, 18 Mar 2013 19:27:50 +0000 (15:27 -0400)]
Merge remote-tracking branch 'public/bug8377' into maint-0.2.3
Nick Mathewson [Mon, 18 Mar 2013 19:17:11 +0000 (15:17 -0400)]
Merge remote-tracking branch 'andrea/bug8435' into maint-0.2.4
Nick Mathewson [Mon, 18 Mar 2013 19:13:59 +0000 (15:13 -0400)]
Make stream events for RESOLVE lookups more consistent
Fixes 8203; patch by Desoxy
Nick Mathewson [Mon, 18 Mar 2013 19:07:02 +0000 (15:07 -0400)]
Merge remote-tracking branch 'public/bug8290' into maint-0.2.4
Andrea Shepard [Mon, 18 Mar 2013 19:04:41 +0000 (12:04 -0700)]
Improve comment for routers_with_measured_bw static var in dirserv.c
Andrea Shepard [Mon, 18 Mar 2013 18:58:30 +0000 (11:58 -0700)]
Improve comment on router_counts_toward_thresholds()
Andrea Shepard [Mon, 18 Mar 2013 18:56:42 +0000 (11:56 -0700)]
Add dirserv_has_measured_bw() predicate wrapper for dirserv_query_measured_bw_cache()
Nick Mathewson [Mon, 18 Mar 2013 18:50:01 +0000 (14:50 -0400)]
Merge remote-tracking branch 'public/no_dup_guards' into maint-0.2.4
Nick Mathewson [Mon, 18 Mar 2013 18:31:50 +0000 (14:31 -0400)]
Merge remote-tracking branch 'public/bug8059' into maint-0.2.4
Nick Mathewson [Mon, 18 Mar 2013 18:30:11 +0000 (14:30 -0400)]
Remove an unused local variable.
Nick Mathewson [Mon, 18 Mar 2013 18:29:12 +0000 (14:29 -0400)]
Merge branch 'bug8206_squashed' into maint-0.2.4
Nick Mathewson [Tue, 12 Mar 2013 00:58:28 +0000 (20:58 -0400)]
Check return values from fcntl and setsockopt
(Based on a patch from flupzor; bug #8206)
Nick Mathewson [Wed, 13 Mar 2013 16:47:48 +0000 (12:47 -0400)]
Check for 0.2.4.8, not 0.2.4.7, to determine EXTEND2 support
Fixes bug 8464; bugfix on
b2863739 in 0.2.4.8-alpha
Andrea Shepard [Mon, 18 Mar 2013 18:15:21 +0000 (11:15 -0700)]
Ignore advertised bandwidths if we have enough measured bandwidths available
Nick Mathewson [Fri, 15 Mar 2013 16:38:11 +0000 (12:38 -0400)]
Merge remote-tracking branch 'public/bug8180_023_v2' into maint-0.2.4
Nick Mathewson [Fri, 15 Mar 2013 14:42:17 +0000 (10:42 -0400)]
Upgrade the warn for EntryNodes without UseEntryGuards to an error
fixes bug 8180
Nick Mathewson [Fri, 15 Mar 2013 16:17:23 +0000 (12:17 -0400)]
Merge remote-tracking branch 'public/unused_stuff' into maint-0.2.4
Nick Mathewson [Fri, 15 Mar 2013 16:11:38 +0000 (12:11 -0400)]
Fix some basic socket issues with tor-fw-helper-natpmp on windows
This isn't going to be the last of these issues, but we might as
well take the fixes as we find them.
Patch from Gisle Vanem, fixes bug 7280.
Nick Mathewson [Fri, 15 Mar 2013 15:25:45 +0000 (11:25 -0400)]
Remove incentives.txt from tor git; putting it into torspec.
David Fifield [Thu, 20 Dec 2012 20:40:50 +0000 (12:40 -0800)]
Fix brackets in tor-fw-helper help output.
Change nesting from [(]) to [()]. Formerly it made it look to me at
first glance that "internal port" was optional.
[Trivial change; fixes #7767 --nickm]
Nick Mathewson [Fri, 15 Mar 2013 15:17:08 +0000 (11:17 -0400)]
Improve asciidoc-helper's suggestion of what to install
Fixes bug #7766.
Patch by David Fifield, revised by Peter Palfrader.
Nick Mathewson [Fri, 15 Mar 2013 14:48:33 +0000 (10:48 -0400)]
Be explicit that we want not only nacl but nacl-with-a-fast-curve25519
Resolves the user experience part of #8014.
Nick Mathewson [Thu, 14 Mar 2013 16:06:03 +0000 (12:06 -0400)]
Make circuit_purpose_to_string handle CIRCUIT_PURPOSE_PATH_BIAS_TESTING
Nick Mathewson [Thu, 14 Mar 2013 15:19:08 +0000 (11:19 -0400)]
Apply ClientDNSRejectInternalAddresses to IPv6 in RESOLVED cells
Fixes bug 8475; bugfix on 0.2.0.7-alpha.
Nick Mathewson [Wed, 13 Mar 2013 14:42:58 +0000 (10:42 -0400)]
Log fname:lineno in log messages for #7164
This should help us track down #7164 at last.
Nick Mathewson [Wed, 13 Mar 2013 13:17:43 +0000 (09:17 -0400)]
Fix the warning about LearnCircuitBuildTimeout && !CircuitBuildTimeout
This is for bug 6304.
Add a changes file too
Nick Mathewson [Wed, 13 Mar 2013 13:11:31 +0000 (09:11 -0400)]
Simplify the logic of circuit_build_times_get_initial_timeout.
Nick Mathewson [Tue, 12 Mar 2013 03:37:47 +0000 (23:37 -0400)]
On END_REASON_EXITPOLICY, mark circuit as unusable for that address.
Also, don't call the exit node 'reject *' unless our decision to pick
that node was based on a non-summarized version of that node's exit
policy.
rransom and arma came up with the ideas for this fix.
Fix for 7582; the summary-related part is a bugfix on 0.2.3.2-alpha.
Nick Mathewson [Mon, 11 Mar 2013 21:57:27 +0000 (17:57 -0400)]
Fix option names in tor-fw-helper manpage
fix for bug 7768
Nick Mathewson [Mon, 11 Mar 2013 20:29:06 +0000 (16:29 -0400)]
Look at the right variable when warning about signed size_t.
In
81d69f4c2d8a451 (0.2.21-alpha) we added a compile-time check for
a (totally broken) signed size_t. In
0e597471af (not yet released)
I switched to a better configure-time check, which stored its output
in a different variable. I didn't change the code which looked at
the output, however.
This bug is not in any released version of Tor, and would not affect
anybody with a working Tor.
Nick Mathewson [Mon, 11 Mar 2013 19:33:44 +0000 (15:33 -0400)]
Warn at configure time when time_t is unsigned
Inspired by #8042.
As far as I know, OpenVMS is the only place you're likely to hit an
unsigned time_t these days, and Tor's VMS support
is... lacking. Still worth letting people know about it, though.
Nick Mathewson [Mon, 11 Mar 2013 18:52:56 +0000 (14:52 -0400)]
Another possible diagnostic for 8031.
This time, I'm checking whether our calculated offset matches our
real offset, in each case, as we go along. I don't think this is
the bug, but it can't hurt to check.
Nick Mathewson [Mon, 11 Mar 2013 18:50:41 +0000 (14:50 -0400)]
Check more error codes when writing microdescriptors.
Possible partial fix, or diagnosis tool, for bug 8031.
Nick Mathewson [Mon, 11 Mar 2013 18:37:44 +0000 (14:37 -0400)]
Use fds, not stdio, to manage microdescriptor files
This is part of an attempt to mitigate 8031.
Nick Mathewson [Mon, 11 Mar 2013 17:32:16 +0000 (13:32 -0400)]
Merge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4
Nick Mathewson [Mon, 11 Mar 2013 17:32:01 +0000 (13:32 -0400)]
Merge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3
Nick Mathewson [Mon, 11 Mar 2013 17:23:10 +0000 (13:23 -0400)]
Give an #error when we want threads and OpenSSL has disabled threads
Fixes ticket 6673.
Nick Mathewson [Mon, 11 Mar 2013 16:34:14 +0000 (12:34 -0400)]
Increase link_proto field to 2 bytes
This should have been 2 bytes all along, since version numbers can
be 16 bits long. This isn't a live bug, since the call to
is_or_protocol_version_known in channel_tls_process_versions_cell
will reject any version number not in the range 1..4. Still, let's
fix this before we accidentally start supporting version 256.
Reported pseudonymously. Fixes bug 8062; bugfix on 0.2.0.10-alpha --
specifically, on commit
6fcda529 , where during development I
increased the width of a version to 16 bits without changing the
type of link_proto.
Nick Mathewson [Mon, 11 Mar 2013 16:29:28 +0000 (12:29 -0400)]
Fix a framing bug when reading versions from a versions cell.
Our ++ should have been += 2. This means that we'd accept version
numbers even when they started at an odd position.
This bug should be harmless in practice for so long as every version
number we allow begins with a 0 byte, but if we ever have a version
number starting with 1, 2, 3, or 4, there will be trouble here.
Fix for bug 8059, reported pseudonymously. Bugfix on 0.2.0.10-alpha
-- specifically, commit
6fcda529 , where during development I
increased the width of a version to 16 bits without changing the
loop step.
Roger Dingledine [Sun, 10 Mar 2013 20:28:28 +0000 (16:28 -0400)]
start part-way through the ssl cert lifetime
also, snap the start time and end time to a day boundary, since most
certs in the wild seem to do this.
Roger Dingledine [Sat, 9 Mar 2013 22:16:11 +0000 (17:16 -0500)]
randomize SSLKeyLifetime by default
resolves ticket 8443.
Roger Dingledine [Sat, 9 Mar 2013 21:42:35 +0000 (16:42 -0500)]
parameterize SSLKeyLifetime
no actual changes in behavior yet
Nick Mathewson [Mon, 11 Mar 2013 03:01:58 +0000 (23:01 -0400)]
Merge remote-tracking branch 'arma/bug6783_big_hammer' into maint-0.2.4
Benjamin Kerensa [Mon, 11 Mar 2013 01:45:23 +0000 (18:45 -0700)]
Fix typos in a few log messages
Roger Dingledine [Mon, 11 Mar 2013 00:40:15 +0000 (20:40 -0400)]
set DisableV2DirectoryInfo_ off by default
since it's only enableable by authorities, nobody else would be able
to start their tor
Nick Mathewson [Wed, 6 Mar 2013 20:19:04 +0000 (15:19 -0500)]
Tweak bug6783 patch.
Nick Mathewson [Wed, 28 Nov 2012 16:09:37 +0000 (11:09 -0500)]
Add a DisableV2DirectoryInfo_ option to 404 all v2 ns requests
I have no idea whether b0rken clients will DoS the network if the v2
authorities all turn this on or not. It's experimental. See #6783 for
a description of how to test it more or less safely, and please be
careful!
Nick Mathewson [Sun, 10 Mar 2013 23:52:43 +0000 (19:52 -0400)]
Merge branch 'bug8447_squashed' into maint-0.2.4
Nick Mathewson [Sun, 10 Mar 2013 12:32:58 +0000 (08:32 -0400)]
Fix 8447: use %u to format circid_t.
Now that circid_t is 4 bytes long, the default integer promotions will
leave it alone when sizeof(int) == 4, which will leave us formatting an
unsigned as an int. That's technically undefined behavior.
Fixes bug 8447 on
bfffc1f0fc7616a25c32da2eb759dade4651659e . Bug not
in any released Tor.
Nick Mathewson [Sun, 10 Mar 2013 00:45:17 +0000 (19:45 -0500)]
Fix to test for bug8444 / 6034
Andrea Shepard [Thu, 7 Mar 2013 23:59:30 +0000 (15:59 -0800)]
Better comment for dirserv_query_measured_bw_cache()
Andrea Shepard [Thu, 7 Mar 2013 23:55:01 +0000 (15:55 -0800)]
Use DIGESTMAP_FOREACH_MODIFY in dirserv_expire_measured_bw_cache() for concision
Andrea Shepard [Thu, 7 Mar 2013 23:41:22 +0000 (15:41 -0800)]
Add unit test for dirserv measured bandwidth cache
Karsten Loesing [Thu, 7 Mar 2013 19:58:31 +0000 (20:58 +0100)]
Update to the March 2013 GeoIP database.
Andrea Shepard [Thu, 7 Mar 2013 13:10:54 +0000 (05:10 -0800)]
Make sure expiry check in dirserv_expire_measured_bw_cache() works if time_t is unsigned
Andrea Shepard [Thu, 7 Mar 2013 13:05:56 +0000 (05:05 -0800)]
More constness in dirserv.c
Andrea Shepard [Thu, 7 Mar 2013 11:42:14 +0000 (03:42 -0800)]
Make dirserv_cache_measured_bw() use a const measured_bw_line_t *
Andrea Shepard [Tue, 5 Mar 2013 21:11:43 +0000 (13:11 -0800)]
Call dirserv_clear_measured_bw_cache() from dirserv_free_all()
Nick Mathewson [Fri, 1 Mar 2013 17:40:41 +0000 (12:40 -0500)]
Add unit test for tor_addr_is_loopback
Nick Mathewson [Fri, 1 Mar 2013 17:22:57 +0000 (12:22 -0500)]
Make sure that [::1] is recognized as a private address
Fixes bug 8377; bugfix on 0.2.1.3-alpha.
Andrea Shepard [Fri, 1 Mar 2013 09:59:25 +0000 (01:59 -0800)]
Correctly set entry->is_dir_cache when adding an entry guard for the first time
(Second part of a bug8367 fix. -NM)
Nick Mathewson [Thu, 28 Feb 2013 22:20:46 +0000 (17:20 -0500)]
Fix bootstrapping with bridges by making is_dir_cache is set on them.
This fixes bug 8367, introduced in
d7089ff228227259137b5a8b . Not in
any released Tor.
Andrea Shepard [Thu, 28 Feb 2013 03:43:50 +0000 (19:43 -0800)]
Prefer measured bandwidths over advertised when computing things for votes on a dirauth
Nick Mathewson [Thu, 28 Feb 2013 00:38:32 +0000 (19:38 -0500)]
Remove some lingering tsocks cruft.
Now the manpages no longer refer to tsocks or tsocks.conf, and we no
longer have or ship a tor-tsocks.conf. The only remaining instances
of "tsocks" in our repository are old ChangeLog and ReleaseNotes
entries, and the torify script saying that it doesn't support tsocks.
Fixes bug 8290.
Roger Dingledine [Mon, 25 Feb 2013 14:19:04 +0000 (09:19 -0500)]
update the in-progress bandwidth requirements for authorities
Nick Mathewson [Mon, 25 Feb 2013 08:24:53 +0000 (03:24 -0500)]
Fix a comment in tor_main.c
We don't use subversion or src/*/makefile.am any longer
Nick Mathewson [Sun, 24 Feb 2013 04:38:43 +0000 (23:38 -0500)]
Remove some functions which were unused except for their tests