summaryrefslogtreecommitdiff
path: root/src/trunnel/hs/cell_introduce1.h
diff options
context:
space:
mode:
authorteor <teor@torproject.org>2019-08-12 09:51:00 +1000
committerteor <teor@torproject.org>2019-08-12 09:51:00 +1000
commit224825e7ee993da72b3027558ba263dae6fcae22 (patch)
tree54ff2beac7d3d3a8bf3a2320b9940aa86b0154a3 /src/trunnel/hs/cell_introduce1.h
parente5be039494745a3b0d101e422aa5793aaeac3567 (diff)
parent245dccb77d79dc432bb7aab21ce2c893da4b602a (diff)
downloadtor-224825e7ee993da72b3027558ba263dae6fcae22.tar.gz
tor-224825e7ee993da72b3027558ba263dae6fcae22.zip
Merge remote-tracking branch 'tor-github/pr/1039' into maint-0.3.5
Diffstat (limited to 'src/trunnel/hs/cell_introduce1.h')
-rw-r--r--src/trunnel/hs/cell_introduce1.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/trunnel/hs/cell_introduce1.h b/src/trunnel/hs/cell_introduce1.h
index fa218adc6d..986a531ca7 100644
--- a/src/trunnel/hs/cell_introduce1.h
+++ b/src/trunnel/hs/cell_introduce1.h
@@ -12,6 +12,13 @@ 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
+#define TRUNNEL_HS_INTRO_AUTH_KEY_TYPE_LEGACY0 0
+#define TRUNNEL_HS_INTRO_AUTH_KEY_TYPE_LEGACY1 1
+#define TRUNNEL_HS_INTRO_AUTH_KEY_TYPE_ED25519 2
+#define TRUNNEL_HS_INTRO_ONION_KEY_TYPE_NTOR 1
#if !defined(TRUNNEL_OPAQUE) && !defined(TRUNNEL_OPAQUE_TRN_CELL_INTRODUCE1)
struct trn_cell_introduce1_st {
uint8_t legacy_key_id[TRUNNEL_SHA1_LEN];