summaryrefslogtreecommitdiff
path: root/src/lib/net
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2019-11-19 11:10:13 -0500
committerGeorge Kadianakis <desnacked@riseup.net>2019-11-21 13:02:29 +0200
commit709d7fba11482a7dae23aaecf8a5ec2bd78e47fb (patch)
tree37b67530682ea86cb703e59e8d2774484e641193 /src/lib/net
parent21b3303657f724e7ce4362483092680368839058 (diff)
downloadtor-709d7fba11482a7dae23aaecf8a5ec2bd78e47fb.tar.gz
tor-709d7fba11482a7dae23aaecf8a5ec2bd78e47fb.zip
hs-v3: Return bad address SOCKS5 extended error
If ExtendedErrors is set for the SocksPort, an invalid .onion address now returns the 0xF6 error code per prop304. Closes #30022 Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/lib/net')
-rw-r--r--src/lib/net/socks5_status.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/net/socks5_status.h b/src/lib/net/socks5_status.h
index 47d9533d51..a2a479dd51 100644
--- a/src/lib/net/socks5_status.h
+++ b/src/lib/net/socks5_status.h
@@ -36,6 +36,7 @@ typedef enum {
SOCKS5_HS_REND_FAILED = 0xF3,
SOCKS5_HS_MISSING_CLIENT_AUTH = 0xF4,
SOCKS5_HS_BAD_CLIENT_AUTH = 0xF5,
+ SOCKS5_HS_BAD_ADDRESS = 0xF6,
} socks5_reply_status_t;
#endif /* !defined(TOR_SOCKS5_STATUS_H) */