1. 12 Nov, 2020 1 commit
    • Samanta Navarro's avatar
      Fix typos. · 4a0cd795
      Samanta Navarro authored and David Goulet's avatar David Goulet committed
      Typos found with codespell.
      Please keep in mind that this should have impact on actual code
      and must be carefully evaluated:
      -    ctf_enum_value("CONTROLER", CIRCUIT_PURPOSE_CONTROLLER)
  2. 02 Jul, 2020 1 commit
  3. 16 Jun, 2020 1 commit
  4. 10 Jun, 2020 1 commit
  5. 20 Dec, 2019 1 commit
    • teor's avatar
      Replace several C identifiers. · 8c23ac4a
      teor authored
      This is an automated commit, generated by this command:
      ./scripts/maint/rename_c_identifier.py \
  6. 19 Dec, 2019 1 commit
  7. 28 Oct, 2019 1 commit
    • David Goulet's avatar
      test: Add fakecircs.{h|c} helper · dba249bc
      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
      Signed-off-by: David Goulet's avatarDavid Goulet <dgoulet@torproject.org>
  8. 05 Sep, 2019 1 commit
  9. 12 Aug, 2019 1 commit
  10. 05 Aug, 2019 2 commits
  11. 05 Jun, 2019 1 commit
  12. 22 May, 2019 1 commit
  13. 16 May, 2019 4 commits
  14. 15 May, 2019 6 commits
  15. 13 May, 2019 1 commit
  16. 03 May, 2019 6 commits
  17. 05 Apr, 2019 6 commits
  18. 21 Mar, 2019 2 commits
    • George Kadianakis's avatar
      circpad: Rename circpad_machine_state_t to circpad_machine_runtime_t. · 57291602
      George Kadianakis authored and teor's avatar teor committed
      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
    • George Kadianakis's avatar
      circpad: Don't pad if Tor is in dormant mode. · bc64fb4e
      George Kadianakis authored and teor's avatar teor committed
      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.
  19. 15 Mar, 2019 1 commit
  20. 13 Mar, 2019 1 commit
    • George Kadianakis's avatar
      Fix test prob distr parameters that caused warnings. · a7199946
      George Kadianakis authored and Nick Mathewson's avatar Nick Mathewson committed
      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
      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).