mirror of
https://github.com/curl/curl.git
synced 2026-08-25 21:03:34 +03:00
CURLOPT_SOCKS5_GSSAPI_SERVICE: Merged with CURLOPT_PROXY_SERVICE_NAME
As these two options provide identical functionality, the former for SOCK5 proxies and the latter for HTTP proxies, merged the two options together. As such CURLOPT_SOCKS5_GSSAPI_SERVICE is marked as deprecated as of 7.49.0.
This commit is contained in:
parent
830a4e55a2
commit
ccf7a82605
13 changed files with 31 additions and 50 deletions
22
lib/url.c
22
lib/url.c
|
|
@ -571,11 +571,6 @@ CURLcode Curl_init_userdefined(struct UserDefined *set)
|
|||
* seem not to follow rfc1961 section 4.3/4.4
|
||||
*/
|
||||
set->socks5_gssapi_nec = FALSE;
|
||||
/* set default GSS-API service name */
|
||||
result = setstropt(&set->str[STRING_SOCKS5_GSSAPI_SERVICE],
|
||||
CURL_DEFAULT_SOCKS5_GSSAPI_SERVICE);
|
||||
if(result)
|
||||
return result;
|
||||
#endif
|
||||
|
||||
/* This is our preferred CA cert bundle/path since install time */
|
||||
|
|
@ -1478,28 +1473,21 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option,
|
|||
#endif /* CURL_DISABLE_PROXY */
|
||||
|
||||
#if defined(HAVE_GSSAPI) || defined(USE_WINDOWS_SSPI)
|
||||
case CURLOPT_SOCKS5_GSSAPI_SERVICE:
|
||||
case CURLOPT_SOCKS5_GSSAPI_NEC:
|
||||
/*
|
||||
* Set GSS-API service name
|
||||
* Set flag for NEC SOCK5 support
|
||||
*/
|
||||
result = setstropt(&data->set.str[STRING_SOCKS5_GSSAPI_SERVICE],
|
||||
va_arg(param, char *));
|
||||
data->set.socks5_gssapi_nec = (0 != va_arg(param, long)) ? TRUE : FALSE;
|
||||
break;
|
||||
|
||||
case CURLOPT_SOCKS5_GSSAPI_SERVICE:
|
||||
case CURLOPT_PROXY_SERVICE_NAME:
|
||||
/*
|
||||
* Set negotiate proxy service name
|
||||
* Set proxy authentication service name for Kerberos 5 and SPNEGO
|
||||
*/
|
||||
result = setstropt(&data->set.str[STRING_PROXY_SERVICE_NAME],
|
||||
va_arg(param, char *));
|
||||
break;
|
||||
|
||||
case CURLOPT_SOCKS5_GSSAPI_NEC:
|
||||
/*
|
||||
* set flag for nec socks5 support
|
||||
*/
|
||||
data->set.socks5_gssapi_nec = (0 != va_arg(param, long)) ? TRUE : FALSE;
|
||||
break;
|
||||
#endif
|
||||
|
||||
#if !defined(CURL_DISABLE_CRYPTO_AUTH) || defined(USE_KERBEROS5) || \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue