diff options
author | Julien Chaffraix <julien.chaffraix@gmail.com> | 2011-06-10 08:16:06 -0700 |
---|---|---|
committer | Julien Chaffraix <julien.chaffraix@gmail.com> | 2011-07-12 07:06:25 -0700 |
commit | 20485a48858ea35351ca69060f56353eace0521c (patch) | |
tree | 72331e802c6a61e7b768479af7e94887fd0c11c0 /lib/http_negotiate.c | |
parent | 6488e03f4421a039d0882561e8f96b2ae16ed7c4 (diff) | |
download | curl-20485a48858ea35351ca69060f56353eace0521c.tar.gz |
Added Curl_gss_init_sec_context.
This function wraps our calls to gss_init_sec_context so that we
have a unified way to talk to GSSAPI.
Diffstat (limited to 'lib/http_negotiate.c')
-rw-r--r-- | lib/http_negotiate.c | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/lib/http_negotiate.c b/lib/http_negotiate.c index 0bbe4364f..075a52062 100644 --- a/lib/http_negotiate.c +++ b/lib/http_negotiate.c @@ -36,6 +36,7 @@ #include "urldata.h" #include "sendf.h" +#include "gssapi.h" #include "rawstr.h" #include "curl_base64.h" #include "http_negotiate.h" @@ -238,19 +239,20 @@ int Curl_input_negotiate(struct connectdata *conn, bool proxy, #endif } - major_status = gss_init_sec_context(&minor_status, - GSS_C_NO_CREDENTIAL, - &neg_ctx->context, - neg_ctx->server_name, - GSS_C_NO_OID, - GSS_C_MUTUAL_FLAG | GSS_C_REPLAY_FLAG, - 0, - GSS_C_NO_CHANNEL_BINDINGS, - &input_token, - NULL, - &output_token, - NULL, - NULL); + major_status = Curl_gss_init_sec_context(&minor_status, + GSS_C_NO_CREDENTIAL, + &neg_ctx->context, + neg_ctx->server_name, + GSS_C_NO_OID, + GSS_C_MUTUAL_FLAG + | GSS_C_REPLAY_FLAG, + 0, + GSS_C_NO_CHANNEL_BINDINGS, + &input_token, + NULL, + &output_token, + NULL, + NULL); if(input_token.length > 0) gss_release_buffer(&minor_status2, &input_token); neg_ctx->status = major_status; |