[tor-bugs] #23459 [Core Tor/Tor]: prop224: Specialize interface of hs_circuitmap_get_rend_circ_client_side()
Tor Bug Tracker & Wiki
blackhole at torproject.org
Mon Sep 11 17:42:58 UTC 2017
#23459: prop224: Specialize interface of hs_circuitmap_get_rend_circ_client_side()
-------------------------+-------------------------------------------------
Reporter: asn | Owner: (none)
Type: defect | Status: new
Priority: Medium | Milestone: Tor: 0.3.2.x-final
Component: Core | Version:
Tor/Tor | Keywords: prop224, prop224-extra,
Severity: Normal | refactoring, easy
Actual Points: | Parent ID:
Points: 0.4 | Reviewer:
Sponsor: |
-------------------------+-------------------------------------------------
We currently use `hs_circuitmap_get_rend_circ_client_side()` for two
reasons:
a) To proceed with the rend protocol as a client when we receive an intro
ack (in `handle_introduce_ack_success()`).
b) To close useless rend circuits in `close_or_reextend_intro_circ()`.
To fit these two scenarios, the function
`hs_circuitmap_get_rend_circ_client_side()` currently returns all sorts of
rend circs (established and unestablished).
We can improve the logic and semantics here by splitting into two funcs.
One that returns only established circs (used for (a)), and another that
retuns all kinds of circs (used for (b)).
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/23459>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list