summaryrefslogtreecommitdiff
path: root/src/or/hs_circuit.h
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2017-07-14 10:16:48 -0400
committerDavid Goulet <dgoulet@torproject.org>2017-08-24 13:03:28 -0400
commitd599325b5e1f92395742c3380112b4d2d7cbe9db (patch)
treec0ae96b9b1716524d67afa5758ceee6bf6738c35 /src/or/hs_circuit.h
parent8a552bf49bb94dbca6163e7063d776f5f3a96694 (diff)
downloadtor-d599325b5e1f92395742c3380112b4d2d7cbe9db.tar.gz
tor-d599325b5e1f92395742c3380112b4d2d7cbe9db.zip
prop224: Build INTRODUCE1 cell and send logic
Add a function in hs_cell.{c|h} for a client to build an INTRODUCE1 cell using an object that contains all the needed keys to do so. Add an entry point in hs_client.c that allows a tor client to send an INTRODUCE1 cell on a given introduction circuit. It includes the building of the cell, sending it and the setup of the rendezvous circuit with the circuit identifier. The entry point function is still unused 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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/hs_circuit.h b/src/or/hs_circuit.h
index 9e359394e8..f35ebf17db 100644
--- a/src/or/hs_circuit.h
+++ b/src/or/hs_circuit.h
@@ -44,6 +44,10 @@ int hs_circ_handle_introduce2(const hs_service_t *service,
hs_service_intro_point_t *ip,
const uint8_t *subcredential,
const uint8_t *payload, size_t payload_len);
+int hs_circ_send_introduce1(origin_circuit_t *intro_circ,
+ origin_circuit_t *rend_circ,
+ const hs_desc_intro_point_t *ip,
+ const uint8_t *subcredential);
/* e2e circuit API. */