diff options
author | Steve Holme <steve_holme@hotmail.com> | 2016-04-02 06:15:29 +0100 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2016-04-02 06:15:29 +0100 |
commit | ced0cbb5b72bab6ad1a8393a22e6443cdbf611f1 (patch) | |
tree | 9865dfafcc21746b65eccd2595ba564765bcf0b9 /lib/curl_sasl.c | |
parent | 4edcfc6bf07f0703b8cbccf823725e6e7356aaba (diff) | |
download | curl-ced0cbb5b72bab6ad1a8393a22e6443cdbf611f1.tar.gz |
krb5: Moved host from Curl_auth_create_gssapi_user_message() to be argument
For consistency with the spnego and oauth2 code moved the setting of
the host name outside of the Curl_auth_create_gssapi_user_messag()
function.
This will allow us to more easily override it in the future.
Diffstat (limited to 'lib/curl_sasl.c')
-rw-r--r-- | lib/curl_sasl.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/curl_sasl.c b/lib/curl_sasl.c index 32c8534e7..a4568d6d3 100644 --- a/lib/curl_sasl.c +++ b/lib/curl_sasl.c @@ -295,6 +295,8 @@ CURLcode Curl_sasl_start(struct SASL *sasl, struct connectdata *conn, result = Curl_auth_create_gssapi_user_message(data, conn->user, conn->passwd, sasl->params->service, + data->easy_conn-> + host.name, sasl->mutual_auth, NULL, &conn->krb5, &resp, &len); @@ -496,6 +498,7 @@ CURLcode Curl_sasl_continue(struct SASL *sasl, struct connectdata *conn, result = Curl_auth_create_gssapi_user_message(data, conn->user, conn->passwd, sasl->params->service, + data->easy_conn->host.name, sasl->mutual_auth, NULL, &conn->krb5, &resp, &len); @@ -506,7 +509,8 @@ CURLcode Curl_sasl_continue(struct SASL *sasl, struct connectdata *conn, if(sasl->mutual_auth) { /* Decode the user token challenge and create the optional response message */ - result = Curl_auth_create_gssapi_user_message(data, NULL, NULL, NULL, + result = Curl_auth_create_gssapi_user_message(data, NULL, NULL, + NULL, NULL, sasl->mutual_auth, serverdata, &conn->krb5, &resp, &len); |