From ce2c3ebda20919fe636e675f219ae387e386f508 Mon Sep 17 00:00:00 2001 From: Kamil Dudka Date: Fri, 19 May 2017 18:11:47 +0200 Subject: curl --socks5-{basic,gssapi}: control socks5 auth Closes https://github.com/curl/curl/pull/1454 --- src/tool_operate.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/tool_operate.c') diff --git a/src/tool_operate.c b/src/tool_operate.c index 147081438..1e8d0073c 100644 --- a/src/tool_operate.c +++ b/src/tool_operate.c @@ -1343,6 +1343,11 @@ static CURLcode operate_do(struct GlobalConfig *global, my_setopt_str(curl, CURLOPT_SOCKS5_GSSAPI_NEC, config->socks5_gssapi_nec); + /* new in curl 7.55.0 */ + if(config->socks5_auth) + my_setopt_bitmask(curl, CURLOPT_SOCKS5_AUTH, + (long)config->socks5_auth); + /* new in curl 7.43.0 */ if(config->proxy_service_name) my_setopt_str(curl, CURLOPT_PROXY_SERVICE_NAME, -- cgit v1.2.3