aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
...
* | | | Merge branch 'bug3045' into maint-0.2.2Nick Mathewson2011-05-30
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Conflicts: src/or/circuitbuild.c
| * | | | Improve comments and defensive programming for 3045Nick Mathewson2011-05-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The comment fixes are trivial. The defensive programming trick is to tolerate receiving NULL inputs on the describe functions. That should never actually happen, but it seems like the likeliest mistake for us to make in the future.
| * | | | Log descriptions of nodes, not just nicknames.Nick Mathewson2011-05-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch introduces a few new functions in router.c to produce a more helpful description of a node than its nickame, and then tweaks nearly all log messages taking a nickname as an argument to call these functions instead. There are a few cases where I left the old log messages alone: in these cases, the nickname was that of an authority (whose nicknames are useful and unique), or the message already included an identity and/or an address. I might have missed a couple more too. This is a fix for bug 3045.
* | | | | Merge remote-tracking branch 'public/bug3270' into maint-0.2.2Nick Mathewson2011-05-30
|\ \ \ \ \
| * | | | | Use a 64-bit type to hold sockets on win64.Nick Mathewson2011-05-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On win64, sockets are of type UINT_PTR; on win32 they're u_int; elsewhere they're int. The correct windows way to check a socket for being set is to compare it with INVALID_SOCKET; elsewhere you see if it is negative. On Libevent 2, all callbacks take sockets as evutil_socket_t; we've been passing them int. This patch should fix compilation and correctness when built for 64-bit windows. Fixes bug 3270.
* | | | | | Reinit keys at the start of options_act().Nick Mathewson2011-05-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously we did this nearer to the end (in the old_options && transition_affects_workers() block). But other stuff cares about keys being consistent with options... particularly anything which tries to access a key, which can die in assert_identity_keys_ok(). Fixes bug 3228; bugfix on 0.2.2.18-alpha.
* | | | | | Merge branch 'bug1297a' into maint-0.2.2Nick Mathewson2011-05-30
|\ \ \ \ \ \
| * | | | | | Use the normal four-hop CBT for client intro circuitsRobert Ransom2011-05-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes another part of bug 1297.
| * | | | | | Set timestamp_dirty on HS circuits as circuit_expire_building requiresRobert Ransom2011-05-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes part of #1297; bugfix on 48e0228f1e031a709c1deb149c7dfd187c3609cf, when circuit_expire_building was changed to assume that timestamp_dirty was set when a circuit changed purpose to _C_REND_READY. (It wasn't.)
* | | | | | | answer an XXX nickm asked in aa950e6c4Roger Dingledine2011-05-29
|/ / / / / /
* | | | | | Merge remote-tracking branch 'origin/maint-0.2.1' into maint-0.2.2Nick Mathewson2011-05-28
|\ \ \ \ \ \ | | |_|_|_|/ | |/| | | |
| * | | | | Merge branch 'bug2574' into maint-0.2.1Nick Mathewson2011-05-28
| |\ \ \ \ \
| | * | | | | Work correctly if your nameserver is ::1Nick Mathewson2011-05-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We had all the code in place to handle this right... except that we were unconditionally opening a PF_INET socket instead of looking at sa_family. Ow. Fixes bug 2574; not a bugfix on any particular version, since this never worked before.
* | | | | | | Fix GCC 4.6's new -Wunused-but-set-variable warnings.Nick Mathewson2011-05-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Most instances were dead code; for those, I removed the assignments. Some were pieces of info we don't currently plan to use, but which we might in the future. For those, I added an explicit cast-to-void to indicate that we know that the thing's unused. Finally, one was a case where we were testing the wrong variable in a unit test. That one I fixed. This resolves bug 3208.
* | | | | | | Remove the -F option from tor-resolve.Nick Mathewson2011-05-23
| |_|_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It used to mean "Force": it would tell tor-resolve to ask tor to resolve an address even if it ended with .onion. But when AutomapHostsOnResolve was added, automatically refusing to resolve .onion hosts stopped making sense. So in 0.2.1.16-rc (commit 298dc95dfd8), we made tor-resolve happy to resolve anything. The -F option stayed in, though, even though it didn't do anything. Oddly, it never got documented. Found while fixing GCC 4.6 "set, unused variable" warnings.
* | | | | | Unbreak the build on libevent 1.x systemsRobert Ransom2011-05-22
| | | | | |
* | | | | | Merge branch 'feature3049-v2' into maint-0.2.2Nick Mathewson2011-05-23
|\ \ \ \ \ \ | |_|_|/ / / |/| | | | | | | | | | | | | | | | | Conflicts: src/common/Makefile.am
| * | | | | The first argument for a libevent callback should be evutil_socket_tNick Mathewson2011-05-23
| | | | | |
| * | | | | Appease make check-spaces wrt procmon.hNick Mathewson2011-05-23
| | | | | |
| * | | | | Split out owning-controller-loss shutdown code into a functionRobert Ransom2011-05-20
| | | | | |
| * | | | | Implement TAKEOWNERSHIP commandRobert Ransom2011-05-20
| | | | | |
| * | | | | Split control connection cleanup out of connection_freeRobert Ransom2011-05-20
| | | | | |
| * | | | | Fix comment typoRobert Ransom2011-05-20
| | | | | |
| * | | | | Add an XXXRobert Ransom2011-05-20
| | | | | |
| * | | | | Fix trailing asterisk in the output of "GETINFO info/names"Robert Ransom2011-05-20
| | | | | |
| * | | | | Exit immediately if we can't monitor our owning controller processRobert Ransom2011-05-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tor_process_monitor_new can't currently return NULL, but if it ever can, we want that to be an explicitly fatal error, without relying on the fact that monitor_owning_controller_process's chain of caller will exit if it fails.
| * | | | | Fix some commentsRobert Ransom2011-05-20
| | | | | |
| * | | | | Implement __OwningControllerProcess optionRobert Ransom2011-05-20
| | | | | | | | | | | | | | | | | | | | | | | | Implements part of feature 3049.
| * | | | | Improve a documentation commentRobert Ransom2011-05-12
| | | | | |
| * | | | | Fix comment typoRobert Ransom2011-05-12
| | | | | |
| * | | | | Fix comment typoRobert Ransom2011-05-10
| | | | | |
* | | | | | naked constants are uglyRoger Dingledine2011-05-21
| | | | | |
* | | | | | finish a comment nickm started in 8ebceeb3Roger Dingledine2011-05-21
| | | | | |
* | | | | | remove some (confusing) dead codeRoger Dingledine2011-05-21
| | | | | |
* | | | | | Merge branch 'bug1810' into maint-0.2.2Roger Dingledine2011-05-21
|\ \ \ \ \ \
| * | | | | | Don't recreate descriptor on sighupSebastian Hahn2011-05-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We used to regenerate our descriptor whenever we'd get a sighup. This was caused by a bug in options_transition_affects_workers() that would return true even if the options were exactly the same. Down the call path we'd call init_keys(), which made us make a new descriptor which the authorities would reject, and the node would subsequently fall out of the consensus. This patch fixes only the first part of this bug: options_transition_affects_workers() behaves correctly now. The second part still wants a fix.
* | | | | | | what's up with this trailing whitespaceRoger Dingledine2011-05-20
|/ / / / / /
* | | | | | log the reason for publishing a new relay descriptorRoger Dingledine2011-05-19
| | | | | | | | | | | | | | | | | | | | | | | | now we have a better chance of hunting down the root cause of bug 1810.
* | | | | | Fix a compile warning on OSX 10.6Sebastian Hahn2011-05-20
| | | | | |
* | | | | | discard circuits when we change our bridge configurationRoger Dingledine2011-05-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | otherwise we might reuse circuits from the previous configuration, which could be bad depending on the user's situation
* | | | | | refetch bridge descriptors in a timely fashionRoger Dingledine2011-05-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When we configure a new bridge via the controller, don't wait up to ten seconds before trying to fetch its descriptor. This wasn't so bad when you listed your bridges in torrc, but it's dreadful if you configure your bridges via vidalia.
* | | | | | Merge branch 'bug2752' into maint-0.2.2Nick Mathewson2011-05-17
|\ \ \ \ \ \
| * | | | | | Fix bug2752 : 48-char HTTPProxyAuthenticator limitationMichael Yakubovich2011-05-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumped the char maximum to 512 for HTTPProxyAuthenticator & HTTPSProxyAuthenticator. Now stripping all '\n' after base64 encoding in alloc_http_authenticator.
* | | | | | | Handle NULL argument to get_configured_bridge_by_addr_port_digestNick Mathewson2011-05-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes bug 2313; bugfix on 0.2.2.26-beta.
* | | | | | | Oops; that function got renamed.Nick Mathewson2011-05-17
| | | | | | |
* | | | | | | Check onion keys in microdescriptors, tooRobert Ransom2011-05-17
|/ / / / / /
* | | | | | Merge remote-tracking branch 'origin/maint-0.2.1' into maint-0.2.2Nick Mathewson2011-05-16
|\ \ \ \ \ \ | | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed trivial conflict due to headers moving into their own .h files from or.h. Conflicts: src/or/or.h
| * | | | | squash! Add crypto_pk_check_key_public_exponent functionNick Mathewson2011-05-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rename crypto_pk_check_key_public_exponent to crypto_pk_public_exponent_ok: it's nice to name predicates s.t. you can tell how to interpret true and false.
| * | | | | Require that certain public keys have public exponent 65537Robert Ransom2011-05-16
| | | | | |
| * | | | | Add crypto_pk_check_key_public_exponent functionRobert Ransom2011-05-16
| | | | | |