]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
12 years agoSeparate cpuworker queues by handshake type
Roger Dingledine [Sun, 1 Sep 2013 03:35:58 +0000 (23:35 -0400)] 
Separate cpuworker queues by handshake type

Now we prioritize ntor create cells over tap create cells.

Starts to address ticket 9574.

12 years agoMerge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4
Nick Mathewson [Wed, 4 Sep 2013 20:08:02 +0000 (16:08 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4

Conflicts:
src/or/circuitbuild.c

12 years agoMerge branch 'bug9671_023' into maint-0.2.3
Nick Mathewson [Wed, 4 Sep 2013 20:04:47 +0000 (16:04 -0400)] 
Merge branch 'bug9671_023' into maint-0.2.3

12 years agouse !cbt_disabled in place of LearnCBT to avoid needless circs
Nick Mathewson [Wed, 4 Sep 2013 19:51:13 +0000 (15:51 -0400)] 
use !cbt_disabled in place of LearnCBT to avoid needless circs

This would make us do testing circuits "even when cbt is disabled by
consensus, or when we're a directory authority, or when we've failed
to write cbt history to our state file lately." (Roger's words.)

This is a fix for 9671 and an improvement in our fix for 5049.
The original misbehavior was in 0.2.2.14-alpha; the incomplete
fix was in 0.2.3.17-beta.

12 years agoMerge branch 'bug9400_024_squashed' into maint-0.2.4
Nick Mathewson [Tue, 3 Sep 2013 19:38:54 +0000 (15:38 -0400)] 
Merge branch 'bug9400_024_squashed' into maint-0.2.4

12 years agoAvoid a double-close on one failing case of the socketpair replacement code
Nick Mathewson [Tue, 6 Aug 2013 20:41:57 +0000 (16:41 -0400)] 
Avoid a double-close on one failing case of the socketpair replacement code

Fix for bug 9400, spotted by coverity. Bug introduced in revision 2cb4f7a4
(subversion revision r389).

12 years agoMerge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4
Nick Mathewson [Sun, 25 Aug 2013 04:33:10 +0000 (00:33 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4

(Using "ours" strategy to avoid taking 9546 fix in 0.2.3; we just
merged our own into 0.2.4)

12 years agoMerge remote-tracking branch 'public/bug9546_023_v2' into maint-0.2.3
Nick Mathewson [Sun, 25 Aug 2013 04:32:27 +0000 (00:32 -0400)] 
Merge remote-tracking branch 'public/bug9546_023_v2' into maint-0.2.3

12 years agoMerge remote-tracking branch 'public/bug9546_v2' into maint-0.2.4
Nick Mathewson [Sun, 25 Aug 2013 04:31:51 +0000 (00:31 -0400)] 
Merge remote-tracking branch 'public/bug9546_v2' into maint-0.2.4

12 years agoMerge remote-tracking branch 'public/bug9366' into maint-0.2.4
Nick Mathewson [Sun, 25 Aug 2013 04:29:49 +0000 (00:29 -0400)] 
Merge remote-tracking branch 'public/bug9366' into maint-0.2.4

12 years agoMerge remote-tracking branch 'public/bug9543' into maint-0.2.4
Nick Mathewson [Sun, 25 Aug 2013 04:29:06 +0000 (00:29 -0400)] 
Merge remote-tracking branch 'public/bug9543' into maint-0.2.4

12 years agoMerge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4
Nick Mathewson [Fri, 23 Aug 2013 00:47:10 +0000 (20:47 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4

12 years agoMerge remote-tracking branch 'public/bug9564' into maint-0.2.3
Nick Mathewson [Fri, 23 Aug 2013 00:46:40 +0000 (20:46 -0400)] 
Merge remote-tracking branch 'public/bug9564' into maint-0.2.3

12 years agoReplace return with continue in update_consensus_networkstatus_downloads
Nick Mathewson [Thu, 22 Aug 2013 14:00:37 +0000 (10:00 -0400)] 
Replace return with continue in update_consensus_networkstatus_downloads

Fix for bug 9564; bugfix on 0.2.3.14-alpha.

12 years agoAdd a 30-day maximum on user-supplied MaxCircuitDirtiness
Nick Mathewson [Wed, 21 Aug 2013 15:35:00 +0000 (11:35 -0400)] 
Add a 30-day maximum on user-supplied MaxCircuitDirtiness

Fix for bug 9543.

12 years agoMake bridges send AUTH_CHALLENGE cells
Nick Mathewson [Wed, 21 Aug 2013 14:10:35 +0000 (10:10 -0400)] 
Make bridges send AUTH_CHALLENGE cells

The spec requires them to do so, and not doing so creates a situation
where they can't send-test because relays won't extend to them because
of the other part of bug 9546.

Fixes bug 9546; bugfix on 0.2.3.6-alpha.

12 years agoMake bridges send AUTH_CHALLENGE cells
Nick Mathewson [Wed, 21 Aug 2013 14:10:35 +0000 (10:10 -0400)] 
Make bridges send AUTH_CHALLENGE cells

The spec requires them to do so, and not doing so creates a situation
where they can't send-test because relays won't extend to them because
of the other part of bug 9546.

Fixes bug 9546; bugfix on 0.2.3.6-alpha.

12 years agoSend NETINFO on receiving a NETINFO if we have not yet sent one.
Nick Mathewson [Tue, 20 Aug 2013 18:52:56 +0000 (14:52 -0400)] 
Send NETINFO on receiving a NETINFO if we have not yet sent one.

(Backport to Tor 0.2.3)

Relays previously, when initiating a connection, would only send a
NETINFO after sending an AUTHENTICATE.  But bridges, when receiving a
connection, would never send AUTH_CHALLENGE.  So relays wouldn't
AUTHENTICATE, and wouldn't NETINFO, and then bridges would be
surprised to be receiving CREATE cells on a non-open circuit.

Fixes bug 9546.

12 years agoSend NETINFO on receiving a NETINFO if we have not yet sent one.
Nick Mathewson [Tue, 20 Aug 2013 18:52:56 +0000 (14:52 -0400)] 
Send NETINFO on receiving a NETINFO if we have not yet sent one.

Relays previously, when initiating a connection, would only send a
NETINFO after sending an AUTHENTICATE.  But bridges, when receiving a
connection, would never send AUTH_CHALLENGE.  So relays wouldn't
AUTHENTICATE, and wouldn't NETINFO, and then bridges would be
surprised to be receiving CREATE cells on a non-open circuit.

Fixes bug 9546.

12 years agoDocument the correct loglevel for the heartbeat message
Nick Mathewson [Sat, 17 Aug 2013 01:58:50 +0000 (21:58 -0400)] 
Document the correct loglevel for the heartbeat message

12 years agoMerge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4
Nick Mathewson [Mon, 12 Aug 2013 13:45:07 +0000 (09:45 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4

12 years agoMerge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3
Nick Mathewson [Mon, 12 Aug 2013 13:44:36 +0000 (09:44 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3

12 years agoUpdate to the August 2013 GeoIP database.
Karsten Loesing [Mon, 12 Aug 2013 13:26:22 +0000 (15:26 +0200)] 
Update to the August 2013 GeoIP database.

12 years agoFix an uninitialized-read when parsing v3 introduction requests.
Nick Mathewson [Mon, 5 Aug 2013 15:40:33 +0000 (11:40 -0400)] 
Fix an uninitialized-read when parsing v3 introduction requests.

Fortunately, later checks mean that uninitialized data can't get sent
to the network by this bug.  Unfortunately, reading uninitialized heap
*can* (in some cases, with some allocators) cause a crash if you get
unlucky and go off the end of a page.

Found by asn.  Bugfix on 0.2.4.1-alpha.

12 years agoUse SOCKET_OK/TOR_INVALID_SOCKET in socketpair replacement code
Nick Mathewson [Tue, 6 Aug 2013 20:41:53 +0000 (16:41 -0400)] 
Use SOCKET_OK/TOR_INVALID_SOCKET in socketpair replacement code

12 years agoDon't allow all ORPort values to be NoAdvertise
Nick Mathewson [Mon, 5 Aug 2013 16:14:48 +0000 (12:14 -0400)] 
Don't allow all ORPort values to be NoAdvertise

Fix for bug #9366

12 years agoMerge remote-tracking branch 'arma/bug9354' into maint-0.2.4
Nick Mathewson [Thu, 1 Aug 2013 01:48:48 +0000 (21:48 -0400)] 
Merge remote-tracking branch 'arma/bug9354' into maint-0.2.4

12 years agoFix invalid-read when a managed proxy configuration fails.
George Kadianakis [Thu, 18 Jul 2013 13:01:49 +0000 (16:01 +0300)] 
Fix invalid-read when a managed proxy configuration fails.

12 years agoNumDirectoryGuards now tracks NumEntryGuards by default
Roger Dingledine [Tue, 30 Jul 2013 16:05:39 +0000 (12:05 -0400)] 
NumDirectoryGuards now tracks NumEntryGuards by default

Now a user who changes only NumEntryGuards will get the behavior she
expects. Fixes bug 9354; bugfix on 0.2.4.8-alpha.

12 years agoMerge branch 'bug9337' into maint-0.2.4
Nick Mathewson [Fri, 26 Jul 2013 13:41:35 +0000 (15:41 +0200)] 
Merge branch 'bug9337' into maint-0.2.4

12 years agoAvoid assertion failure on unexepcted address family in DNS reply.
Nick Mathewson [Fri, 26 Jul 2013 13:33:46 +0000 (15:33 +0200)] 
Avoid assertion failure on unexepcted address family in DNS reply.

Fixes bug 9337; bugfix on 0.2.4.7-alpha.

12 years agoFix bug9309, and n_noncanonical count/continue code
Nick Mathewson [Tue, 23 Jul 2013 09:52:10 +0000 (11:52 +0200)] 
Fix bug9309, and n_noncanonical count/continue code

When we moved channel_matches_target_addr_for_extend() into a separate
function, its sense was inverted from what one might expect, and we
didn't have a ! in one place where we should have.

Found by skruffy.

12 years agofix typo
Roger Dingledine [Fri, 19 Jul 2013 03:35:20 +0000 (23:35 -0400)] 
fix typo

12 years agoMerge remote-tracking branch 'public/bug9295_023' into maint-0.2.4
Nick Mathewson [Fri, 19 Jul 2013 03:17:05 +0000 (23:17 -0400)] 
Merge remote-tracking branch 'public/bug9295_023' into maint-0.2.4

12 years agoFix for bug 9295: Don't crash when running --hash-password.
Nick Mathewson [Fri, 19 Jul 2013 03:15:46 +0000 (23:15 -0400)] 
Fix for bug 9295: Don't crash when running --hash-password.

Fix on 0.2.4.15-rc; I'm doing this branch against 0.2.3, since we're
considering #9122 for an 0.2.3 backport, and if we do, we should merge
this too.

12 years agotmp
Nick Mathewson [Fri, 19 Jul 2013 03:08:36 +0000 (23:08 -0400)] 
tmp

12 years agoRe-do a cast in order to make old buggy freebsd gcc happy
Nick Mathewson [Tue, 16 Jul 2013 18:48:12 +0000 (14:48 -0400)] 
Re-do a cast in order to make old buggy freebsd gcc happy

Fix for #9254.  Bugfix on 0.2.4.14-alpha.

This is not actually a bug in the Tor code.

12 years agoMerge branch 'bug9200' into maint-0.2.4
Nick Mathewson [Mon, 8 Jul 2013 15:35:25 +0000 (11:35 -0400)] 
Merge branch 'bug9200' into maint-0.2.4

12 years agoAdd a comment and a check for why flag indices will be <= 63
Nick Mathewson [Mon, 8 Jul 2013 15:35:06 +0000 (11:35 -0400)] 
Add a comment and a check for why flag indices will be <= 63

12 years agoMerge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4
Nick Mathewson [Mon, 8 Jul 2013 13:22:49 +0000 (09:22 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4

12 years agoMerge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3
Nick Mathewson [Mon, 8 Jul 2013 13:22:00 +0000 (09:22 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3

12 years agoUpdate to the July 2013 GeoIP database.
Karsten Loesing [Mon, 8 Jul 2013 08:21:28 +0000 (10:21 +0200)] 
Update to the July 2013 GeoIP database.

12 years agoFIx undefined behavior in dirvote.c
Nick Mathewson [Wed, 3 Jul 2013 16:01:37 +0000 (12:01 -0400)] 
FIx undefined behavior in dirvote.c

 Fix a bug in the voting algorithm that could yield incorrect results
 when a non-naming authority declared too many flags. Fixes bug 9200;
 bugfix on 0.2.0.3-alpha.

Found by coverity scan.

12 years agoMerge branch 'bug9147' into maint-0.2.4
Nick Mathewson [Sat, 29 Jun 2013 07:50:37 +0000 (03:50 -0400)] 
Merge branch 'bug9147' into maint-0.2.4

12 years agoGive a warning when bufferevents are enabled.
Nick Mathewson [Sat, 29 Jun 2013 07:45:40 +0000 (03:45 -0400)] 
Give a warning when bufferevents are enabled.

Ticket 9147.

12 years agoFix bug 9122: don't allow newdefaultoptions to be NULL
Nick Mathewson [Mon, 24 Jun 2013 13:56:25 +0000 (09:56 -0400)] 
Fix bug 9122: don't allow newdefaultoptions to be NULL

(This caused a crash that was reported as bug 9122, but the underlying
behavior has been wrong for a while.)

Fix on 0.2.3.9-alpha.

12 years agoMerge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4
Nick Mathewson [Tue, 18 Jun 2013 18:45:29 +0000 (14:45 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4

12 years agoFix some problems with the bug9002 fix.
Nick Mathewson [Tue, 18 Jun 2013 15:54:57 +0000 (11:54 -0400)] 
Fix some problems with the bug9002 fix.

Fixes bug 9090; bug not in any released Tor.

12 years agoTweak bug9063_redux patch: {n_p}_chan_cells, not {n,p}_conn_cells
Nick Mathewson [Tue, 18 Jun 2013 14:25:10 +0000 (10:25 -0400)] 
Tweak bug9063_redux patch: {n_p}_chan_cells, not {n,p}_conn_cells

12 years agoMerge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4
Nick Mathewson [Tue, 18 Jun 2013 14:23:03 +0000 (10:23 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4

Conflicts:
src/or/config.c
src/or/relay.c

12 years agoMerge branch 'bug9063_redux_023_squashed' into maint-0.2.3
Nick Mathewson [Tue, 18 Jun 2013 14:16:47 +0000 (10:16 -0400)] 
Merge branch 'bug9063_redux_023_squashed' into maint-0.2.3

12 years agoImplement a real OOM-killer for too-long circuit queues.
Nick Mathewson [Sun, 16 Jun 2013 13:55:44 +0000 (09:55 -0400)] 
Implement a real OOM-killer for too-long circuit queues.

This implements "algorithm 1" from my discussion of bug #9072: on OOM,
find the circuits with the longest queues, and kill them.  It's also a
fix for #9063 -- without the side-effects of bug #9072.

The memory bounds aren't perfect here, and you need to be sure to
allow some slack for the rest of Tor's usage.

This isn't a perfect fix; the rest of the solutions I describe on
codeable.

12 years agoLimit hidden service descriptors to at most 10 guard nodes.
Nick Mathewson [Mon, 17 Jun 2013 00:23:33 +0000 (20:23 -0400)] 
Limit hidden service descriptors to at most 10 guard nodes.

Fixes bug 9002; bugfix on 0.1.1.11-alpha (which introduced guard
nodes), or on 0.0.6pre1 (which introduced hidden services).

12 years agoMerge branch 'bug9072-023' into bug9072-024
Andrea Shepard [Sat, 15 Jun 2013 09:20:19 +0000 (02:20 -0700)] 
Merge branch 'bug9072-023' into bug9072-024

12 years agoDisable middle relay queue overfill detection code due to possible guard discovery...
Andrea Shepard [Sat, 15 Jun 2013 09:16:00 +0000 (02:16 -0700)] 
Disable middle relay queue overfill detection code due to possible guard discovery attack

12 years agoMerge branch 'circuit_queue_cap-0.2.4-squashed' into maint-0.2.4
Nick Mathewson [Fri, 14 Jun 2013 05:45:46 +0000 (01:45 -0400)] 
Merge branch 'circuit_queue_cap-0.2.4-squashed' into maint-0.2.4

12 years agoMerge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4
Nick Mathewson [Fri, 14 Jun 2013 05:45:35 +0000 (01:45 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4

Using "ours" strategy to avoid taking changes.

12 years agoMerge branch 'circuit_queue_cap-0.2.3-squashed' into maint-0.2.3
Nick Mathewson [Fri, 14 Jun 2013 05:44:46 +0000 (01:44 -0400)] 
Merge branch 'circuit_queue_cap-0.2.3-squashed' into maint-0.2.3

12 years agoIncrease the limit so leaky pipe might work
Nick Mathewson [Fri, 14 Jun 2013 05:37:22 +0000 (01:37 -0400)] 
Increase the limit so leaky pipe might work

12 years agoIncrease the limit so leaky pipe might work
Nick Mathewson [Fri, 14 Jun 2013 05:35:21 +0000 (01:35 -0400)] 
Increase the limit so leaky pipe might work

12 years agoDon't queue more cells as a middle relay than the spec allows to be in flight
Andrea Shepard [Fri, 14 Jun 2013 03:49:01 +0000 (20:49 -0700)] 
Don't queue more cells as a middle relay than the spec allows to be in flight

12 years agoDon't queue more cells as a middle relay than the spec allows to be in flight
Andrea Shepard [Fri, 14 Jun 2013 03:41:00 +0000 (20:41 -0700)] 
Don't queue more cells as a middle relay than the spec allows to be in flight

12 years agoMerge branch 'bug9047' into maint-0.2.4
Nick Mathewson [Fri, 14 Jun 2013 01:58:36 +0000 (21:58 -0400)] 
Merge branch 'bug9047' into maint-0.2.4

12 years agoDefine SEEK_SET for platforms that lack it.
Nick Mathewson [Fri, 14 Jun 2013 01:56:35 +0000 (21:56 -0400)] 
Define SEEK_SET for platforms that lack it.

12 years agoIf we write the annotation but not the microdescriptor, rewind.
Nick Mathewson [Thu, 13 Jun 2013 16:29:01 +0000 (12:29 -0400)] 
If we write the annotation but not the microdescriptor, rewind.

This fixes bug 9047 (and some parts of 9031, 8922, 8883 that weren't
fixed in 8822).  Bugfix on 0.2.2.6-alpha.

12 years agoMerge remote-tracking branch 'public/bug8822' into maint-0.2.4
Nick Mathewson [Thu, 13 Jun 2013 13:40:32 +0000 (09:40 -0400)] 
Merge remote-tracking branch 'public/bug8822' into maint-0.2.4

12 years agoFix the biggest errors in doc/HACKING
Nick Mathewson [Thu, 13 Jun 2013 01:27:30 +0000 (21:27 -0400)] 
Fix the biggest errors in doc/HACKING

We can wait for 0.2.5 for a full rewrite.  #8964

12 years agoRemove various outdated documents.
Nick Mathewson [Thu, 13 Jun 2013 01:07:27 +0000 (21:07 -0400)] 
Remove various outdated documents.

doc/TODO and doc/spec/README were placeholders to tell people where to
look for the real TODO and README stuff -- we replaced them years ago,
though.

authority-policy, v3-authority-howto, and torel-design.txt belong in
torspec.  I'm putting them in attic there since I think they may be in
large part obsolete, but someone can rescue them if they're not.

translations.txt is outdated, and refers to lots of programs other
than Tor.  We have much better translation resources on the website
now.

tor-win32-mingw-creation.txt is pending review of a revised version
for 0.2.5 (see ticket #4520), but there's no reason to ship this one
while we're waiting for an accurate version.

the tor-rpm-creation.txt isn't obsolete AFAIK, but it belongs in
doc/contrib if anywhere.

Resolves bug #8965.

12 years agoMerge remote-tracking branch 'andrea/bug8639_v3' into maint-0.2.4
Nick Mathewson [Thu, 13 Jun 2013 00:55:35 +0000 (20:55 -0400)] 
Merge remote-tracking branch 'andrea/bug8639_v3' into maint-0.2.4

12 years agoMake all consumers of microdesc_t.body tolerate NULL
Nick Mathewson [Wed, 12 Jun 2013 16:12:11 +0000 (12:12 -0400)] 
Make all consumers of microdesc_t.body tolerate NULL

This is another fix to try to mitigate recurrences of 8031/8822.

12 years agoUnmap the microdescriptor cache before replacing it.
Nick Mathewson [Wed, 12 Jun 2013 16:04:33 +0000 (12:04 -0400)] 
Unmap the microdescriptor cache before replacing it.

This is a reprise of the fix in bdff7e3299d786905c1f6 reintroduced
that bug.  Briefly: windows doesn't seem to like deleting a mapped
file.  I tried adding the PROT_SHARED_DELETE flag to the createfile
all, but that didn't actually fix this issue.  Fortunately, the unit
test I added in 4f4fc63fea0589a4fa03f3859dc27860cdde75af should
prevent us from making this particular screw-up again.

This patch also tries to limit the crash potential of a failure to
write by a little bit, although it could do a better job of retaining
microdescriptor bodies.

Fix for bug 8822, bugfix on 0.2.4.12-alpha.

12 years agoRevert "Use the FILE_SHARE_DELETE flag for CreateFile on a mapping"
Nick Mathewson [Wed, 12 Jun 2013 14:45:48 +0000 (10:45 -0400)] 
Revert "Use the FILE_SHARE_DELETE flag for CreateFile on a mapping"

This reverts commit 884a0e269c382f9e927d8c8b1ef4ef9d2d48379d.

I'm reverting this because it doesn't actually make the problem go
away.  It appears that instead we need to do unmap-then-replace.

12 years agoMerge remote-tracking branch 'public/bug2077_share_delete' into maint-0.2.4
Nick Mathewson [Wed, 12 Jun 2013 14:00:33 +0000 (10:00 -0400)] 
Merge remote-tracking branch 'public/bug2077_share_delete' into maint-0.2.4

12 years agoUse the FILE_SHARE_DELETE flag for CreateFile on a mapping
Nick Mathewson [Wed, 12 Jun 2013 13:53:46 +0000 (09:53 -0400)] 
Use the FILE_SHARE_DELETE flag for CreateFile on a mapping

A comment by rransom on #8795 taken together with a comment by doorss
recorded on #2077 suggest that *every* attempt to replace the md cache
will fail on Vista/Win7 if we don't have the FILE_SHARE_DELETE flag
passed to CreateFile, and if we try to replace the file ourselves
before unmapping it.  I'm adding the FILE_SHARE_DELETE, since that's
this simplest fix.  Broken indexers (the favored #2077 hypothesis)
could still cause trouble here, but at least this patch should make us
stop stepping on our own feet.

Likely fix for #2077 and its numerous duplicates. Bugfix on
0.2.2.6-alpha, which first had a microdescriptor cache that would get
replaced before remapping it.

12 years agoExpand microdesc cache tests
Nick Mathewson [Wed, 12 Jun 2013 13:30:09 +0000 (09:30 -0400)] 
Expand microdesc cache tests

Is it possible that *every* attempt to replace the microdesc cache on
windows 7 is going to fail because of our lack of FILE_SHARE_DELETE
while opening the file?  If so, this test will catch #2077 and let us
know when it's fixed.

12 years agoMerge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4
Nick Mathewson [Mon, 10 Jun 2013 16:26:39 +0000 (12:26 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4

12 years agoMerge branch 'bug9017' into maint-0.2.3
Nick Mathewson [Mon, 10 Jun 2013 16:25:14 +0000 (12:25 -0400)] 
Merge branch 'bug9017' into maint-0.2.3

12 years agoFix (Open?)BSD fast-connect bug with optimistic data.
Nick Mathewson [Mon, 10 Jun 2013 16:14:49 +0000 (12:14 -0400)] 
Fix (Open?)BSD fast-connect bug with optimistic data.

There's an assertion failure that can occur if a connection has
optimistic data waiting, and then the connect() call returns 0 on the
first attempt (rather than -1 and EINPROGRESS).  That latter behavior
from connect() appears to be an (Open?)BSDism when dealing with remote
addresses in some cases. (At least, I've only seen it reported with
the BSDs under libevent, even when the address was 127.0.0.1.  And
we've only seen this problem in Tor with OpenBSD.)

Fixes bug 9017; bugfix on 0.2.3.1-alpha, which first introduced
optimistic data. (Although you could also argue that the commented-out
connection_start_writing in 155c9b80 back in 2002 is the real source
of the issue.)

12 years agoMerge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4
Nick Mathewson [Wed, 5 Jun 2013 15:22:19 +0000 (11:22 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4

12 years agoMerge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3
Nick Mathewson [Wed, 5 Jun 2013 15:22:02 +0000 (11:22 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3

12 years agoFix two cut'n'paste docu bugs.
Linus Nordberg [Wed, 5 Jun 2013 13:48:57 +0000 (15:48 +0200)] 
Fix two cut'n'paste docu bugs.

12 years agoUpdate to the June 2013 GeoIP database.
Karsten Loesing [Wed, 5 Jun 2013 06:43:03 +0000 (08:43 +0200)] 
Update to the June 2013 GeoIP database.

12 years agoWhen launching a resolve request on behalf of an AF_UNIX control, omit the address...
Andrea Shepard [Fri, 31 May 2013 22:35:51 +0000 (15:35 -0700)] 
When launching a resolve request on behalf of an AF_UNIX control, omit the address field of the new entry connection.  Fixes bug 8639.

12 years agoDowngrade the unexpected sendme cell warnings for 0.2.4
Nick Mathewson [Tue, 21 May 2013 17:45:21 +0000 (13:45 -0400)] 
Downgrade the unexpected sendme cell warnings for 0.2.4

See discussion on #8093

12 years agoCopy-paste description of PathBias params from man page to or.h comment
Andrea Shepard [Mon, 20 May 2013 19:46:00 +0000 (12:46 -0700)] 
Copy-paste description of PathBias params from man page to or.h comment

12 years agoMerge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4
Nick Mathewson [Mon, 20 May 2013 16:37:21 +0000 (12:37 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4

12 years agoMerge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3
Nick Mathewson [Mon, 20 May 2013 16:34:59 +0000 (12:34 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3

12 years agoFix bug 8846: better log message on IP version confusion
Nick Mathewson [Fri, 17 May 2013 18:50:45 +0000 (14:50 -0400)] 
Fix bug 8846: better log message on IP version confusion

12 years agoFix unit tests to pass after fix for #8879
Nick Mathewson [Wed, 15 May 2013 18:34:59 +0000 (14:34 -0400)] 
Fix unit tests to pass after fix for #8879

12 years agoFix socks5 handshake for username/password auth
Roger Dingledine [Wed, 15 May 2013 07:34:37 +0000 (03:34 -0400)] 
Fix socks5 handshake for username/password auth

The fix for bug 8117 exposed this bug, and it turns out real-world
applications like Pidgin do care. Bugfix on 0.2.3.2-alpha; fixes bug 8879.

12 years agoUpdate to the May 2013 GeoIP database.
Karsten Loesing [Mon, 13 May 2013 13:37:43 +0000 (15:37 +0200)] 
Update to the May 2013 GeoIP database.

12 years agoMerge bug5595-v2-squashed into maint-0.2.4
Andrea Shepard [Sat, 11 May 2013 02:39:48 +0000 (19:39 -0700)] 
Merge bug5595-v2-squashed into maint-0.2.4

12 years agoAdd some unit tests for fp_pair_map_t to test/containers.c based on the strmap tests
Andrea Shepard [Thu, 9 May 2013 17:51:48 +0000 (10:51 -0700)] 
Add some unit tests for fp_pair_map_t to test/containers.c based on the strmap tests

12 years agoRephrase comment in trusted_dirs_load_certs_from_string() to reflect 5595 fix
Andrea Shepard [Thu, 9 May 2013 16:41:50 +0000 (09:41 -0700)] 
Rephrase comment in trusted_dirs_load_certs_from_string() to reflect 5595 fix

12 years agoMake warning in authority_cert_dl_failed() LD_BUG per NickM code review
Andrea Shepard [Thu, 9 May 2013 16:33:32 +0000 (09:33 -0700)] 
Make warning in authority_cert_dl_failed() LD_BUG per NickM code review

12 years agoUse tor_asprintf() and clean up string handling in authority_certs_fetch_missing()
Andrea Shepard [Thu, 9 May 2013 16:31:39 +0000 (09:31 -0700)] 
Use tor_asprintf() and clean up string handling in authority_certs_fetch_missing()

12 years agoClean up ugly constants in connection_dir_download_cert_failed(), and fix a broken one
Andrea Shepard [Thu, 9 May 2013 15:23:53 +0000 (08:23 -0700)] 
Clean up ugly constants in connection_dir_download_cert_failed(), and fix a broken one

12 years agoAvoid duplicate downloads by (fp,sk) and by fp for authority certs when bootstrapping
Andrea Shepard [Thu, 9 May 2013 15:19:48 +0000 (08:19 -0700)] 
Avoid duplicate downloads by (fp,sk) and by fp for authority certs when bootstrapping

12 years agoWhen downloading certificates, distinguish requesting by identity digest from request...
Andrea Shepard [Thu, 9 May 2013 11:56:54 +0000 (04:56 -0700)] 
When downloading certificates, distinguish requesting by identity digest from requesting by ID digest, signing key pair; fixes bug 5595

12 years agoImplement fp_pair_map_t
Andrea Shepard [Fri, 22 Mar 2013 19:13:25 +0000 (12:13 -0700)] 
Implement fp_pair_map_t