aboutsummaryrefslogtreecommitdiff
path: root/src/or/hs_intropoint.h
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2016-11-15 15:09:27 -0500
committerDavid Goulet <dgoulet@torproject.org>2017-01-18 16:58:54 -0500
commit50cfc9834094acf33bd5afff6a2a36f7f17e70e0 (patch)
treed9505ce3462b861efd67fcbc9554e667af922366 /src/or/hs_intropoint.h
parent5208085be1deff4711b634b108052970aed6a127 (diff)
downloadtor-50cfc9834094acf33bd5afff6a2a36f7f17e70e0.tar.gz
tor-50cfc9834094acf33bd5afff6a2a36f7f17e70e0.zip
prop224: Add unit tests for INTRODUCE1 support
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/hs_intropoint.h')
-rw-r--r--src/or/hs_intropoint.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/or/hs_intropoint.h b/src/or/hs_intropoint.h
index 08b3470bca..e6024a858f 100644
--- a/src/or/hs_intropoint.h
+++ b/src/or/hs_intropoint.h
@@ -37,6 +37,9 @@ int hs_intro_circuit_is_suitable_for_establish_intro(const or_circuit_t *circ);
#ifdef HS_INTROPOINT_PRIVATE
+#include "hs/cell_establish_intro.h"
+#include "hs/cell_introduce1.h"
+
STATIC int
verify_establish_intro_cell(const hs_cell_establish_intro_t *out,
const uint8_t *circuit_key_material,
@@ -46,6 +49,12 @@ STATIC void
get_auth_key_from_cell(ed25519_public_key_t *auth_key_out,
unsigned int cell_type, const void *cell);
+STATIC int introduce1_cell_is_legacy(const uint8_t *request);
+STATIC int handle_introduce1(or_circuit_t *client_circ,
+ const uint8_t *request, size_t request_len);
+STATIC int validate_introduce1_parsed_cell(const hs_cell_introduce1_t *cell);
+STATIC int circuit_is_suitable_for_introduce1(const or_circuit_t *circ);
+
#endif /* HS_INTROPOINT_PRIVATE */
#endif /* TOR_HS_INTRO_H */