aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2010-02-22Add parsing+verification for bw weight values.Mike Perry
2010-02-22Perform calculation of consensus bandwidth weights.Mike Perry
Also add bwweightscale consensus param. Use it as our fixed-point calculation width.
2010-02-22Add %lld compat defines.Mike Perry
2010-02-22Merge remote branch 'sebastian/coverity'Nick Mathewson
2010-02-22Merge remote branch 'sebastian/bug1254'Nick Mathewson
2010-02-22Make expand_filename into a tor_strdup() alias on windows.Nick Mathewson
On Windows, we don't have a notion of ~ meaning "our homedir", so we were deliberately using an #ifdef to avoid calling expand_filename() in multiple places. This is silly: The right place to turn a function into a no-op on a single platform is in the function itself, not in every single call-site.
2010-02-22Remove some redundant code in options_save_current()Sebastian Hahn
get_torrc_fname() does the same thing we did in this code, so let's replace it.
2010-02-22Expand homedirs in paths passed to tor-checkkeySebastian Hahn
This is so that coverity stops complaining about using a user-supplied string with the open() syscall. Let's see if it works.
2010-02-22Zero a cipher completely before freeing itSebastian Hahn
We used to only zero the first ptrsize bytes of the cipher. Since cipher is large enough, we didn't zero too many bytes. Discovered and fixed by ekir. Fixes bug 1254.
2010-02-22Break early on unknown extendcircuit purposeSebastian Hahn
Don't continue handling EXTENDCIRCUIT messages when we get an unknown purpose.
2010-02-22Fix a memory leak, found by coveritySebastian Hahn
2010-02-22Remove some redundand code in control.cSebastian Hahn
Found by coverity
2010-02-22network-status-version must come first in a vote/consensusSebastian Hahn
Spec conformance issue: The code didn't force the network-status-version token to be the first token in a v3 vote or consensus. Problem discovered by Parakeep.
2010-02-22prepare for 0.2.2.9-alphaRoger Dingledine
2010-02-21fix typo and garbage grammarRoger Dingledine
2010-02-20Merge remote branch 'public/cbt-status'Nick Mathewson
Conflicts: ChangeLog
2010-02-19Merge remote branch 'sebastian/bug1143'Nick Mathewson
2010-02-19Make the DNSPort option work with libevent 2.xSebastian Hahn
We need to use evdns_add_server_port_with_base() when configuring our DNS listener, because libevent segfaults otherwise. Add a macro in compat_libevent.h to pick the correct implementation depending on the libevent version. Fixes bug 1143, found by SwissTorExit
2010-02-18Future-proof the control protocol by ignoring unrecognized keyword argsNick Mathewson
2010-02-18Make more arguments in control.c properly case-insensitive.Nick Mathewson
2010-02-18Describe the recent timeouts reallocation behavior.Mike Perry
2010-02-18Move CBT params into consensus.Mike Perry
2010-02-18Add an event for a case where we drop guards.Mike Perry
Also add a comment about an odd CBT timeout edgecase.
2010-02-18Allow "EXTENDCIRCUIT 0" to omit a path.Mike Perry
2010-02-18Add BUILDTIMEOUT_SET event for CBT stress testing.Mike Perry
2010-02-18Merge remote branch 'origin/maint-0.2.1'Nick Mathewson
Conflicts: ChangeLog configure.in contrib/tor-mingw.nsi.in src/win32/orconfig.h
2010-02-18Bump version to 0.2.1.23-devNick Mathewson
2010-02-18Fix compileSebastian Hahn
2010-02-17Even more conservative option-setting for SSL renegotiation.Nick Mathewson
This time, set the SSL3_FLAGS_ALLOW_UNSAFE_RENEGOTIATION flag on every version before OpenSSL 0.9.8l. I can confirm that the option value (0x0010) wasn't reused until OpenSSL 1.0.0beta3.
2010-02-15Build correctly with Libevent 2.0.4-alpha and laterNick Mathewson
2010-02-12Remove the --enable-iphone option as needless.Nick Mathewson
On or-talk, Marco Bonetti reports that recent iPhone SDKs build Tor fine without it.
2010-02-12new dannenberg address; make moria2's demise official.Roger Dingledine
2010-02-12prepare for 0.2.1.23Roger Dingledine
2010-02-10Add Windows version detection for Vista and 7Sebastian Hahn
Vista is Windows 6.0, and 7 is Windows 6.1. Fixes bug 1097. Also fix a coding style violation.
2010-02-09Merge remote branch 'origin/maint-0.2.1'Nick Mathewson
2010-02-09Merge remote branch 'sebastian/bug925'Nick Mathewson
2010-02-09Merge remote branch 'sebastian/bug1238'Nick Mathewson
2010-02-09Merge remote branch 'sebastian/exit-notice'Nick Mathewson
2010-02-09Make tor_addr_copy() conform to memcpy requirementsNick Mathewson
The src and dest of a memcpy() call aren't supposed to overlap, but we were sometimes calling tor_addr_copy() as a no-op. Also, tor_addr_assign was a redundant copy of tor_addr_copy(); this patch removes it.
2010-02-09Fix a whitespace violationSebastian Hahn
2010-02-09Speed up the execution of exit_policy_is_general_exit_helper()Sebastian Hahn
It isn't necessary to walk through all possible subnets when the policy we're looking at doesn't touch that subnet.
2010-02-09Another unit test for exit_policy_is_general_exit()Sebastian Hahn
2010-02-08Fix the path to the exit-notice file in torrc.sampleSebastian Hahn
Also reword it slightly to reflect the fact that no packagers ship the file.
2010-02-080/8 doesn't count as a /8 subnet towards an Exit flagSebastian Hahn
2010-02-08Don't spam controllers with TOO_MANY_CONNECTIONS eventsSebastian Hahn
We implemented ratelimiting for warnings going into the logfile, but didn't rate-limit controller events. Now both log warnings and controller events are rate-limited.
2010-02-08Don't use gethostbyname() in resolve_my_address()Sebastian Hahn
Tor has tor_lookup_hostname(), which prefers ipv4 addresses automatically. Bug 1244 occured because gethostbyname() returned an ipv6 address, which Tor cannot handle currently. Fixes bug 1244; bugfix on 0.0.2pre25. Reported by Mike Mestnik.
2010-02-07Merge commit 'origin/maint-0.2.1'Nick Mathewson
2010-02-07lookup_last_hid_serv_request() could overflow and leak memorySebastian Hahn
The problem was that we didn't allocate enough memory on 32-bit platforms with 64-bit time_t. The memory leak occured every time we fetched a hidden service descriptor we've fetched before.
2010-02-04Another unit test for exit_policy_is_general_exit()Sebastian Hahn
2010-02-04Call exit_policy_is_general_exit lessSebastian Hahn
When calculating the is_exit flag for a routerinfo_t, we don't need to call exit_policy_is_general_exit() if router_exit_policy_rejects_all() tells us it definitely is an exit. This check is much cheaper than running exit_policy_is_general_exit().