- 12 Nov, 2020 1 commit
-
-
Typos found with codespell. Please keep in mind that this should have impact on actual code and must be carefully evaluated: src/core/or/lttng_circuit.inc - ctf_enum_value("CONTROLER", CIRCUIT_PURPOSE_CONTROLLER) + ctf_enum_value("CONTROLLER", CIRCUIT_PURPOSE_CONTROLLER)
-
- 02 Jul, 2020 1 commit
-
-
Nick Mathewson authored
-
- 16 Jun, 2020 1 commit
-
-
Mike Perry authored
-
- 10 Jun, 2020 1 commit
-
-
Mike Perry authored
-
- 20 Dec, 2019 1 commit
-
-
teor authored
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
-
- 19 Dec, 2019 1 commit
-
-
teor authored
These changes were created using the "make autostyle" from 32522, and then split into commits.
-
- 28 Oct, 2019 1 commit
-
-
David Goulet authored
Fake circuits are created everywhere in the unit tests. This is an attempt at centralizing a "fake circuit creation" API like fakechans.c does for channel. This commit introduces fakecircs.c and changes test_relay.c and test_circpadding.c which were using roughly the same code. This will allow easier OR circuit creation for the future tests in test_circuitmux.c Signed-off-by:
David Goulet <dgoulet@torproject.org>
-
- 05 Sep, 2019 1 commit
-
-
- 12 Aug, 2019 1 commit
-
-
Mike Perry authored
-
- 05 Aug, 2019 2 commits
-
-
George Kadianakis authored
As per David's review.
-
George Kadianakis authored
-
- 05 Jun, 2019 1 commit
-
-
Nick Mathewson authored
-
- 22 May, 2019 1 commit
-
-
Nick Mathewson authored
Bug not in any released Tor.
-
- 16 May, 2019 4 commits
-
-
Mike Perry authored
The client side had garbage histograms and deadcode here, too. That code has been removed. The tests have also been updated to properly test the intro circ by sending padding from the relay side to the client, and verifying that both shut down when padding was up. (The tests previously erroneously tested only the client side of intro circs, which actually were supposed to be doing nothing).
-
George Kadianakis authored
-
George Kadianakis authored
-
George Kadianakis authored
We are gonna use this function to register our new machine.
-
- 15 May, 2019 6 commits
-
-
Mike Perry authored
Also test circpad expiry safeguard.
-
Mike Perry authored
Our other tests tested state lengths against padding packets, and token counts against non-padding packets. This test checks state lengths against non-padding packets (and also padding packets too), and checks token counts against padding packets (and also non-padding packets too). The next three commits are needed to make this test pass (it found 3 bugs). Yay?
-
Mike Perry authored
-
Mike Perry authored
-
Nick Mathewson authored
-
Mike Perry authored
Deliver nonpadding events instead of calling token removal functions.
-
- 13 May, 2019 1 commit
-
-
- 03 May, 2019 6 commits
-
-
George Kadianakis authored
-
George Kadianakis authored
This reverts commit ab8b80944967ee5a6a0c45dbf61839cf257bfe44.
-
George Kadianakis authored
Some of these functions are now public and cpath-specific so their name should signify the fact they are part of the cpath module: assert_cpath_layer_ok -> cpath_assert_layer_ok assert_cpath_ok -> cpath_assert_ok onion_append_hop -> cpath_append_hop circuit_init_cpath_crypto -> cpath_init_circuit_crypto circuit_free_cpath_node -> cpath_free onion_append_to_cpath -> cpath_extend_linked_list
-
George Kadianakis authored
We are using an opaque pointer so the structure needs to be allocated on the heap. This means we now need a constructor for crypt_path_t. Also modify all places initializing a crypt_path_t to use the constructor.
-
George Kadianakis authored
-
George Kadianakis authored
This commit only moves code.
-
- 05 Apr, 2019 6 commits
-
-
teor authored
-
teor authored
This test was disabled in 0.4.0 and later, but the fix in #29298 was only merged to 0.4.1. So this test will never be re-enabled in 0.4.0. Part of 29500.
-
Our monotime mocking forces us to call monotime_init() *before* we set the mocked time value. monotime_init() thus stores the first ratchet value at whatever the platform is at, and then we set fake mocked time to some later value. If monotime_init() gets a value from the host that is greater than what we choose to mock time at for our unittests, all subsequent monotime_abosolute() calls return zero, which breaks all unittests that depend on time moving forward by updating mocked monotime values. So, we need to adjust our mocked time to take the weird monotime_init() time into account, when we set fake time.
-
Hopefully this will stop monotime_absolute_usec() from returning 0 on some platforms in the tests.
-
Cancel the padding timer by changing order of sent vs recv (sent cancels).
- 21 Mar, 2019 2 commits
-
-
The name of circpad_machine_state_t was very confusing since it was conflicting with circpad_state_t and circpad_circuit_state_t. Right now here is the current meaning of these structs: circpad_state_t -> A state of the state machine. circpad_machine_runtime_t -> The current mutable runtime info of the state machine. circpad_circuit_state_t -> Circuit conditions based on which we should apply a machine to the circuit
-
This is something we should think about harder, but we probably want dormant mode to be more powerful than padding in case a client has been inactive for a day or so. After all, there are probably no circuits open at this point and dormant mode will not allow the client to open more circuits. Furthermore, padding should not block dormant mode from being activated, since dormant mode relies on SocksPort activity, and circuit padding does not mess with that.
-
- 15 Mar, 2019 1 commit
-
-
They are simply not used apart from assigning a pointer and asserting on the pointer depending on the cell direction. Closes #29196. Signed-off-by:
David Goulet <dgoulet@torproject.org>
-
- 13 Mar, 2019 1 commit
-
-
They were causing the following warnings in circuitpadding/circuitpadding_sample_distribution: src/lib/math/prob_distr.c:1311:17: runtime error: division by zero SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior src/lib/math/prob_distr.c:1311:17 in src/lib/math/prob_distr.c:1219:49: runtime error: division by zero SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior src/lib/math/prob_distr.c:1219:49 in because the distributions were called with erroneous parameters (e.g. geometric distribution with p=0). We now defined these test probability distributions with more realistic parameters. As far as the circuitpadding_sample_distribution() test is concerned, it doesn't matter if the distributions return values outside of [0,10] since we already restrict the values into that interval using min=0 and max=10 (and RTT estimate is disabled).
-