tor
tor copied to clipboard
hs: Implement a helper to repurpose a circuit
When we repurpose a hidden service circuit, we need to clean up from the HS circuit map and any HS related data structured contained in the circuit.
This commit adds an helper function that does it when repurposing a hidden service circuit.
Fixes #29034
Signed-off-by: David Goulet [email protected]
Pull Request Test Coverage Report for Build 5168
- 11 of 17 (64.71%) changed or added relevant lines in 3 files are covered.
- No unchanged relevant lines lost coverage.
- Overall coverage increased (+0.004%) to 60.308%
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % |
---|---|---|---|
src/core/or/circuituse.c | 2 | 3 | 66.67% |
src/feature/hs/hs_circuit.c | 9 | 10 | 90.0% |
src/feature/rend/rendcommon.c | 0 | 4 | 0.0% |
<!-- | Total: | 11 | 17 |
Totals | |
---|---|
Change from base Build 5053: | 0.004% |
Covered Lines: | 42874 |
Relevant Lines: | 71092 |