aboutsummaryrefslogtreecommitdiff
path: root/src/trunnel/hs/cell_rendezvous.trunnel
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2017-07-23 12:32:16 -0400
committerDavid Goulet <dgoulet@torproject.org>2017-07-25 13:11:40 -0400
commit3e537c6fe4b10b72079524829e13de65f3400c2b (patch)
tree2a8720fc3345d483038ee5a7408a3c6b9b8c5911 /src/trunnel/hs/cell_rendezvous.trunnel
parentbb66a48541aa5110e64615984448fd24ecd52ffd (diff)
downloadtor-3e537c6fe4b10b72079524829e13de65f3400c2b.tar.gz
tor-3e537c6fe4b10b72079524829e13de65f3400c2b.zip
trunnel: Add prop224 RENDEZVOUS1 cell definition
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/trunnel/hs/cell_rendezvous.trunnel')
-rw-r--r--src/trunnel/hs/cell_rendezvous.trunnel18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/trunnel/hs/cell_rendezvous.trunnel b/src/trunnel/hs/cell_rendezvous.trunnel
new file mode 100644
index 0000000000..27f1728b4a
--- /dev/null
+++ b/src/trunnel/hs/cell_rendezvous.trunnel
@@ -0,0 +1,18 @@
+/*
+ * This contains the definition of the RENDEZVOUS1 cell for onion service
+ * version 3 and onward. The following format is specified in proposal 224
+ * section 4.2.
+ */
+
+/* Rendezvous cookie length. */
+const TRUNNEL_REND_COOKIE_LEN = 20;
+
+/* RENDEZVOUS1 payload. See details in section 4.2. */
+struct trn_cell_rendezvous1 {
+ /* The RENDEZVOUS_COOKIE field. */
+ u8 rendezvous_cookie[TRUNNEL_REND_COOKIE_LEN];
+
+ /* The HANDSHAKE_INFO field which has a variable length depending on the
+ * handshake type used. */
+ u8 handshake_info[];
+};