summaryrefslogtreecommitdiff
path: root/src/or/hs_circuit.h
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2017-07-19 11:42:04 -0400
committerNick Mathewson <nickm@torproject.org>2017-08-08 20:29:34 -0400
commit2cae4f41006cd1885c33870232a040f98ffd6597 (patch)
tree5c8bcd47e7a90bc69e441325722074c200cca09b /src/or/hs_circuit.h
parent6c3d525c361adac1ad769f87a343fe3e9d2b050b (diff)
downloadtor-2cae4f41006cd1885c33870232a040f98ffd6597.tar.gz
tor-2cae4f41006cd1885c33870232a040f98ffd6597.zip
prop224: Move get_intro_circuit() to hs_circuit.c
Make this function public so we can use it both in hs_circuit.c and hs_service.c to avoid code duplication. Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/hs_circuit.h')
-rw-r--r--src/or/hs_circuit.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/hs_circuit.h b/src/or/hs_circuit.h
index 8301dea227..8706e6b0ed 100644
--- a/src/or/hs_circuit.h
+++ b/src/or/hs_circuit.h
@@ -30,6 +30,9 @@ int hs_circ_launch_rendezvous_point(const hs_service_t *service,
const uint8_t *rendezvous_cookie);
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);
+
/* Cell API. */
int hs_circ_handle_intro_established(const hs_service_t *service,
const hs_service_intro_point_t *ip,