1. 19 Dec, 2019 1 commit
  2. 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>
  3. 05 Sep, 2019 1 commit
  4. 12 Aug, 2019 1 commit
  5. 05 Aug, 2019 2 commits
  6. 05 Jun, 2019 1 commit
  7. 22 May, 2019 1 commit
  8. 16 May, 2019 4 commits
  9. 15 May, 2019 6 commits
  10. 13 May, 2019 1 commit
  11. 03 May, 2019 6 commits
  12. 05 Apr, 2019 6 commits
  13. 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.
  14. 15 Mar, 2019 1 commit
  15. 13 Mar, 2019 2 commits
    • 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).
    • George Kadianakis's avatar
      circpad: Machines MUST have strictly increasing histogram edges. · cdaff26f
      George Kadianakis authored
      Add a basic validation function for the histograms. It can be a building block
      for the future
  16. 25 Feb, 2019 2 commits
  17. 15 Feb, 2019 2 commits