Age | Commit message (Collapse) | Author | |
---|---|---|---|
2014-09-30 | Fix unused-arguments warnings | Nick Mathewson | |
2014-09-30 | Temporarily disable scheduler_trigger as unused | Nick Mathewson | |
2014-09-30 | Implement scheduler mechanism to track lists of channels wanting cells or ↵ | Andrea Shepard | |
writes; doesn't actually drive the cell flow from it yet | |||
2014-09-22 | + is not how we say concatenate | Roger Dingledine | |
2014-09-22 | Merge branch 'bug8197_squashed' | Nick Mathewson | |
Conflicts: src/test/test_policy.c | |||
2014-09-22 | Writing comments for newly added functions. | rl1987 | |
2014-09-22 | Whitespace fixes | rl1987 | |
2014-09-22 | Using the new API in unit-test. | rl1987 | |
2014-09-22 | New API for policies_parse_exit_policy(). | rl1987 | |
2014-09-22 | Remove config options that have been obsolete since 0.2.3 | Adrien BAK | |
2014-09-22 | Merge remote-tracking branch 'arma/feature13211' | Nick Mathewson | |
2014-09-22 | Merge remote-tracking branch 'arma/feature13153' | Nick Mathewson | |
2014-09-22 | Merge remote-tracking branch 'public/bug7733a' | Nick Mathewson | |
2014-09-21 | clients use optimistic data when reaching hidden services | Roger Dingledine | |
Allow clients to use optimistic data when connecting to a hidden service, which should cut out the initial round-trip for client-side programs including Tor Browser. (Now that Tor 0.2.2.x is obsolete, all hidden services should support server-side optimistic data.) See proposal 181 for details. Implements ticket 13211. | |||
2014-09-21 | Use optimistic data even if we don't know exitnode->rs | Roger Dingledine | |
I think we should know the routerstatus for our exit relay, since we built a circuit to it. So I think this is just a code simplication. | |||
2014-09-21 | get rid of routerstatus->version_supports_optimistic_data | Roger Dingledine | |
Clients are now willing to send optimistic circuit data (before they receive a 'connected' cell) to relays of any version. We used to only do it for relays running 0.2.3.1-alpha or later, but now all relays are new enough. Resolves ticket 13153. | |||
2014-09-21 | get rid of trivial redundant comment | Roger Dingledine | |
2014-09-21 | Stop silently skipping invalid args to setevents | Roger Dingledine | |
Return an error when the second or later arguments of the "setevents" controller command are invalid events. Previously we would return success while silently skipping invalid events. Fixes bug 13205; bugfix on 0.2.3.2-alpha. Reported by "fpxnns". | |||
2014-09-20 | Merge branch 'maint-0.2.5' | Roger Dingledine | |
2014-09-20 | Merge branch 'maint-0.2.4' into maint-0.2.5 | Roger Dingledine | |
Conflicts: src/or/config.c | |||
2014-09-20 | Merge branch 'maint-0.2.3' into maint-0.2.4 | Roger Dingledine | |
2014-09-20 | gabelmoo's IPv4 address changed | Sebastian Hahn | |
2014-09-18 | Merge branch 'bug4244b_squashed' | Nick Mathewson | |
2014-09-18 | Clients no longer write "DirReqStatistics 0" in their saveconf output | Roger Dingledine | |
Stop modifying the value of our DirReqStatistics torrc option just because we're not a bridge or relay. This bug was causing Tor Browser users to write "DirReqStatistics 0" in their torrc files as if they had chosen to change the config. Fixes bug 4244; bugfix on 0.2.3.1-alpha. | |||
2014-09-18 | Fix a double-free in failing case of handle_control_authenticate. | Nick Mathewson | |
Bugfix on ed8f020e205267e6270494634346ab68d830e1d8; bug not in any released version of Tor. Found by Coverity; this is CID 1239290. | |||
2014-09-18 | Use the DL_SCHED_CONSENSUS schedule for consensuses. | Nick Mathewson | |
Fixes bug 11679; bugfix on 0.2.2.6-alpha | |||
2014-09-18 | Activate INSTRUMENT_DOWNLOADS under clang analyzer as well as coverity | Nick Mathewson | |
Patch from teor; ticket 13177. | |||
2014-09-17 | Fix a windows unused-arg warning | Nick Mathewson | |
2014-09-17 | Merge remote-tracking branch 'public/ticket_13119_v3' | Nick Mathewson | |
2014-09-16 | torrc.sample: Fix units | Peter Palfrader | |
2014-09-16 | Merge remote-tracking branch 'origin/maint-0.2.5' | Nick Mathewson | |
2014-09-16 | Merge remote-tracking branch 'origin/maint-0.2.4' into maint-0.2.5 | Nick Mathewson | |
2014-09-16 | clients now send correct address for rendezvous point | Roger Dingledine | |
Clients now send the correct address for their chosen rendezvous point when trying to access a hidden service. They used to send the wrong address, which would still work some of the time because they also sent the identity digest of the rendezvous point, and if the hidden service happened to try connecting to the rendezvous point from a relay that already had a connection open to it, the relay would reuse that connection. Now connections to hidden services should be more robust and faster. Also, this bug meant that clients were leaking to the hidden service whether they were on a little-endian (common) or big-endian (rare) system, which for some users might have reduced their anonymity. Fixes bug 13151; bugfix on 0.2.1.5-alpha. | |||
2014-09-16 | Add script to detect and remove unCish malloc-then-cast pattern | Nick Mathewson | |
Also, apply it. | |||
2014-09-16 | clean up eol whitespace from coccinelle-generated patches | Nick Mathewson | |
2014-09-16 | Remove the legacy_test_helper and legacy_setup wrappers | Nick Mathewson | |
These wrappers went into place when the default type for our unit test functions changed from "void fn(void)" to "void fn(void *arg)". To generate this patch, I did the same hokey-pokey as before with replacing all operators used as macro arguments, then I ran a coccinelle script, then I ran perl script to fix up everything that used legacy_test_helper, then I manually removed the legacy_test_helper functions, then I ran a final perl script to put the operators back how they were. ============================== #!/usr/bin/perl -w -i -p s/==,/_X_EQ_,/g; s/!=,/_X_NE_,/g; s/<,/_X_LT_,/g; s/>,/_X_GT_,/g; s/>=,/_X_GEQ_,/g; s/<=,/_X_LEQ_,/g; -------------------- @@ identifier func =~ "test_.*$"; statement S, S2; @@ static void func ( -void +void *arg ) { ... when != S2 +(void) arg; S ... } -------------------- #!/usr/bin/perl -w -i -p s/, *legacy_test_helper, *([^,]+), *\&legacy_setup, *([^\}]+) *}/, $2, $1, NULL, NULL }/g; -------------------- #!/usr/bin/perl -w -i -p s/_X_NEQ_/!=/g; s/_X_NE_/!=/g; s/_X_EQ_/==/g; s/_X_GT_/>/g; s/_X_LT_/</g; s/_X_GEQ_/>=/g; s/_X_LEQ_/<=/g; -------------------- | |||
2014-09-15 | Replace all uses of test_{str,}eq | Nick Mathewson | |
2014-09-15 | Replace the remaining test_assert instances | Nick Mathewson | |
2014-09-15 | remove two unused test_* macros | Nick Mathewson | |
2014-09-15 | Replace remaining uses of deprecated test_mem* functions | Nick Mathewson | |
2014-09-15 | Replace the remaining test_n?eq_ptr calls | Nick Mathewson | |
2014-09-15 | Make not even macros use test_fail_msg. | Nick Mathewson | |
2014-09-15 | Use coccinelle scripts to clean up our unit tests | Nick Mathewson | |
This should get rid of most of the users of the old test_* functions. Some are in macros and will need manual cleanup, though. This patch is for 13119, and was automatically generated with these scripts. The perl scripts are there because coccinelle hates operators as macro arguments. ------------------------------ s/==,/_X_EQ_,/g; s/!=,/_X_NE_,/g; s/<,/_X_LT_,/g; s/>,/_X_GT_,/g; s/>=,/_X_GEQ_,/g; s/<=,/_X_LEQ_,/g; ------------------------------ @@ expression a; identifier func; @@ func (...) { <... -test_fail_msg +TT_DIE ( +( a +) ) ...> } @@ identifier func; @@ func (...) { <... -test_fail() +TT_DIE(("Assertion failed.")) ...> } @@ expression a; identifier func; @@ func (...) { <... -test_assert +tt_assert (a) ...> } @@ expression a, b; identifier func; @@ func (...) { <... -test_eq +tt_int_op (a, +_X_EQ_, b) ...> } @@ expression a, b; identifier func; @@ func (...) { <... -test_neq +tt_int_op (a, +_X_NEQ_, b) ...> } @@ expression a, b; identifier func; @@ func (...) { <... -test_streq +tt_str_op (a, +_X_EQ_, b) ...> } @@ expression a, b; identifier func; @@ func (...) { <... -test_strneq +tt_str_op (a, +_X_NEQ_, b) ...> } @@ expression a, b; identifier func; @@ func (...) { <... -test_eq_ptr +tt_ptr_op (a, +_X_EQ_, b) ...> } @@ expression a, b; identifier func; @@ func() { <... -test_neq_ptr +tt_ptr_op (a, +_X_NEQ_, b) ...> } @@ expression a, b, len; identifier func; @@ func (...) { <... -test_memeq +tt_mem_op (a, +_X_EQ_, b, len) ...> } @@ expression a, b, len; identifier func; @@ func (...) { <... -test_memneq +tt_mem_op (a, +_X_NEQ_, b, len) ...> } ------------------------------ @@ char a, b; identifier func; @@ func (...) { <... -tt_assert +tt_int_op ( -a == b +a, _X_EQ_, b ) ...> } @@ int a, b; identifier func; @@ func (...) { <... -tt_assert +tt_int_op ( -a == b +a, _X_EQ_, b ) ...> } @@ long a, b; identifier func; @@ func (...) { <... -tt_assert +tt_int_op ( -a == b +a, _X_EQ_, b ) ...> } @@ unsigned int a, b; identifier func; @@ func (...) { <... -tt_assert +tt_uint_op ( -a == b +a, _X_EQ_, b ) ...> } @@ unsigned long a, b; identifier func; @@ func (...) { <... -tt_assert +tt_uint_op ( -a == b +a, _X_EQ_, b ) ...> } @@ char a, b; identifier func; @@ func (...) { <... -tt_assert +tt_int_op ( -a != b +a, _X_NEQ_, b ) ...> } @@ int a, b; identifier func; @@ func (...) { <... -tt_assert +tt_int_op ( -a != b +a, _X_NEQ_, b ) ...> } @@ long a, b; identifier func; @@ func (...) { <... -tt_assert +tt_int_op ( -a != b +a, _X_NEQ_, b ) ...> } @@ unsigned int a, b; identifier func; @@ func (...) { <... -tt_assert +tt_uint_op ( -a != b +a, _X_NEQ_, b ) ...> } @@ unsigned long a, b; identifier func; @@ func (...) { <... -tt_assert +tt_uint_op ( -a != b +a, _X_NEQ_, b ) ...> } @@ char a, b; identifier func; @@ func (...) { <... -tt_assert +tt_int_op ( -a >= b +a, _X_GEQ_, b ) ...> } @@ int a, b; identifier func; @@ func (...) { <... -tt_assert +tt_int_op ( -a >= b +a, _X_GEQ_, b ) ...> } @@ long a, b; identifier func; @@ func (...) { <... -tt_assert +tt_int_op ( -a >= b +a, _X_GEQ_, b ) ...> } @@ unsigned int a, b; identifier func; @@ func (...) { <... -tt_assert +tt_uint_op ( -a >= b +a, _X_GEQ_, b ) ...> } @@ unsigned long a, b; identifier func; @@ func (...) { <... -tt_assert +tt_uint_op ( -a >= b +a, _X_GEQ_, b ) ...> } @@ char a, b; identifier func; @@ func (...) { <... -tt_assert +tt_int_op ( -a <= b +a, _X_LEQ_, b ) ...> } @@ int a, b; identifier func; @@ func (...) { <... -tt_assert +tt_int_op ( -a <= b +a, _X_LEQ_, b ) ...> } @@ long a, b; identifier func; @@ func (...) { <... -tt_assert +tt_int_op ( -a <= b +a, _X_LEQ_, b ) ...> } @@ unsigned int a, b; identifier func; @@ func (...) { <... -tt_assert +tt_uint_op ( -a <= b +a, _X_LEQ_, b ) ...> } @@ unsigned long a, b; identifier func; @@ func (...) { <... -tt_assert +tt_uint_op ( -a <= b +a, _X_LEQ_, b ) ...> } @@ char a, b; identifier func; @@ func (...) { <... -tt_assert +tt_int_op ( -a > b +a, _X_GT_, b ) ...> } @@ int a, b; identifier func; @@ func (...) { <... -tt_assert +tt_int_op ( -a > b +a, _X_GT_, b ) ...> } @@ long a, b; identifier func; @@ func (...) { <... -tt_assert +tt_int_op ( -a > b +a, _X_GT_, b ) ...> } @@ unsigned int a, b; identifier func; @@ func (...) { <... -tt_assert +tt_uint_op ( -a > b +a, _X_GT_, b ) ...> } @@ unsigned long a, b; identifier func; @@ func (...) { <... -tt_assert +tt_uint_op ( -a > b +a, _X_GT_, b ) ...> } @@ char a, b; identifier func; @@ func (...) { <... -tt_assert +tt_int_op ( -a < b +a, _X_LT_, b ) ...> } @@ int a, b; identifier func; @@ func (...) { <... -tt_assert +tt_int_op ( -a < b +a, _X_LT_, b ) ...> } @@ long a, b; identifier func; @@ func (...) { <... -tt_assert +tt_int_op ( -a < b +a, _X_LT_, b ) ...> } @@ unsigned int a, b; identifier func; @@ func (...) { <... -tt_assert +tt_uint_op ( -a < b +a, _X_LT_, b ) ...> } @@ unsigned long a, b; identifier func; @@ func (...) { <... -tt_assert +tt_uint_op ( -a < b +a, _X_LT_, b ) ...> } ------------------------------ s/_X_NEQ_/!=/g; s/_X_NE_/!=/g; s/_X_EQ_/==/g; s/_X_GT_/>/g; s/_X_LT_/</g; s/_X_GEQ_/>=/g; s/_X_LEQ_/<=/g; s/test_mem_op\(/tt_mem_op\(/g; | |||
2014-09-15 | Don't pass invalid memory regions to digestmap_set/get in test_routerlist | Nick Mathewson | |
Fixes bug in c887e20e6a5a2c17c65; bug in no released Tor version. | |||
2014-09-15 | Clean up a clangalyzer warning in directory_remove_invalid | Nick Mathewson | |
"At this point in the code, msg has been set to a string constant. But the tor code checks that msg is not NULL, and the redundant NULL check confuses the analyser[...] To avoid this spurious warning, the patch initialises msg to NULL." Patch from teor. another part of 13157. | |||
2014-09-15 | Clear up another clangalyzer issue | Nick Mathewson | |
"The NULL pointer warnings on the return value of tor_addr_to_in6_addr32() are incorrect. But clang can't work this out itself due to limited analysis depth. To teach the analyser that the return value is safe to dereference, I applied tor_assert to the return value." Patch from teor. Part of 13157. | |||
2014-09-13 | fix typo in comment | Roger Dingledine | |
2014-09-11 | Bump maint-0.2.5 to 0.2.5.7-rc-dev | Nick Mathewson | |
2014-09-11 | One more whitespace fix | Nick Mathewson | |
2014-09-11 | Whitespace cleanups in test_util | Nick Mathewson | |