summaryrefslogtreecommitdiffstats
path: root/socks.h
diff options
context:
space:
mode:
authorPierre Bourdon <delroth@gmail.com>2010-10-11 00:56:04 +0200
committerDavid Sommerseth <dazo@users.sourceforge.net>2010-11-12 21:43:43 +0100
commitfc1fa9ffc7e3356458ec38d43816e5ddeb0c580a (patch)
tree8075e63066811c03ab4daf20c9519b8fbf43fb26 /socks.h
parent031d18fcb8a2a552aecabb41f1afdfe3f51bdd58 (diff)
downloadopenvpn-fc1fa9ffc7e3356458ec38d43816e5ddeb0c580a.tar.gz
openvpn-fc1fa9ffc7e3356458ec38d43816e5ddeb0c580a.tar.xz
openvpn-fc1fa9ffc7e3356458ec38d43816e5ddeb0c580a.zip
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 'socks.h')
-rw-r--r--socks.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/socks.h b/socks.h
index 3c60a5b..ddf674e 100644
--- a/socks.h
+++ b/socks.h
@@ -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);