aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson2011-06-14
|\
| * Make ControlSocketsGroupWritable work with User.Jérémy Bobbio2011-06-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Original message from bug3393: check_private_dir() to ensure that ControlSocketsGroupWritable is safe to use. Unfortunately, check_private_dir() only checks against the currently running user… which can be root until privileges are dropped to the user and group configured by the User config option. The attached patch fixes the issue by adding a new effective_user argument to check_private_dir() and updating the callers. It might not be the best way to fix the issue, but it did in my tests. (Code by lunar; changelog by nickm)
| * Fix a rare memleak during stats writingSebastian Hahn2011-06-08
| | | | | | | | | | If rep_hist_buffer_stats_write() was called unitinitalized, we'd leak memory.
| * Don't use signed 1-bit bitfieldsSebastian Hahn2011-06-08
| | | | | | | | | | This was harmless, we never compared it to anything but itself or 0. But Coverity complained, and it had a point.
| * Comment out some obviously dead code.Sebastian Hahn2011-06-08
| | | | | | | | Coverity warned about it, it's harmless to comment out.
| * Remove a few dead assignments during router parsingSebastian Hahn2011-06-08
| |
| * Check some more return values in unit testsSebastian Hahn2011-06-08
| |
| * remove some dead code, found by coveritySebastian Hahn2011-06-08
| |
* | Upgrade to the latest version of tinytestNick Mathewson2011-06-09
| |
* | Prefer tt_assert in unit tests, not tor_assertNick Mathewson2011-06-08
| |
* | Fix a memleak in nodelist_assert_ok()Sebastian Hahn2011-06-08
| |
* | Remove a dead variable in the heartbeat codeSebastian Hahn2011-06-08
| |
* | Fix a minor coverity-found bug in testsSebastian Hahn2011-06-08
| |
* | Update the uptime string to include an hours indicatorSebastian Hahn2011-06-08
| | | | | | | | | | Before, it wasn't really obvious if one meant hours:minutes or minutes:seconds etc.
* | Fix crash bug (3361) when setting off-flavor networkstatusNick Mathewson2011-06-07
| | | | | | | | | | | | When we set a networkstatus in the non-preferred flavor, we'd check the time in the current_consensus. But that might have been NULL, which could produce a crash as seen in bug 3361.
* | Merge remote-tracking branch 'asn2/bug3336'Nick Mathewson2011-06-06
|\ \
| * | Add the heartbeat domain in log.c:domain_list[]George Kadianakis2011-06-05
| | | | | | | | | | | | so that parse_log_domain() doesn't fail.
* | | Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson2011-06-06
|\ \ \ | | |/ | |/|
| * | Merge branch 'bug3306_nm_squashed' into maint-0.2.2Nick Mathewson2011-06-06
| |\ \
| | * | Detect insanely large circuit build state; don't give its length to rand_intNick Mathewson2011-06-06
| | | |
| | * | Check maximum properly in crypto_rand_int()Nick Mathewson2011-06-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | George Kadianakis notes that if you give crypto_rand_int() a value above INT_MAX, it can return a negative number, which is not what the documentation would imply. The simple solution is to assert that the input is in [1,INT_MAX+1]. If in the future we need a random-value function that can return values up to UINT_MAX, we can add one. Fixes bug 3306; bugfix on 0.2.2pre14.
* | | | Merge branch 'maint-0.2.2'Roger Dingledine2011-06-05
|\| | |
| * | | Merge branch 'maint-0.2.1' into maint-0.2.2Roger Dingledine2011-06-05
| |\ \ \ | | |/ / | |/| |
| | * | move to the june 1 2011 maxmind geoip dbRoger Dingledine2011-06-05
| | | |
* | | | Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson2011-06-03
|\| | |
| * | | Merge branch 'bug3318c' into maint-0.2.2Nick Mathewson2011-06-03
| |\ \ \
| | * | | Reject 128-byte keys that are not 1024-bitNick Mathewson2011-06-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When we added the check for key size, we required that the keys be 128 bytes. But RSA_size (which defers to BN_num_bytes) will return 128 for keys of length 1017..1024. This patch adds a new crypto_pk_num_bits() that returns the actual number of significant bits in the modulus, and uses that to enforce key sizes. Also, credit the original bug3318 in the changes file.
* | | | | Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson2011-06-03
|\| | | |
| * | | | Merge remote-tracking branch 'rransom/bug2748-v2' into maint-0.2.2Nick Mathewson2011-06-03
| |\ \ \ \
| | * | | | Log malformed HS descriptor requests at the proper levelRobert Ransom2011-03-14
| | | | | | | | | | | | | | | | | | | | | | | | This log message should be a 'protocol warning', not a 'warning'.
| | * | | | Remove dead code from rend_cache_lookup_v2_desc_as_dirRobert Ransom2011-03-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | hid_serv_responsible_for_desc_id's return value is never negative, and there is no need to search through the consensus to find out whether we are responsible for a descriptor ID before we look in our cache for a descriptor.
* | | | | | Use an autobool for UseBridges_Nick Mathewson2011-06-03
| | | | | |
* | | | | | Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson2011-06-03
|\| | | | |
| * | | | | Add an "auto" option to UseBridgesNick Mathewson2011-06-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | UseBridges 1 now means "connect only to bridges; if you know no bridges, don't make connections." UseBridges auto means "Use bridges if they are known, and we have no EntryNodes set, and we aren't a server." UseBridges 0 means "don't use bridges."
* | | | | | Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson2011-06-02
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/or/rendclient.c
| * | | | | Merge remote-tracking branch 'rransom-tor/bug3309' into maint-0.2.2Nick Mathewson2011-06-02
| |\ \ \ \ \
| | * | | | | Add info-level log messages during HS-client-state purgeRobert Ransom2011-06-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I hope these will never be useful, but having them and not needing them is better than needing them and not having them.
| | * | | | | Refactor HS client state-clearing code into a separate functionRobert Ransom2011-06-02
| | | | | | |
| | * | | | | Clear last_hid_serv_requests on SIGNAL NEWNYMRobert Ransom2011-06-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes bug #3309.
| | * | | | | Make last_hid_serv_requests functions less fragileRobert Ransom2011-06-02
| | | |/ / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, Tor would dereference a NULL pointer and crash if lookup_last_hid_serv_request were called before the first call to directory_clean_last_hid_serv_requests. As far as I can tell, that's currently impossible, but I want that undocumented invariant to go away in case I^Wwe break it someday.
* | | | | | Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson2011-06-02
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This merge was a bit nontrivial, since I had to write a new node_is_a_configured_bridge to parallel router_is_a_configured_bridge. Conflicts: src/or/circuitbuild.c
| * | | | | Merge remote-tracking branch 'arma/bug3321' into maint-0.2.2Nick Mathewson2011-06-02
| |\ \ \ \ \
| | * | | | | fix a bridge edge case similar to 2511Roger Dingledine2011-05-31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If you had configured a bridge but then switched to a different bridge via the controller, you would still be willing to use the old one.
* | | | | | | Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson2011-06-02
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/or/dirserv.c
| * | | | | | Fix unit test failure in dir/formatsSebastian Hahn2011-06-02
| | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | options->DirPort is 0 in the unit tests, so router_get_advertised_dir_port() would return 0 so we wouldn't pick a dirport. This isn't what we want for the unit tests. Fixes bug introduced in 95ac3ea5946.
* | | | | | Unbreak the buildRobert Ransom2011-06-01
| | | | | |
* | | | | | Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson2011-06-01
|\| | | | |
| * | | | | Fix compile error in procmon.cGisle2011-06-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | An elusive compile-error (MingW-gcc v4.50 on Win_XP); a missing comma (!) and a typo ('err_msg' at line 277 changed to 'errmsg'). Aso changed the format for 'err_code' at line 293 into a "%ld" to suppress a warning. How did this go unnoticed for ~1 month? Btw. This is my 1st ever 'git commit', so it better work.
* | | | | | Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson2011-06-01
|\| | | | |
| * | | | | Report wrong key sizes correctlyNick Mathewson2011-06-01
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When we introduced NEED_KEY_1024 in routerparse.c back in 0.2.0.1-alpha, I forgot to add a *8 when logging the length of a bad-length key. Bugfix for 3318 on 0.2.0.1-alpha.