summaryrefslogtreecommitdiff
path: root/src/or/hs_client.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_client.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_client.h')
-rw-r--r--src/or/hs_client.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/hs_client.h b/src/or/hs_client.h
index 0b446c00bf..d8348ddb3f 100644
--- a/src/or/hs_client.h
+++ b/src/or/hs_client.h
@@ -22,5 +22,8 @@ int hs_client_decode_descriptor(
int hs_client_any_intro_points_usable(const hs_descriptor_t *desc);
int hs_client_refetch_hsdesc(const ed25519_public_key_t *identity_pk);
+int hs_client_send_introduce1(origin_circuit_t *intro_circ,
+ origin_circuit_t *rend_circ);
+
#endif /* TOR_HS_CLIENT_H */