aboutsummaryrefslogtreecommitdiff
path: root/src/common
Commit message (Collapse)AuthorAge
* Merge remote branch 'origin/maint-0.2.2'Nick Mathewson2010-10-26
|\
| * Properly refcount client_identity_keySebastian Hahn2010-10-26
| | | | | | | | | | | | | | | | | | | | In a2bb0bf we started using a separate client identity key. When we are in "public server mode" (that means not a bridge) we will use the same key. Reusing the key without doing the proper refcounting leads to a segfault on cleanup during shutdown. Fix that. Also introduce an assert that triggers if our refcount falls below 0. That should never happen.
* | Merge remote branch 'origin/maint-0.2.2'Nick Mathewson2010-10-21
|\| | | | | | | | | Conflicts: src/common/tortls.c
| * Maintain separate server and client TLS contexts.Robert Ransom2010-10-04
| | | | | | | | Fixes bug #988.
| * Refactor tor_tls_context_new:Robert Ransom2010-10-04
| | | | | | | | | | | | | | * Make tor_tls_context_new internal to tortls.c, and return the new tor_tls_context_t from it. * Add a public tor_tls_context_init wrapper function to replace it.
* | clarify fmt_addr32 documentation to note that the address is in host-orderNick Mathewson2010-10-15
| |
* | Fix one-time memory leak when initializing libevent. Spotted by SebastianNick Mathewson2010-10-15
| |
* | Merge branch 'bug1992_part1'Nick Mathewson2010-10-15
|\ \
| * | refactor all these tor_inet_ntoa idiomsRoger Dingledine2010-10-01
| | | | | | | | | | | | but don't refactor the ones that look messy
* | | Improve accuracy of comment about aes_crypt performanceNick Mathewson2010-10-15
| | | | | | | | | | | | | | | | | | | | | The old comment was from before I tried a huge pile of crazy stuff to make the inner loop faster. Short answer: GCC already knows how to unroll loops pretty well. Other short answer: we should have made the relay payload size an even multiple of 4, 8, or ideally 16.
* | | Kill comments saying to remove asserts once bug930 is solved.Nick Mathewson2010-10-15
| | | | | | | | | | | | It's okay to leave the asserts in: the code doesn't appear in profiles.
* | | Fix an apostrophe in a commentNick Mathewson2010-10-15
| | |
* | | Add a portable tor_timercmpNick Mathewson2010-10-15
| | | | | | | | | | | | | | | | | | We can't use the platform timercmp, because 1) some platforms don't have them 2) some that do have them only support certain relational operators
* | | Make the return value of tor_addr_sockaddr always be signedNick Mathewson2010-10-15
| | |
* | | Remove the unused old fuzzy-time codeNick Mathewson2010-10-15
| | |
* | | Fix an xxx wrt picking libevent methods known-to-workNick Mathewson2010-10-15
| | | | | | | | | | | | | | | | | | The short version is, "where we want to do it, we have nothing real to chose from and we can't do it easily. Where it's easy to do, we have no reason to do it yet."
* | | Make check-spaces happySebastian Hahn2010-10-14
| | |
* | | Merge branch 'nodes'Nick Mathewson2010-10-13
|\ \ \
| * | | Fix a compile warning on OSX 10.6Sebastian Hahn2010-10-07
| | | |
| * | | Implement a few more node-based functionsNick Mathewson2010-10-01
| | | | | | | | | | | | | | | | | | | | | | | | Some of these functions only work for routerinfo-based nodes, and as such are only usable for advisory purposes. Fortunately, our uses of them are compatible with this limitation.
| * | | Implement a basic node and nodelist typeNick Mathewson2010-10-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The node_t type is meant to serve two key functions: 1) Abstracting difference between routerinfo_t and microdesc_t so that clients can use microdesc_t instead of routerinfo_t. 2) Being a central place to hold mutable state about nodes formerly held in routerstatus_t and routerinfo_t. This patch implements a nodelist type that holds a node for every router that we would consider using.
* | | | Set OpenSSL 0.9.8l renegotiation flag early enough for buffereventsNick Mathewson2010-10-12
| | | | | | | | | | | | | | | | This seems to fix another case of bug2001.
* | | | Actually call connection_tls_finish_handshake() with buffereventsNick Mathewson2010-10-12
| | | | | | | | | | | | | | | | | | | | | | | | First start of a fix for bug2001, but my test network still isn't working: the client and the server send each other VERSIONS cells, but never notice that they got them.
* | | | Add header for tor_tls_log_one_errorNick Mathewson2010-10-11
| | | |
* | | | Log OpenSSL errors coming from bufferevent_opensslNick Mathewson2010-10-11
| | | |
* | | | Merge remote branch 'sjmurdoch/bug1903'Nick Mathewson2010-10-11
|\ \ \ \
| * | | | Add a unit test for tor_spawn_backgroundSteven Murdoch2010-10-10
| | | | | | | | | | | | | | | | | | | | | | | | | - Test sucessfully starting a process - Test failing to find the executable
| * | | | Update documentation for tor_spawn_backgroundSteven Murdoch2010-10-10
| | | | | | | | | | | | | | | | | | | | - Include description of stdout_read, stderr_read, and argv
| * | | | Fix issues in nickm's review of log_from_pipe for bug #1903Steven Murdoch2010-10-10
| | | | | | | | | | | | | | | | | | | | | | | | | - Replace sscanf with tor_sscanf - Replace use of strstr with equivalent call to strcmpstart
| * | | | Fix nickm's comments on logging for bug #1903Steven Murdoch2010-10-10
| | | | | | | | | | | | | | | | | | | | - Use log_warn rather than log_err for bad but survivable events
| * | | | Note icky constructs mentioned in bug #1903Steven Murdoch2010-10-10
| | | | | | | | | | | | | | | | | | | | - To be dealt with as part of bug #2029
| * | | | Fix issues in nickm's review of format_helper_exit_status for bug #1903Steven Murdoch2010-10-04
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | - Responsibility of clearing hex_errno is no longer with caller - More conservative bounds checking - Length requirement of hex_errno documented - Output format documented
* | | | Make tor_sscanf handle %xNick Mathewson2010-10-11
| | | |
* | | | Merge remote branch 'origin/maint-0.2.2'Nick Mathewson2010-10-04
|\ \ \ \ | |/ / / |/| | / | | |/ | |/|
| * | Correct a bogus comment.Robert Ransom2010-10-04
| | | | | | | | | | | | | | | | | | Whether or not OpenSSL reference-counts SSL_CTX objects is irrelevant; what matters is that Tor reference-counts its wrapper objects for SSL_CTXs.
| * | Correct a couple of log messages in tortls.cRobert Ransom2010-10-04
| | |
| * | Fix several comments in tortls.cRobert Ransom2010-10-04
| | |
* | | Initialize fd values in tor_port_check_forwarding to -1Nick Mathewson2010-10-01
| |/ |/|
* | Merge branch 'tor-fw-squashed2'Nick Mathewson2010-09-30
|\ \ | | | | | | | | | | | | Conflicts: src/common/util.c
| * | Fix space and formatting issuesNick Mathewson2010-09-30
| | |
| * | #if-out the fw-helper code in util.c when building on windowsNick Mathewson2010-09-30
| | |
| * | Start tor-fw-helper in the background, and log whatever it outputsSteven Murdoch2010-09-30
| | |
* | | Merge remote branch 'origin/maint-0.2.2'Nick Mathewson2010-09-30
|\ \ \ | |/ / |/| / | |/
| * Fix check-spacesSebastian Hahn2010-09-30
| |
* | make c612ddee compile with old libeventsRoger Dingledine2010-09-29
| |
* | Autodetect the number of CPUs when possible if NumCPUs==0Nick Mathewson2010-09-28
| | | | | | | | | | | | | | This is needed for IOCP, since telling the IOCP backend about all your CPUs is a good idea. It'll also come in handy with asn's multithreaded crypto stuff, and for people who run servers without reading the manual.
* | Add a new option to enable/disable IOCP supportNick Mathewson2010-09-28
| |
* | Merge branch 'bufferevent5'Nick Mathewson2010-09-27
|\ \ | |/ |/|
| * Make the bufferevent code use the renegotiation-reenabling hackNick Mathewson2010-09-27
| |
| * Always defer bufferevent_openssl callbacks to avoid reentrant invocationsNick Mathewson2010-09-27
| |