aboutsummaryrefslogtreecommitdiff
path: root/src/trunnel/hs/cell_introduce1.h
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2019-05-09 12:55:52 -0400
committerNick Mathewson <nickm@torproject.org>2019-05-20 08:56:34 -0400
commit590d97bc1065bdb93c70695c91de9c548ef802af (patch)
treefe954d3f1d016759d24101c5a4f4223359dd7b88 /src/trunnel/hs/cell_introduce1.h
parentcbcc570ff4a8e03fc08bfd020d6b4c7365d4d137 (diff)
downloadtor-590d97bc1065bdb93c70695c91de9c548ef802af.tar.gz
tor-590d97bc1065bdb93c70695c91de9c548ef802af.zip
hs: Define INTRODUCE_ACK status code in trunnel
Remove the hs_intro_ack_status_t enum and move the value into trunnel. Only use these values from now on in the intro point code. Interestingly enough, the client side also re-define these values in hs_cell.h with the hs_cell_introd_ack_status_t enum. Next commit will fix that and force to use the trunnel ABI. Part of #30454 Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/trunnel/hs/cell_introduce1.h')
-rw-r--r--src/trunnel/hs/cell_introduce1.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/trunnel/hs/cell_introduce1.h b/src/trunnel/hs/cell_introduce1.h
index fa218adc6d..1bec014b6f 100644
--- a/src/trunnel/hs/cell_introduce1.h
+++ b/src/trunnel/hs/cell_introduce1.h
@@ -12,6 +12,9 @@ struct trn_cell_extension_st;
struct link_specifier_st;
#define TRUNNEL_SHA1_LEN 20
#define TRUNNEL_REND_COOKIE_LEN 20
+#define TRUNNEL_HS_INTRO_ACK_STATUS_SUCCESS 0
+#define TRUNNEL_HS_INTRO_ACK_STATUS_UNKNOWN_ID 1
+#define TRUNNEL_HS_INTRO_ACK_STATUS_BAD_FORMAT 2
#if !defined(TRUNNEL_OPAQUE) && !defined(TRUNNEL_OPAQUE_TRN_CELL_INTRODUCE1)
struct trn_cell_introduce1_st {
uint8_t legacy_key_id[TRUNNEL_SHA1_LEN];