Age | Commit message (Collapse) | Author | |
---|---|---|---|
2021-03-12 | Update copyrights to 2021, using "make update-copyright" | Nick Mathewson | |
2021-02-19 | hs: Remove v2 code from HS circuitmap | David Goulet | |
Related to #40266 Signed-off-by: David Goulet <dgoulet@torproject.org> | |||
2020-01-09 | Merge branch 'pre_formatter_cleanups_squashed' | Nick Mathewson | |
2020-01-09 | Remove extra ; from tt_assert() macro definition. | Nick Mathewson | |
We were actually omitting the semicolon in a few places, leading to confusing indentation and some cocci failures. | |||
2020-01-08 | It's 2020. Update the copyright dates with "make update-copyright" | Nick Mathewson | |
2019-12-20 | Replace several C identifiers. | teor | |
This is an automated commit, generated by this command: ./scripts/maint/rename_c_identifier.py \ EXPOSE_CLEAN_BACKTRACE BACKTRACE_PRIVATE \ TOR_CHANNEL_INTERNAL_ CHANNEL_OBJECT_PRIVATE \ CHANNEL_PRIVATE_ CHANNEL_FILE_PRIVATE \ EXPOSE_ROUTERDESC_TOKEN_TABLE ROUTERDESC_TOKEN_TABLE_PRIVATE \ SCHEDULER_PRIVATE_ SCHEDULER_PRIVATE | |||
2019-01-16 | Bump copyright date to 2019 | Nick Mathewson | |
2018-07-05 | Fix every include path changed in the previous commit (automated) | Nick Mathewson | |
I am very glad to have written this script. | |||
2018-06-22 | Remove bloom filters, order statistics, and bitarrays from container.h | Nick Mathewson | |
2018-06-20 | Run rectify_include_paths.py | Nick Mathewson | |
2018-06-20 | Update copyrights to 2018. | Nick Mathewson | |
2018-06-15 | Extract {or,origin}_circuit_t into their own headers | Nick Mathewson | |
2018-02-15 | cmux: Always use the cmux policy | David Goulet | |
Remove the checks on cmux->policy since it should always be set. Signed-off-by: David Goulet <dgoulet@torproject.org> | |||
2017-12-08 | Update free functions into macros: src/or/ part 1 | Nick Mathewson | |
This covers addressmap.h (no change needed) through confparse.h | |||
2017-08-24 | prop224: Register RP circuit when it opens | David Goulet | |
Only register the RP circuit when it opens and not when we send the INTRODUCE1 cell else, when re-extending to a new IP, we would register the same RP circuit with the same cookie twice leading to the circuit being closed. Signed-off-by: David Goulet <dgoulet@torproject.org> | |||
2017-08-24 | prop224: Add client-side rend circuit support to HS circuitmap | George Kadianakis | |
Signed-off-by: David Goulet <dgoulet@torproject.org> | |||
2017-04-17 | prop224 tests: Remove useless NULL check before circuit_free(). | George Kadianakis | |
Addresses coverity issue CID 1405130. | |||
2017-04-13 | fix wide lines | Nick Mathewson | |
2017-04-13 | hs: Add service-side circuitmap API. | George Kadianakis | |
Now we have separate getters and setters for service-side and relay-side. I took this approach over adding arguments to the already existing methods to have more explicit type-checking, and also because some functions would grow too large and dirty. This commit also fixes every callsite to use the new function names which modifies the legacy HS (v2) and the prop224 (v3) code. Signed-off-by: David Goulet <dgoulet@torproject.org> | |||
2017-04-07 | hs: Refactor circuitmap to use circuit_t instead of or_circuit_t. | George Kadianakis | |
2017-03-15 | Run the copyright update script. | Nick Mathewson | |
2016-12-14 | prop224 prepwork: Use of HS circuitmap in existing HS code. | George Kadianakis | |
The new HS circuitmap API replaces old public functions as follows: circuit_clear_rend_token -> hs_circuitmap_remove_circuit circuit_get_rendezvous -> hs_circuitmap_get_rend_circ circuit_get_intro_point -> hs_circuitmap_get_intro_circ_v2 circuit_set_rendezvous_cookie -> hs_circuitmap_register_rend_circ circuit_set_intro_point_digest -> hs_circuitmap_register_intro_circ_v2 This commit also removes the old rendinfo code that is now unused. It also fixes the broken rendinfo unittests. | |||
2016-09-09 | Fix a coupole of coverity complaints. | Nick Mathewson | |
2016-09-08 | Simplify log_test_helpers interface | Nick Mathewson | |
Previously, you needed to store the previous log severity in a local variable, and it wasn't clear if you were allowed to call these functions more than once. | |||
2016-09-08 | Fix bug warnings in test_circuitlist. | Nick Mathewson | |
2016-02-27 | Update the copyright year. | Nick Mathewson | |
2015-01-02 | Bump copyright dates to 2015, in case someday this matters. | Nick Mathewson | |
2014-11-12 | Replace operators used as macro arguments with OP_XX macros | Nick Mathewson | |
Part of fix for 13172 | |||
2014-10-28 | Add another year to our copyright dates. | Nick Mathewson | |
Because in 95 years, we or our successors will surely care about enforcing the BSD license terms on this code. Right? | |||
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-03 | Fix some 'dereference-before-null-check' warnings in test_circuitlist.c | Nick Mathewson | |
Found by Coverity Scan. [CID 1234704, 1234705, 1234706] | |||
2014-09-02 | Fix more (void*)11 warnings in the tests | Nick Mathewson | |
2014-05-08 | Fix numerous type errors in the unit tests | Nick Mathewson | |
Remove tinytest casts that were suppressing them. Fix for #11825. | |||
2014-05-07 | Fix test_pick_circid on 32-bit platforms | Nick Mathewson | |
2014-05-07 | Basic tests for get_unique_circ_id_by_chan. | Nick Mathewson | |
2014-04-17 | Fix uninitialized-ram free in unit tests | Nick Mathewson | |
Fix on fb595922; bug not in any released Tor. Found with --enable-expensive-hardening. | |||
2014-04-09 | Fix a dumb C bug in the unit tests for 9841 | Nick Mathewson | |
Fixes bug 11460; bug only affects unit tests and is not in any released version of Tor. | |||
2014-04-08 | Merge remote-tracking branch 'public/bug9841_025' | Nick Mathewson | |
2014-04-04 | Test for circuit_set_rend_token(.,.,NULL) | Nick Mathewson | |
2014-03-18 | Fix a use-after-free in test_circuitlist.c | Nick Mathewson | |
Found by clang-3.4 analyzers. | |||
2014-02-13 | Tests for rend_token maps | Nick Mathewson | |
This gets coverage of everything except for the cases which should be impossible. | |||
2013-07-15 | Appease "make check-spaces" | Nick Mathewson | |
2013-07-15 | Avoid compiler warning 'unused param'. | Linus Nordberg | |
Fixes #9261. | |||
2013-07-10 | Add some basic unit tests for the circuit map data structure. | Nick Mathewson | |
These show off the new mocking code by mocking the circuitmux code so that we can test the circuit map code in isolation. |