bug1666 - Pass-through support for SOCKS5 authentication

If a SOCKS5 client insists on authentication, allow it to
negotiate a connection with Tor's SOCKS server successfully.
Any credentials the client provides are ignored.

This allows Tor to work with SOCKS5 clients that can only
support 'authenticated' connections.

Also add a bunch of basic unit tests for SOCKS4/4a/5 support
in buffers.c.
This commit is contained in:
Robert Hogan
2010-08-03 22:28:55 +01:00
parent a62b79dfc9
commit bf136b94de
6 changed files with 294 additions and 19 deletions
+3 -2
View File
@@ -31,8 +31,9 @@ Tor's extensions to the SOCKS protocol
SOCKS5:
- The (SOCKS5) "UDP ASSOCIATE" command is not supported.
- IPv6 is not supported in CONNECT commands.
- Only the "NO AUTHENTICATION" (SOCKS5) authentication method [00] is
supported.
- The "NO AUTHENTICATION" (SOCKS5) authentication method [00] and the
"USERNAME/PASSWORD" (SOCKS5) authentication method [02] are both
supported. Any credentials passed in the latter are ignored.
2. Name lookup