diff options
author | Linus Nielsen <linus@haxx.se> | 2015-03-29 14:52:31 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2015-04-28 08:29:56 +0200 |
commit | 97c272e5d173ad5f706443e2477f0a84f0044edd (patch) | |
tree | f43116c71d2dd85e4e0e62866a096e3b3bd98a37 /lib/http_negotiate.c | |
parent | 54c394699de29ea9ca07d9d0ac6f2f43848e5f32 (diff) | |
download | curl-97c272e5d173ad5f706443e2477f0a84f0044edd.tar.gz |
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.
Diffstat (limited to 'lib/http_negotiate.c')
-rw-r--r-- | lib/http_negotiate.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/http_negotiate.c b/lib/http_negotiate.c index 21658cf7a..a1baf29c3 100644 --- a/lib/http_negotiate.c +++ b/lib/http_negotiate.c @@ -62,8 +62,10 @@ CURLcode Curl_input_negotiate(struct connectdata *conn, bool proxy, if(!neg_ctx->server_name) { /* Generate our SPN */ - char *spn = Curl_sasl_build_gssapi_spn("HTTP", proxy ? conn->proxy.name : - conn->host.name); + char *spn = Curl_sasl_build_gssapi_spn( + proxy ? data->set.str[STRING_PROXY_SERVICE_NAME] : + data->set.str[STRING_SERVICE_NAME], + proxy ? conn->proxy.name : conn->host.name); if(!spn) return CURLE_OUT_OF_MEMORY; |