Skip to content

Commit

Permalink
Make --proxy-auth=negotiate,basic work for SOCKS auth
Browse files Browse the repository at this point in the history
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Jun 23, 2014
1 parent 921051b commit d717f23
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions http.c
Expand Up @@ -1502,9 +1502,12 @@ static int process_socks_proxy(struct openconnect_info *vpninfo)

buf[2 + nr_auth_methods++] = SOCKS_AUTH_NONE;
#ifdef HAVE_GSSAPI
buf[2 + nr_auth_methods++] = SOCKS_AUTH_GSSAPI;
if (vpninfo->auth[AUTH_TYPE_GSSAPI].state != AUTH_DISABLED &&
!vpninfo->proxy_user && !vpninfo->proxy_pass)
buf[2 + nr_auth_methods++] = SOCKS_AUTH_GSSAPI;
#endif
if (vpninfo->proxy_user && vpninfo->proxy_pass)
if (vpninfo->auth[AUTH_TYPE_BASIC].state != AUTH_DISABLED &&
vpninfo->proxy_user && vpninfo->proxy_pass)
buf[2 + nr_auth_methods++] = SOCKS_AUTH_PASSWORD;

buf[1] = nr_auth_methods;
Expand Down

0 comments on commit d717f23

Please sign in to comment.