diff options
author | Adam Tkac <atkac@redhat.com> | 2011-07-19 19:10:43 +0200 |
---|---|---|
committer | Kamil Dudka <kdudka@redhat.com> | 2011-08-03 10:23:34 +0200 |
commit | ebf42c4be76df40ec6d3bf32f229bbb274e2c32f (patch) | |
tree | 9f8d2beb5ea948ef116a9bca0e9bab1db937529e /lib/curl_gssapi.c | |
parent | 7688a99bef48ad9b64af971e983e8709c5b12ce4 (diff) | |
download | curl-ebf42c4be76df40ec6d3bf32f229bbb274e2c32f.tar.gz |
Add new CURLOPT_GSSAPI_DELEGATION option.
Curl_gss_init_sec_context got new parameter - SessionHandle.
Signed-off-by: Adam Tkac <atkac@redhat.com>
Diffstat (limited to 'lib/curl_gssapi.c')
-rw-r--r-- | lib/curl_gssapi.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/curl_gssapi.c b/lib/curl_gssapi.c index 3b6b189e4..6b47987dd 100644 --- a/lib/curl_gssapi.c +++ b/lib/curl_gssapi.c @@ -27,6 +27,7 @@ #include "curl_gssapi.h" OM_uint32 Curl_gss_init_sec_context( + const struct SessionHandle *data, OM_uint32 * minor_status, gss_ctx_id_t * context, gss_name_t target_name, @@ -35,13 +36,18 @@ OM_uint32 Curl_gss_init_sec_context( gss_buffer_t output_token, OM_uint32 * ret_flags) { + OM_uint32 req_flags; + + req_flags = GSS_C_MUTUAL_FLAG | GSS_C_REPLAY_FLAG; + if (data->set.gssapi_delegation) + req_flags |= GSS_C_DELEG_FLAG; + return gss_init_sec_context(minor_status, GSS_C_NO_CREDENTIAL, /* cred_handle */ context, target_name, GSS_C_NO_OID, /* mech_type */ - /* req_flags */ - GSS_C_MUTUAL_FLAG | GSS_C_REPLAY_FLAG, + req_flags, 0, /* time_req */ input_chan_bindings, input_token, |