]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
11 years agoChange documentation DirServer->DirAuthority
Nick Mathewson [Sun, 10 Nov 2013 17:21:23 +0000 (12:21 -0500)] 
Change documentation DirServer->DirAuthority

We renamed the option, but we didn't actually fix it in the log
messages or the docs.  This patch does that.

For #10124.  Patch by sqrt2.

12 years agoMerge remote-tracking branch 'public/bug9645' into maint-0.2.4
Nick Mathewson [Thu, 31 Oct 2013 20:09:41 +0000 (16:09 -0400)] 
Merge remote-tracking branch 'public/bug9645' into maint-0.2.4

12 years agoMerge remote-tracking branch 'public/bug9731b' into maint-0.2.4
Nick Mathewson [Thu, 31 Oct 2013 18:08:28 +0000 (14:08 -0400)] 
Merge remote-tracking branch 'public/bug9731b' into maint-0.2.4

12 years agoMerge remote-tracking branch 'public/bug9780_024_v2' into maint-0.2.4
Nick Mathewson [Thu, 31 Oct 2013 18:02:28 +0000 (14:02 -0400)] 
Merge remote-tracking branch 'public/bug9780_024_v2' into maint-0.2.4

12 years agoMerge remote-tracking branch 'public/bug6055_v2_024' into maint-0.2.4
Nick Mathewson [Thu, 31 Oct 2013 17:14:39 +0000 (13:14 -0400)] 
Merge remote-tracking branch 'public/bug6055_v2_024' into maint-0.2.4

12 years agobe willing to bootstrap from all three of our directory guards
Roger Dingledine [Fri, 11 Oct 2013 00:09:16 +0000 (20:09 -0400)] 
be willing to bootstrap from all three of our directory guards

Also fix a bug where if the guard we choose first doesn't answer, we
would try the second guard, but once we connected to the second guard
we would abandon it and retry the first one, slowing down bootstrapping.

The fix in both cases is to treat all our initially chosen guards as
acceptable to use.

Fixes bug 9946.

12 years agoMerge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4
Nick Mathewson [Fri, 11 Oct 2013 15:16:59 +0000 (11:16 -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 [Fri, 11 Oct 2013 15:16:45 +0000 (11:16 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3

12 years agoUpdate to the October 2013 GeoIP database. maint-0.2.2
Karsten Loesing [Fri, 11 Oct 2013 11:36:30 +0000 (13:36 +0200)] 
Update to the October 2013 GeoIP database.

12 years agorewrite history to improve two changelog entries
Roger Dingledine [Fri, 11 Oct 2013 01:17:19 +0000 (21:17 -0400)] 
rewrite history to improve two changelog entries

12 years agoMerge branch 'bug9644_024' into maint-0.2.4
Nick Mathewson [Thu, 10 Oct 2013 15:23:46 +0000 (11:23 -0400)] 
Merge branch 'bug9644_024' into maint-0.2.4

12 years agoMerge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4
Nick Mathewson [Thu, 10 Oct 2013 15:18:07 +0000 (11:18 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4

12 years agoFix unit test for format_helper_exit_status
Nick Mathewson [Thu, 10 Oct 2013 15:15:35 +0000 (11:15 -0400)] 
Fix unit test for format_helper_exit_status

Fix format_helper_exit_status to allow full HEX_ERRNO_SIZE answers,
*and* increase the buffer length again.

12 years agoMerge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4
Nick Mathewson [Thu, 10 Oct 2013 14:55:24 +0000 (10:55 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4

12 years agoMerge remote-tracking branch 'public/bug9928' into maint-0.2.3
Nick Mathewson [Thu, 10 Oct 2013 14:53:27 +0000 (10:53 -0400)] 
Merge remote-tracking branch 'public/bug9928' into maint-0.2.3

12 years agoPartially revert "Clarify who learns about ContactInfo."
Nick Mathewson [Wed, 9 Oct 2013 16:02:53 +0000 (12:02 -0400)] 
Partially revert "Clarify who learns about ContactInfo."

This reverts the torrc.sample.in changes from commit
66a04a6ac334775dc396025e0c15fa49eca138a7.

We're going to not make this change in 0.2.4, since changing
torrc.sample.in makes all the debian users do some pointless
busywork. see tor-dev discusion of 9 Oct 2013.

12 years agoChanges file for 9854
Nick Mathewson [Wed, 9 Oct 2013 13:43:54 +0000 (09:43 -0400)] 
Changes file for 9854

12 years agoClarify who learns about ContactInfo.
Karsten Loesing [Wed, 9 Oct 2013 10:01:45 +0000 (12:01 +0200)] 
Clarify who learns about ContactInfo.

Explicitly include bridges, and note that we archive and publish all
descriptors.

(We are not yet publishing ContactInfo lines contained in bridge
descriptors, but maybe we'll want to do that soon, so let's err on the
side of caution here.)

Related to #9854.

12 years agoWhen examining interfaces to find an address, discard non-up ones.
Nick Mathewson [Tue, 8 Oct 2013 20:46:29 +0000 (16:46 -0400)] 
When examining interfaces to find an address, discard non-up ones.

Patch from "hantwister" on trac. Fixes bug #9904; bugfix on
0.2.3.11-alpha.

12 years agoSwitch ECDHE group default logic for bridge/relay TLS
Nick Mathewson [Thu, 19 Sep 2013 14:40:41 +0000 (10:40 -0400)] 
Switch ECDHE group default logic for bridge/relay TLS

According to the manpage, bridges use P256 for conformity and relays
use P224 for speed. But skruffy points out that we've gotten it
backwards in the code.

In this patch, we make the default P256 for everybody.

Fixes bug 9780; bugfix on 0.2.4.8-alpha.

12 years agoChanges file for 9866
Nick Mathewson [Mon, 7 Oct 2013 15:32:06 +0000 (11:32 -0400)] 
Changes file for 9866

12 years agoAnchors for options (re#9866)
Peter Palfrader [Wed, 2 Oct 2013 20:27:27 +0000 (22:27 +0200)] 
Anchors for options (re#9866)

12 years agoMerge remote-tracking branch 'public/bug9927' into maint-0.2.4
Nick Mathewson [Tue, 8 Oct 2013 17:37:13 +0000 (13:37 -0400)] 
Merge remote-tracking branch 'public/bug9927' into maint-0.2.4

12 years agoMerge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4
Nick Mathewson [Tue, 8 Oct 2013 16:16:42 +0000 (12:16 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4

12 years agoMerge remote-tracking branch 'public/bug9596' into maint-0.2.4
Nick Mathewson [Tue, 8 Oct 2013 16:10:47 +0000 (12:10 -0400)] 
Merge remote-tracking branch 'public/bug9596' into maint-0.2.4

12 years agoGive credit to bug reporter for 9928
Nick Mathewson [Tue, 8 Oct 2013 16:06:06 +0000 (12:06 -0400)] 
Give credit to bug reporter for 9928

12 years agoGenerate bootstrapping status messages for microdescs too
Nick Mathewson [Tue, 8 Oct 2013 15:31:08 +0000 (11:31 -0400)] 
Generate bootstrapping status messages for microdescs too

Fix for 9927.

12 years agoRaise buffer size, fix checks for format_exit_helper_status.
Nick Mathewson [Tue, 8 Oct 2013 15:13:21 +0000 (11:13 -0400)] 
Raise buffer size, fix checks for format_exit_helper_status.

This is probably not an exploitable bug, since you would need to have
errno be a large negative value in the unix pluggable-transport launcher
case.  Still, best avoided.

Fixes bug 9928; bugfix on 0.2.3.18-rc.

12 years agoMerge branch 'bug9880_fix' into maint-0.2.4
Nick Mathewson [Thu, 3 Oct 2013 02:39:27 +0000 (22:39 -0400)] 
Merge branch 'bug9880_fix' into maint-0.2.4

12 years agoFix a bug in our bug 9776 fix.
Nick Mathewson [Thu, 3 Oct 2013 01:42:24 +0000 (21:42 -0400)] 
Fix a bug in our bug 9776 fix.

By calling circuit_n_chan_done() unconditionally on close, we were
closing pending connections that might not have been pending quite for
the connection we were closing.  Fix for bug 9880.

Thanks to skruffy for finding this and explaining it patiently until
we understood.

12 years agoRe-enable TLS 1.[12] when building with OpenSSL >= 1.0.1e
Nick Mathewson [Wed, 14 Aug 2013 03:43:39 +0000 (23:43 -0400)] 
Re-enable TLS 1.[12] when building with OpenSSL >= 1.0.1e

To fix #6033, we disabled TLS 1.1 and 1.2.  Eventually, OpenSSL fixed
the bug behind #6033.

I've considered alternate implementations that do more testing to see
if there's secretly an OpenSSL 1.0.1c or something that secretly has a
backport of the OpenSSL 1.0.1e fix, and decided against it on the
grounds of complexity.

12 years agoAlways call circuit_n_chan_done(chan, 0) from channel_closed()
Andrea Shepard [Mon, 23 Sep 2013 16:37:26 +0000 (09:37 -0700)] 
Always call circuit_n_chan_done(chan, 0) from channel_closed()

12 years agoFix a compilation warning with older gcc
Nick Mathewson [Mon, 23 Sep 2013 05:47:52 +0000 (01:47 -0400)] 
Fix a compilation warning with older gcc

12 years agoRelays should send timestamp in NETINFO.
Nick Mathewson [Sat, 21 Sep 2013 12:52:27 +0000 (08:52 -0400)] 
Relays should send timestamp in NETINFO.

This avoids skew warnings as authorities test reachability.

Fix 9798; fix not on any released Tor.

12 years agoback out most of 1d0ba9a
Roger Dingledine [Sat, 21 Sep 2013 06:11:51 +0000 (02:11 -0400)] 
back out most of 1d0ba9a

this was causing directory authorities to send a time of 0 on all
connections they generated themselves, which means everybody reachability
test caused a time skew warning in the log for that relay.

(i didn't just revert, because the changes file has been modified by
other later commits.)

12 years agoMerge branch 'no_client_timestamps_024_v2' into maint-0.2.4
Nick Mathewson [Fri, 20 Sep 2013 15:00:43 +0000 (11:00 -0400)] 
Merge branch 'no_client_timestamps_024_v2' into maint-0.2.4

12 years agoAvoid error by not saying which intro cell type I mean
Nick Mathewson [Fri, 20 Sep 2013 15:00:04 +0000 (11:00 -0400)] 
Avoid error by not saying which intro cell type I mean

12 years agoRound down hidden service descriptor publication times to nearest hour
Nick Mathewson [Wed, 18 Sep 2013 15:09:34 +0000 (11:09 -0400)] 
Round down hidden service descriptor publication times to nearest hour

Implements part of proposal 222.  We can do this safely, since
REND_CACHE_MAX_SKEW is 24 hours.

12 years agoRemove the timestamp from AUTHENTICATE cells; replace with random bytes
Nick Mathewson [Wed, 18 Sep 2013 14:51:04 +0000 (10:51 -0400)] 
Remove the timestamp from AUTHENTICATE cells; replace with random bytes

This isn't actually much of an issue, since only relays send
AUTHENTICATE cells, but while we're removing timestamps, we might as
well do this too.

Part of proposal 222.  I didn't take the approach in the proposal of
using a time-based HMAC, since that was a bad-prng-mitigation hack
from SSL3, and in real life, if you don't have a good RNG, you're
hopeless as a Tor server.

12 years agoGet ready to stop sending timestamps in INTRODUCE cells
Nick Mathewson [Tue, 17 Sep 2013 22:05:48 +0000 (18:05 -0400)] 
Get ready to stop sending timestamps in INTRODUCE cells

For now, round down to the nearest 10 minutes.  Later, eliminate entirely by
setting a consensus parameter.

(This rounding is safe because, in 0.2.2, where the timestamp mattered,
REND_REPLAY_TIME_INTERVAL was a nice generous 60 minutes.)

12 years agoStop sending the current time in client NETINFO handshakes.
Nick Mathewson [Tue, 17 Sep 2013 21:55:43 +0000 (17:55 -0400)] 
Stop sending the current time in client NETINFO handshakes.

Implements part of proposal 222.

12 years agoWhen freeing a cert_list_t, avoid memory leak.
Nick Mathewson [Thu, 19 Sep 2013 16:22:49 +0000 (12:22 -0400)] 
When freeing a cert_list_t, avoid memory leak.

We were freeing these on exit, but when we added the dl_status_map
field to them in fddb814f, we forgot to arrange for it to be freed.

I've moved the cert_list_free() code into its own function, and added
an appropriate dsmap_free() call.

Fixes bug 9644; bugfix on 0.2.4.13-alpha.

12 years agoDocument that disabledebuggerattachment prevents cores
Nick Mathewson [Thu, 19 Sep 2013 16:14:07 +0000 (12:14 -0400)] 
Document that disabledebuggerattachment prevents cores

12 years agoFix an assert when disabling ORPort with accounting disabled.
Nick Mathewson [Wed, 18 Sep 2013 14:26:32 +0000 (10:26 -0400)] 
Fix an assert when disabling ORPort with accounting disabled.

The problem was that the server_identity_key_is_set() function could
return true under conditions where we don't really have an identity
key -- specifically, where we used to have one, but we stopped being a
server.

This is a fix for 6979; bugfix on 0.2.2.18-alpha where we added that
assertion to get_server_identity_key().

12 years agoMerge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4
Nick Mathewson [Mon, 16 Sep 2013 16:47:05 +0000 (12:47 -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, 16 Sep 2013 16:46:50 +0000 (12:46 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3

12 years agoDon't apply read/write buckets to cpuworker connections
Nick Mathewson [Fri, 13 Sep 2013 17:37:53 +0000 (13:37 -0400)] 
Don't apply read/write buckets to cpuworker connections

Fixes bug 9731

12 years agoUpdate to the September 2013 GeoIP database.
Karsten Loesing [Tue, 10 Sep 2013 13:00:06 +0000 (15:00 +0200)] 
Update to the September 2013 GeoIP database.

12 years agocollect and log statistics about onionskins received/processed
Roger Dingledine [Wed, 4 Sep 2013 21:43:15 +0000 (17:43 -0400)] 
collect and log statistics about onionskins received/processed

we skip onionskins that came from non-relays, so we're less likely to
run into privacy troubles.

starts to implement ticket 9658.

12 years agoRevert e443beff and solve it a different way
Roger Dingledine [Thu, 5 Sep 2013 05:41:07 +0000 (01:41 -0400)] 
Revert e443beff and solve it a different way

Now we explicitly check for overflow.

This approach seemed smarter than a cascade of "change int to unsigned
int and hope nothing breaks right before the release".

Nick, feel free to fix in a better way, maybe in master.

12 years agodon't let recently_chosen_ntors overflow
Roger Dingledine [Thu, 5 Sep 2013 05:27:46 +0000 (01:27 -0400)] 
don't let recently_chosen_ntors overflow

with commit c6f1668d we let it grow arbitrarily large.

it can still overflow, but the damage is very small now.

12 years agonickm wants us to prioritize tap in a currently-rare edge case
Roger Dingledine [Wed, 4 Sep 2013 23:43:46 +0000 (19:43 -0400)] 
nickm wants us to prioritize tap in a currently-rare edge case

12 years agoadd a changes entry for ticket 9574
Roger Dingledine [Wed, 4 Sep 2013 06:10:30 +0000 (02:10 -0400)] 
add a changes entry for ticket 9574

12 years agoBe more general in calculating expected onion queue processing time
Roger Dingledine [Wed, 4 Sep 2013 02:15:33 +0000 (22:15 -0400)] 
Be more general in calculating expected onion queue processing time

Now we consider the TAP cells we'll process while draining the NTor
queue, and vice versa.

12 years agolet the NumNTorsPerTAP consensus param override our queue choice
Roger Dingledine [Wed, 4 Sep 2013 00:58:15 +0000 (20:58 -0400)] 
let the NumNTorsPerTAP consensus param override our queue choice

12 years agodo a lopsided round-robin between the onion queues
Roger Dingledine [Wed, 4 Sep 2013 00:40:16 +0000 (20:40 -0400)] 
do a lopsided round-robin between the onion queues

that way tap won't starve entirely, but we'll still handle ntor requests
quicker.

12 years agocheck bounds on handshake_type more thoroughly
Roger Dingledine [Tue, 3 Sep 2013 22:48:16 +0000 (18:48 -0400)] 
check bounds on handshake_type more thoroughly

12 years agoadd info-level logs to help track onion queue sizes
Roger Dingledine [Sun, 1 Sep 2013 20:51:27 +0000 (16:51 -0400)] 
add info-level logs to help track onion queue sizes

12 years agorefactor and give it unit tests
Roger Dingledine [Sun, 1 Sep 2013 08:40:05 +0000 (04:40 -0400)] 
refactor and give it unit tests

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 agoFix bug 9645: don't forget an md just because we can't save it.
Nick Mathewson [Tue, 3 Sep 2013 18:25:01 +0000 (14:25 -0400)] 
Fix bug 9645: don't forget an md just because we can't save it.

12 years agoIncrease POLICY_BUF_LEN to 72 to accomodate IPv6 exit policy items.
Nick Mathewson [Mon, 26 Aug 2013 15:30:09 +0000 (11:30 -0400)] 
Increase POLICY_BUF_LEN to 72 to accomodate IPv6 exit policy items.

Fixes bug 9596; bugfix on 0.2.4.7-alpha.

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