diff options
author | Pierre Bourdon <delroth@gmail.com> | 2010-10-11 00:56:04 +0200 |
---|---|---|
committer | David Sommerseth <dazo@users.sourceforge.net> | 2010-11-12 21:43:43 +0100 |
commit | fc1fa9ffc7e3356458ec38d43816e5ddeb0c580a (patch) | |
tree | 8075e63066811c03ab4daf20c9519b8fbf43fb26 /socks.h | |
parent | Fixed static defined length check to use sizeof() (diff) | |
download | openvpn-fc1fa9ffc7e3356458ec38d43816e5ddeb0c580a.tar.xz |
Adding support for SOCKS plain text authentication
This patch adds support for SOCKS plain text (username/password)
authentication as described in RFC 1929. It adds an optional third
parameter to the socks-proxy option, which is a file containing the
login credentials.
I've been using this patch for two weeks now and it does not seem to
cause any problem. The only modifications are in the SOCKS handshake
handling and the options parser.
Signed-Off-By: Pierre Bourdon <delroth@gmail.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Acked-by: David Sommerseth <dazo@users.sourceforge.net>
Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
Diffstat (limited to '')
-rw-r--r-- | socks.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -43,12 +43,14 @@ struct socks_proxy_info { char server[128]; int port; + char authfile[256]; }; void socks_adjust_frame_parameters (struct frame *frame, int proto); struct socks_proxy_info *socks_proxy_new (const char *server, int port, + const char *authfile, bool retry, struct auto_proxy_info *auto_proxy_info); |