mirror of
https://github.com/curl/curl.git
synced 2026-08-26 00:53:39 +03:00
Negotiate: custom service names for SPNEGO.
* Add new options, CURLOPT_PROXY_SERVICE_NAME and CURLOPT_SERVICE_NAME. * Add new curl options, --proxy-service-name and --service-name.
This commit is contained in:
parent
54c394699d
commit
97c272e5d1
17 changed files with 185 additions and 5 deletions
|
|
@ -161,6 +161,8 @@ static const struct LongShort aliases[]= {
|
|||
#if defined(HAVE_GSSAPI) || defined(USE_WINDOWS_SSPI)
|
||||
{"$6", "socks5-gssapi-service", TRUE},
|
||||
{"$7", "socks5-gssapi-nec", FALSE},
|
||||
{"$O", "proxy-service-name", TRUE},
|
||||
{"$P", "service-name", TRUE},
|
||||
#endif
|
||||
{"$8", "proxy1.0", TRUE},
|
||||
{"$9", "tftp-blksize", TRUE},
|
||||
|
|
@ -903,6 +905,12 @@ ParameterError getparameter(char *flag, /* f or -long-flag */
|
|||
case '7': /* --socks5-gssapi-nec*/
|
||||
config->socks5_gssapi_nec = toggle;
|
||||
break;
|
||||
case 'O': /* --proxy-service-name */
|
||||
GetStr(&config->proxy_service_name, nextarg);
|
||||
break;
|
||||
case 'P': /* --service-name */
|
||||
GetStr(&config->service_name, nextarg);
|
||||
break;
|
||||
#endif
|
||||
case '8': /* --proxy1.0 */
|
||||
/* http 1.0 proxy */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue