summaryrefslogtreecommitdiff
path: root/src/or/hs_common.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_common.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_common.h')
-rw-r--r--src/or/hs_common.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/or/hs_common.h b/src/or/hs_common.h
index 2502f35ad4..55710b7f79 100644
--- a/src/or/hs_common.h
+++ b/src/or/hs_common.h
@@ -17,6 +17,12 @@
/* Version 3 of the protocol (prop224). */
#define HS_VERSION_THREE 3
+/* Denotes ed25519 authentication key on ESTABLISH_INTRO cell. */
+#define AUTH_KEY_ED25519 0x02
+
+/* String prefix for the signature of ESTABLISH_INTRO */
+#define ESTABLISH_INTRO_SIG_PREFIX "Tor establish-intro cell v1"
+
void rend_data_free(rend_data_t *data);
rend_data_t *rend_data_dup(const rend_data_t *data);
rend_data_t *rend_data_client_create(const char *onion_address,
@@ -36,4 +42,3 @@ const uint8_t *rend_data_get_pk_digest(const rend_data_t *rend_data,
int hs_v3_protocol_is_enabled(void);
#endif /* TOR_HS_COMMON_H */
-