diff options
author | David Goulet <dgoulet@torproject.org> | 2017-02-21 14:20:39 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-08-08 20:29:33 -0400 |
commit | d765cf30b51dfcd58756b6b3d24a14ac2c47f3e8 (patch) | |
tree | 91abef47c708dd4d30b50f5a8e31bf50389dedd2 /src/or/hs_circuit.h | |
parent | 6a21ac7f9809963287dd678c9f2c494b3f9ebba3 (diff) | |
download | tor-d765cf30b51dfcd58756b6b3d24a14ac2c47f3e8.tar.gz tor-d765cf30b51dfcd58756b6b3d24a14ac2c47f3e8.zip |
prop224: Circuit has opened and ESTABLISH_INTRO cell
Add the entry point from the circuit subsystem of "circuit has opened" which
is for all type of hidden service circuits. For the introduction point, this
commit actually adds the support for handling those circuits when opened and
sending ESTABLISH_INTRO on a circuit.
Rendevzou point circuit aren't supported yet at this commit.
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/hs_circuit.h')
-rw-r--r-- | src/or/hs_circuit.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/or/hs_circuit.h b/src/or/hs_circuit.h index 8738438eb2..35eab75695 100644 --- a/src/or/hs_circuit.h +++ b/src/or/hs_circuit.h @@ -16,10 +16,19 @@ #include "hs_service.h" /* Circuit API. */ +int hs_circ_service_intro_has_opened(hs_service_t *service, + hs_service_intro_point_t *ip, + const hs_service_descriptor_t *desc, + origin_circuit_t *circ); int hs_circ_launch_intro_point(hs_service_t *service, const hs_service_intro_point_t *ip, extend_info_t *ei, time_t now); +/* Cell API. */ +void hs_circ_send_establish_intro(const hs_service_t *service, + hs_service_intro_point_t *ip, + origin_circuit_t *circ); + /* e2e circuit API. */ int hs_circuit_setup_e2e_rend_circ(origin_circuit_t *circ, |