summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2021-09-30 10:40:19 -0400
committerDavid Goulet <dgoulet@torproject.org>2021-10-19 09:13:08 -0400
commite284b9f779e20b6afc924236f9f2fe462caa5f4c (patch)
tree73305e118f12cb7517d8e81d497229d42ca8722b
parent471149b651cd3ef953cd0961b871c7a519313f37 (diff)
downloadtor-e284b9f779e20b6afc924236f9f2fe462caa5f4c.tar.gz
tor-e284b9f779e20b6afc924236f9f2fe462caa5f4c.zip
hs-v2: Disable version 2 introduction point
Upon receiving a v2 introduction request, the relay will close the circuit and send back a tor protocol error. Part of #40476 Signed-off-by: David Goulet <dgoulet@torproject.org>
-rw-r--r--src/feature/hs/hs_intropoint.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/feature/hs/hs_intropoint.c b/src/feature/hs/hs_intropoint.c
index 69d60f21c3..fa6b54b18a 100644
--- a/src/feature/hs/hs_intropoint.c
+++ b/src/feature/hs/hs_intropoint.c
@@ -514,7 +514,8 @@ hs_intro_received_establish_intro(or_circuit_t *circ, const uint8_t *request,
switch (first_byte) {
case TRUNNEL_HS_INTRO_AUTH_KEY_TYPE_LEGACY0:
case TRUNNEL_HS_INTRO_AUTH_KEY_TYPE_LEGACY1:
- return rend_mid_establish_intro_legacy(circ, request, request_len);
+ /* Don't accept version 2 introduction anymore. */
+ goto err;
case TRUNNEL_HS_INTRO_AUTH_KEY_TYPE_ED25519:
return handle_establish_intro(circ, request, request_len);
default: