aboutsummaryrefslogtreecommitdiff
path: root/src/core/or/or.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2021-09-14 15:01:45 -0400
committerMike Perry <mikeperry-git@torproject.org>2022-02-22 19:28:33 +0000
commitbd2e9a44097ff85934bc1c34f4fce2017a7a92c8 (patch)
tree90f31985afb3132ff57645be058e5774830941db /src/core/or/or.h
parent244444e8b1ac36bf9148aa656e4eb9e293daa5b4 (diff)
downloadtor-bd2e9a44097ff85934bc1c34f4fce2017a7a92c8.tar.gz
tor-bd2e9a44097ff85934bc1c34f4fce2017a7a92c8.zip
Implement core of ntor3 negotiation.
There are a lot of TODOs about what to send, whom to send it to, and etc.
Diffstat (limited to 'src/core/or/or.h')
-rw-r--r--src/core/or/or.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/or/or.h b/src/core/or/or.h
index 392a848ee7..3911797563 100644
--- a/src/core/or/or.h
+++ b/src/core/or/or.h
@@ -790,7 +790,8 @@ typedef enum {
#define ONION_HANDSHAKE_TYPE_TAP 0x0000
#define ONION_HANDSHAKE_TYPE_FAST 0x0001
#define ONION_HANDSHAKE_TYPE_NTOR 0x0002
-#define MAX_ONION_HANDSHAKE_TYPE 0x0002
+#define ONION_HANDSHAKE_TYPE_NTOR_V3 0x0003 /* TODO: Add to spec */
+#define MAX_ONION_HANDSHAKE_TYPE 0x0003
typedef struct onion_handshake_state_t onion_handshake_state_t;
typedef struct relay_crypto_t relay_crypto_t;