mirror of
https://github.com/curl/curl.git
synced 2026-07-24 16:17:15 +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
|
|
@ -137,7 +137,6 @@ static void free_config_fields(struct OperationConfig *config)
|
|||
curl_slist_free_all(config->resolve);
|
||||
|
||||
Curl_safefree(config->socksproxy);
|
||||
Curl_safefree(config->socks5_gssapi_service);
|
||||
Curl_safefree(config->proxy_service_name);
|
||||
Curl_safefree(config->service_name);
|
||||
|
||||
|
|
|
|||
|
|
@ -165,12 +165,10 @@ struct OperationConfig {
|
|||
|
||||
char *socksproxy; /* set to server string */
|
||||
int socksver; /* set to CURLPROXY_SOCKS* define */
|
||||
char *socks5_gssapi_service; /* set service name for gssapi principal
|
||||
* default rcmd */
|
||||
char *proxy_service_name; /* set service name for proxy negotiation
|
||||
* default HTTP */
|
||||
int socks5_gssapi_nec ; /* The NEC reference server does not protect
|
||||
* the encryption type exchange */
|
||||
int socks5_gssapi_nec; /* The NEC reference server does not protect the
|
||||
encryption type exchange */
|
||||
char *proxy_service_name; /* set authentication service name for HTTP and
|
||||
SOCKS5 proxies */
|
||||
char *service_name; /* set authentication service name for DIGEST-MD5,
|
||||
Kerberos 5 and SPNEGO */
|
||||
|
||||
|
|
|
|||
|
|
@ -158,7 +158,6 @@ static const struct LongShort aliases[]= {
|
|||
{"$3", "keepalive-time", TRUE},
|
||||
{"$4", "post302", FALSE},
|
||||
{"$5", "noproxy", TRUE},
|
||||
{"$6", "socks5-gssapi-service", TRUE},
|
||||
{"$7", "socks5-gssapi-nec", FALSE},
|
||||
{"$8", "proxy1.0", TRUE},
|
||||
{"$9", "tftp-blksize", TRUE},
|
||||
|
|
@ -176,6 +175,9 @@ static const struct LongShort aliases[]= {
|
|||
{"$L", "test-event", FALSE},
|
||||
{"$M", "unix-socket", TRUE},
|
||||
{"$N", "path-as-is", FALSE},
|
||||
{"$O", "socks5-gssapi-service", TRUE},
|
||||
/* 'socks5-gssapi-service' merged with'proxy-service-name' and
|
||||
deprecated since 7.49.0 */
|
||||
{"$O", "proxy-service-name", TRUE},
|
||||
{"$P", "service-name", TRUE},
|
||||
{"$Q", "proto-default", TRUE},
|
||||
|
|
@ -901,10 +903,7 @@ ParameterError getparameter(char *flag, /* f or -long-flag */
|
|||
/* This specifies the noproxy list */
|
||||
GetStr(&config->noproxy, nextarg);
|
||||
break;
|
||||
case '6': /* --socks5-gssapi-service */
|
||||
GetStr(&config->socks5_gssapi_service, nextarg);
|
||||
break;
|
||||
case '7': /* --socks5-gssapi-nec*/
|
||||
case '7': /* --socks5-gssapi-nec*/
|
||||
config->socks5_gssapi_nec = toggle;
|
||||
break;
|
||||
case '8': /* --proxy1.0 */
|
||||
|
|
|
|||
|
|
@ -1209,11 +1209,6 @@ static CURLcode operate_do(struct GlobalConfig *global,
|
|||
my_setopt_enum(curl, CURLOPT_FTP_SSL_CCC,
|
||||
(long)config->ftp_ssl_ccc_mode);
|
||||
|
||||
/* new in curl 7.19.4 */
|
||||
if(config->socks5_gssapi_service)
|
||||
my_setopt_str(curl, CURLOPT_SOCKS5_GSSAPI_SERVICE,
|
||||
config->socks5_gssapi_service);
|
||||
|
||||
/* new in curl 7.19.4 */
|
||||
if(config->socks5_gssapi_nec)
|
||||
my_setopt_str(curl, CURLOPT_SOCKS5_GSSAPI_NEC,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue