aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2019-03-25Split all controller events code into a new control_events.cNick Mathewson
Also, split the formatting code shared by control.c and control_events.c into controller_fmt.c.
2019-03-25Merge remote-tracking branch 'tor-github/pr/785'teor
2019-03-22Merge branch 'maint-0.4.0'Nick Mathewson
2019-03-22Merge branch 'bug29693_040_radical_squashed' into maint-0.4.0Nick Mathewson
2019-03-22prob-distr: Decrease false positive rate of stochastic tests.George Kadianakis
2019-03-22Merge remote-tracking branch 'tor-github/pr/819'teor
2019-03-22circpad: Rename circpad_machine_state_t to circpad_machine_runtime_t.George Kadianakis
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
2019-03-22circpad/prob_distr: Use crypto_fast_rng() instead of the old RNG.George Kadianakis
2019-03-21Bump version to 0.4.0.3-alphaNick Mathewson
2019-03-21circpad: Don't pad if Tor is in dormant mode.George Kadianakis
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.
2019-03-19Merge branch 'maint-0.4.0'Nick Mathewson
2019-03-18Merge branch 'bug29706_035_minimal_merge' into bug29706_040_minimal_mergeteor
Comment merge.
2019-03-18Merge branch 'bug29706_034_minimal_merge' into bug29706_035_minimal_mergeteor
2019-03-18test/sr: update sr_state_free() to sr_state_free_all() in a commentteor
2019-03-18Merge branch 'bug29706_029_minimal' into bug29706_034_minimal_mergeteor
2019-03-18test/sr: Clear SRVs after init, and before setupteor
Already merged to 0.4.0 and later in tor-github/pr/776. Backported to 0.2.9 and later with minor comment changes. Part of 29706.
2019-03-15Merge branch 'maint-0.4.0'Nick Mathewson
2019-03-15Merge branch 'bug28656_035_squashed' into maint-0.4.0Nick Mathewson
2019-03-15Stop logging a BUG() warning when tor is waiting for exit descriptorsteor
Fixes bug 28656; bugfix on 0.3.5.1-alpha.
2019-03-15Merge branch 'maint-0.4.0'Nick Mathewson
2019-03-15Merge remote-tracking branch 'tor-github/pr/776' into maint-0.4.0Nick Mathewson
2019-03-15Merge branch 'maint-0.4.0'Nick Mathewson
2019-03-15Merge remote-tracking branch 'tor-github/pr/791' into maint-0.4.0Nick Mathewson
2019-03-14circ: Remove n_mux and p_mux membersDavid Goulet
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>
2019-03-14relays shouldn't close idle rend circuitsRoger Dingledine
Allow connections to single onion services to remain idle without being disconnected. Relays acting as rendezvous points for single onion services were mistakenly closing idle established rendezvous circuits after 60 seconds, thinking that they are unused directory-fetching circuits that had served their purpose. Fixes bug 29665; bugfix on 0.2.1.26.
2019-03-14Merge remote-tracking branch 'tor-github/pr/795' into maint-0.3.4teor
2019-03-14Merge remote-tracking branch 'tor-github/pr/794' into maint-0.3.4teor
2019-03-14Merge branch 'bug28096-029-squashed' into bug28096-034-squashedteor
Merge the new code, and preserve the #else macro comment from 0.3.4.
2019-03-14Merge remote-tracking branch 'nickm/bug27073_029' into bug27073_034teor
Replace == with OP_EQ in test macros.
2019-03-14Merge remote-tracking branch 'tor-github/pr/771' into maint-0.3.4teor
2019-03-13prob_distr: Better document our public API.George Kadianakis
2019-03-13prob_distr: Implement type-safe downcasting functions.George Kadianakis
2019-03-13Merge branch 'pr_722_squashed'Nick Mathewson
2019-03-13Fix test prob distr parameters that caused warnings.George Kadianakis
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).
2019-03-13Merge remote-tracking branch 'tor-github/pr/705'Nick Mathewson
2019-03-13circpad: Machines MUST have strictly increasing histogram edges.George Kadianakis
Add a basic validation function for the histograms. It can be a building block for the future
2019-03-13circpad: Documentation improvements after Nick's review.George Kadianakis
2019-03-13test/sr: Clear SRVs after init, and before setupteor
Part of 29706.
2019-03-12Fix all nonconformant headers' guard macros.Nick Mathewson
2019-03-12Merge branch 'maint-0.4.0'George Kadianakis
2019-03-12Merge branch 'tor-github/pr/763' into maint-0.4.0George Kadianakis
2019-03-12Merge branch 'bug23576-041-rebased-squashed'Nick Mathewson
2019-03-12hs: abolish hs_desc_link_specifier_dup()teor
The previous commits introduced link_specifier_dup(), which is implemented using trunnel's opaque interfaces. So we can now remove hs_desc_link_specifier_dup(). Cleanup after bug 22781.
2019-03-12test/hs: minor hs test fixesteor
Cleanup some bugs discovered during 23576: * stop copying the first 20 characters of a 40-character hex string to a binary fingerprint * stop putting IPv6 addresses in a variable called "ipv4" * explain why we do a duplicate tt_int_op() to deliberately fail and print a value Fixes bug 29243; bugfix on 0.3.2.1-alpha.
2019-03-12hs: abolish hs_desc_link_specifier_tteor
The previous commits for 23576 confused hs_desc_link_specifier_t and link_specifier_t. Removing hs_desc_link_specifier_t fixes this confusion. Fixes bug 22781; bugfix on 0.3.2.1-alpha.
2019-03-12Merge remote-tracking branch 'tor-github/pr/779'Nick Mathewson
2019-03-12Merge branch 'maint-0.4.0'Nick Mathewson
2019-03-12Merge remote-tracking branch 'tor-github/pr/776' into maint-0.4.0Nick Mathewson
2019-03-12test/sr: update sr_state_free() to sr_state_free_all()teor
The function name changed between 0.2.9 and 0.3.4.
2019-03-12Merge branch bug29706_029_refactor into bug29706_034_refactorteor