summaryrefslogtreecommitdiff
path: root/src/or/hs_service.h
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2016-09-05 18:58:19 +0300
committerNick Mathewson <nickm@torproject.org>2016-12-14 15:17:58 -0500
commitc4c90d56b543887ee9bee6553725151b09891d8e (patch)
tree56424edd9d582b7ff860c7b9ff1a6997d1ff8a7f /src/or/hs_service.h
parent9192e5928c0b974ba7c1b908b6f2538cd6f56c79 (diff)
downloadtor-c4c90d56b543887ee9bee6553725151b09891d8e.tar.gz
tor-c4c90d56b543887ee9bee6553725151b09891d8e.zip
prop224: Add code that generates ESTABLISH_INTRO cells.
Currently unused. It will only be used for creating ESTABLISH_INTRO cells in unittests :)
Diffstat (limited to 'src/or/hs_service.h')
-rw-r--r--src/or/hs_service.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/or/hs_service.h b/src/or/hs_service.h
new file mode 100644
index 0000000000..4a7600767e
--- /dev/null
+++ b/src/or/hs_service.h
@@ -0,0 +1,31 @@
+/* Copyright (c) 2016, The Tor Project, Inc. */
+/* See LICENSE for licensing information */
+
+/**
+ * \file hs_service.h
+ * \brief Header file for hs_service.c.
+ **/
+
+#ifndef TOR_HS_SERVICE_H
+#define TOR_HS_SERVICE_H
+
+#include "or.h"
+#include "hs/cell_establish_intro.h"
+
+#ifdef HS_SERVICE_PRIVATE
+
+#ifdef TOR_UNIT_TESTS
+
+STATIC hs_cell_establish_intro_t *
+generate_establish_intro_cell(const char *circuit_key_material,
+ size_t circuit_key_material_len);
+
+STATIC ssize_t
+get_establish_intro_payload(uint8_t *buf, size_t buf_len,
+ const hs_cell_establish_intro_t *cell);
+
+#endif /* TOR_UNIT_TESTS */
+
+#endif /* HS_SERVICE_PRIVATE */
+
+#endif /* TOR_HS_SERVICE_H */