- 22 Nov, 2009 2 commits
-
-
Roger Dingledine authored
-
Roger Dingledine authored
-
- 20 Nov, 2009 1 commit
-
-
Nick Mathewson authored
On this OSX version, there is a stub mlockall() function that doesn't work, *and* the declaration for it is hidden by an '#ifdef _P1003_1B_VISIBLE'. This would make autoconf successfully find the function, but our code fail to build when no declaration was found. This patch adds an additional test for the declaration.
-
- 19 Nov, 2009 1 commit
-
-
Roger Dingledine authored
-
- 17 Nov, 2009 2 commits
-
-
Roger Dingledine authored
-
Roger Dingledine authored
-
- 12 Nov, 2009 1 commit
-
-
Roger Dingledine authored
Fix a memory leak on directory authorities during voting that was introduced in 0.2.2.1-alpha. Found via valgrind.
-
- 06 Nov, 2009 1 commit
-
-
Nick Mathewson authored
-
- 05 Nov, 2009 1 commit
-
-
Nick Mathewson authored
To fix a major security problem related to incorrect use of SSL/TLS renegotiation, OpenSSL has turned off renegotiation by default. We are not affected by this security problem, however, since we do renegotiation right. (Specifically, we never treat a renegotiated credential as authenticating previous communication.) Nevertheless, OpenSSL's new behavior requires us to explicitly turn renegotiation back on in order to get our protocol working again. Amusingly, this is not so simple as "set the flag when you create the SSL object" , since calling connect or accept seems to clear the flags. For belt-and-suspenders purposes, we clear the flag once the Tor handshake is done. There's no way to exploit a second handshake either, but we might as well not allow it.
-
- 27 Oct, 2009 7 commits
-
-
This commit implements a new config option: 'DisableAllSwap' This option probably only works properly when Tor is started as root. We added two new functions: tor_mlockall() and tor_set_max_memlock(). tor_mlockall() attempts to mlock() all current and all future memory pages. For tor_mlockall() to work properly we set the process rlimits for memory to RLIM_INFINITY (and beyond) inside of tor_set_max_memlock(). We behave differently from mlockall() by only allowing tor_mlockall() to be called one single time. All other calls will result in a return code of 1. It is not possible to change DisableAllSwap while running. A sample configuration item was added to the torrc.complete.in config file. A new item in the man page for DisableAllSwap was added. Thanks to Moxie Marlinspike and Chris Palmer for their feedback on this patch. Please note that we make no guarantees about the quality of your OS and its mlock/mlockall implementation. It is possible that this will do nothing at all. It is also possible that you can ulimit the mlock properties of a given user such that root is not required. This has not been extensively tested and is unsupported. I have included some comments for possible ways we can handle this on win32.
-
Karsten Loesing authored
Bridges do not use the default exit policy, but reject *:* by default.
-
Karsten Loesing authored
If your relay can't keep up with the number of incoming create cells, it would log one warning per failure into your logs. Limit warnings to 1 per minute.
-
Nick Mathewson authored
-
Nick Mathewson authored
-
Karsten Loesing authored
If all authorities restart at once right before a consensus vote, nobody will vote about "Running", and clients will get a consensus with no usable relays. Instead, authorities refuse to build a consensus if this happens.
-
Nick Mathewson authored
Spotted by xmux; bugfix on 0.2.0.10-alpha. (Bug introduced by 20b10859)
-
- 26 Oct, 2009 1 commit
-
-
Roger Dingledine authored
-
- 19 Oct, 2009 1 commit
-
-
Nick Mathewson authored
-
- 15 Oct, 2009 2 commits
-
-
Roger Dingledine authored
-
Roger Dingledine authored
-
- 14 Oct, 2009 2 commits
-
-
Roger Dingledine authored
backport of c43859c5 backport of 0d13e0ed
-
Roger Dingledine authored
-
- 13 Oct, 2009 1 commit
-
-
Nick Mathewson authored
When we tried to use the deprecated non-threadsafe evdns interfaces in Libevent 2 without using the also-deprecated event_init() interface, Libevent 2 would sensibly crash, since it has no guess where to find the Libevent library. Here we use the evdns_base_*() functions instead if they're present, and fake them if they aren't.
-
- 12 Oct, 2009 2 commits
-
-
Roger Dingledine authored
-
Nick Mathewson authored
-
- 11 Oct, 2009 1 commit
-
-
Roger Dingledine authored
-
- 10 Oct, 2009 4 commits
-
-
Roger Dingledine authored
-
Nick Mathewson authored
This is a possible fix for bug 1023, where if we vote (or make a v2 consensus networkstatus) right after we come online, we can call rep_hist_note_router_unreachable() on every router we haven't connected to yet, and thereby make all their uptime values reset.
-
Roger Dingledine authored
-
Roger Dingledine authored
-
- 07 Oct, 2009 1 commit
-
-
Roger Dingledine authored
-
- 01 Oct, 2009 2 commits
-
-
Roger Dingledine authored
Don't count one-hop circuits when we're estimating how long it takes circuits to build on average. Otherwise we'll set our circuit build timeout lower than we should. Bugfix on 0.2.2.2-alpha.
-
Roger Dingledine authored
-
- 30 Sep, 2009 2 commits
-
-
Roger Dingledine authored
-
Roger Dingledine authored
Directory authorities now reject Tor relays with versions less than 0.1.2.14. This step cuts out four relays from the current network, none of which are very big.
-
- 29 Sep, 2009 2 commits
-
-
1108 was actually just a fencepost error in an assert, but making the state file handling code resilient is a good idea.
-
Nick Mathewson authored
-
- 27 Sep, 2009 2 commits
-
-
Found by Coverity
-
Some memory could be lost in the error case of circuit_build_times_parse_state. Found by Coverity
-
- 24 Sep, 2009 1 commit
-
-
Roger Dingledine authored
The September one seems to have removed most US IP addresses.
-