mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 12:23:32 +01:00
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>
This commit is contained in:
parent
765bdb9c33
commit
ff3ac02702
@ -320,7 +320,8 @@ hs_intro_received_establish_intro(or_circuit_t *circ, const uint8_t *request,
|
|||||||
switch (first_byte) {
|
switch (first_byte) {
|
||||||
case TRUNNEL_HS_INTRO_AUTH_KEY_TYPE_LEGACY0:
|
case TRUNNEL_HS_INTRO_AUTH_KEY_TYPE_LEGACY0:
|
||||||
case TRUNNEL_HS_INTRO_AUTH_KEY_TYPE_LEGACY1:
|
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:
|
case TRUNNEL_HS_INTRO_AUTH_KEY_TYPE_ED25519:
|
||||||
return handle_establish_intro(circ, request, request_len);
|
return handle_establish_intro(circ, request, request_len);
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user