aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_hs_dos.c
AgeCommit message (Collapse)Author
2020-01-08It's 2020. Update the copyright dates with "make update-copyright"Nick Mathewson
2019-09-09hs-v3: Rename validation function in hs_intropoint.cDavid Goulet
Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-09-09hs-v3: Move DoS parameter check against 0David Goulet
Move it outside of the validation function since 0 is a valid value but disables defenses. Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-08-26hs-v3: Refactor DoS cell extension parameters validationDavid Goulet
Move everything to its own function in order to better log, document and tests the introduction point validation process. Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-08-26hs-v3: Privatize access to HS DoS consensus paramDavid Goulet
Remove the public functions returning the HS DoS consensus param or default values as it is exclusively used internally now. Rename the param_* variables to consensus_param_* for better code semantic. Finally, make some private functions available to unit tests. Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-08-26test: Adapt HS DoS test to use latest parameterDavid Goulet
We added a flag on the circuit to know if the DoS defenses are enabled or not. Before, it was solely the consensus parameter. Part of #30924 Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-08-26hs-v3: Rename INTRO2 consensus param gettersDavid Goulet
Make it clear that these functions return the consensus param only. Introduction point can not set those values with a torrc option. Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-08-06test: Series of fixes for hs_dos.c unit testsDavid Goulet
Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-08-06hs-v3: Add consensus parameters for DoS defensesDavid Goulet
Part of #15516 Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-08-06test: Add hs_dos.c unit testsDavid Goulet
Currently test the only available function which is hs_dos_can_send_intro2() within the HS anti-DoS subsystem. Closes #15516 Signed-off-by: David Goulet <dgoulet@torproject.org>