diff options
author | David Goulet <dgoulet@torproject.org> | 2019-10-23 11:37:33 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2019-10-23 11:51:23 -0400 |
commit | b6c24eb484862cf8741362de792d364d31dc3b0e (patch) | |
tree | c5fe687841b483b281a408bca1535cd32c34cbd0 /src/feature/hs/hs_circuit.h | |
parent | 9586ae178a38436e07278f141801208c04b37191 (diff) | |
download | tor-b6c24eb484862cf8741362de792d364d31dc3b0e.tar.gz tor-b6c24eb484862cf8741362de792d364d31dc3b0e.zip |
hs-v3: Remove the circuit_established intro flag
Only use the HS circuit map to know if an introduction circuit is established
or not. No need for a flag to keep state of something we already have in the
circuit map. Furthermore, the circuit map gets cleaned up properly so it will
always have the "latest truth".
This commit also removes a unit test that was testing specifically that flag
but now we rely solely on the HS circuit map which is also tested few lines
below the removed test.
Fixes #32094
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/feature/hs/hs_circuit.h')
-rw-r--r-- | src/feature/hs/hs_circuit.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/feature/hs/hs_circuit.h b/src/feature/hs/hs_circuit.h index e168b301f1..c817f3e37a 100644 --- a/src/feature/hs/hs_circuit.h +++ b/src/feature/hs/hs_circuit.h @@ -35,6 +35,8 @@ void hs_circ_retry_service_rendezvous_point(origin_circuit_t *circ); origin_circuit_t *hs_circ_service_get_intro_circ( const hs_service_intro_point_t *ip); +origin_circuit_t *hs_circ_service_get_established_intro_circ( + const hs_service_intro_point_t *ip); /* Cell API. */ int hs_circ_handle_intro_established(const hs_service_t *service, |