diff options
author | David Goulet <dgoulet@torproject.org> | 2019-08-20 08:35:21 -0400 |
---|---|---|
committer | George Kadianakis <desnacked@riseup.net> | 2019-08-26 15:53:46 +0300 |
commit | 82639a8c7bf59bb6ae73218cd78cee07b6586d96 (patch) | |
tree | 0d4b3e2d2575a091320ccd111e14f6b53a20359f /src/feature/hs/hs_dos.h | |
parent | f95b5d07c1a0407a60ca6335c032ec7a01b28968 (diff) | |
download | tor-82639a8c7bf59bb6ae73218cd78cee07b6586d96.tar.gz tor-82639a8c7bf59bb6ae73218cd78cee07b6586d96.zip |
hs-v3: Move to hs_dos.c INTRO2 defenses initialization
A bit cleaner especially that the next commit(s) will make the consensus param
interface private to hs_dos.c so we expose as little as we can outside of the
subsystem.
Part of #30924
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/feature/hs/hs_dos.h')
-rw-r--r-- | src/feature/hs/hs_dos.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/feature/hs/hs_dos.h b/src/feature/hs/hs_dos.h index ee7b697c70..1d2dd67d0f 100644 --- a/src/feature/hs/hs_dos.h +++ b/src/feature/hs/hs_dos.h @@ -22,6 +22,7 @@ void hs_dos_consensus_has_changed(const networkstatus_t *ns); /* Introduction Point. */ bool hs_dos_can_send_intro2(or_circuit_t *s_intro_circ); +void hs_dos_setup_default_intro2_defenses(or_circuit_t *circ); unsigned int hs_dos_get_intro2_enabled_param(void); uint32_t hs_dos_get_intro2_rate_param(void); |