aboutsummaryrefslogtreecommitdiff
path: root/src/trunnel/hs/cell_introduce1.h
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2019-05-09 13:09:44 -0400
committerNick Mathewson <nickm@torproject.org>2019-05-20 08:56:34 -0400
commit79cfe2ddd7c030e679104588c7e4842c2ff6b239 (patch)
tree635dab2eaef37486ed4967aa12010adc3e665321 /src/trunnel/hs/cell_introduce1.h
parentdcc1d8d15bf11ca1c4e2760bbc47d5fa3df3814d (diff)
downloadtor-79cfe2ddd7c030e679104588c7e4842c2ff6b239.tar.gz
tor-79cfe2ddd7c030e679104588c7e4842c2ff6b239.zip
hs: Remove hs_intro_auth_key_type_t enum
Like the previous commit about the INTRODUCE_ACK status code, change all auth key type to use the one defined in the trunnel file. Standardize the use of these auth type to a common 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 1bec014b6f..c94c7d5075 100644
--- a/src/trunnel/hs/cell_introduce1.h
+++ b/src/trunnel/hs/cell_introduce1.h
@@ -15,6 +15,9 @@ struct link_specifier_st;
#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
#if !defined(TRUNNEL_OPAQUE) && !defined(TRUNNEL_OPAQUE_TRN_CELL_INTRODUCE1)
struct trn_cell_introduce1_st {
uint8_t legacy_key_id[TRUNNEL_SHA1_LEN];