summaryrefslogtreecommitdiff
path: root/lib/curl_gssapi.c
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2014-12-04 21:59:20 +0000
committerSteve Holme <steve_holme@hotmail.com>2014-12-04 22:05:14 +0000
commit750203bde46cc6a137c83b668e21d8495c94995a (patch)
tree7d902f0f561dab50deae90480ff46bc93ab542f4 /lib/curl_gssapi.c
parent0fcd74b836e20a3178a8381b31a2fb4d1495c7f6 (diff)
downloadcurl-750203bde46cc6a137c83b668e21d8495c94995a.tar.gz
sasl_gssapi: Fixed honouring of no mutual authentication
Diffstat (limited to 'lib/curl_gssapi.c')
-rw-r--r--lib/curl_gssapi.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/curl_gssapi.c b/lib/curl_gssapi.c
index 7c961c9f2..2cd14fff0 100644
--- a/lib/curl_gssapi.c
+++ b/lib/curl_gssapi.c
@@ -41,9 +41,13 @@ OM_uint32 Curl_gss_init_sec_context(
gss_channel_bindings_t input_chan_bindings,
gss_buffer_t input_token,
gss_buffer_t output_token,
+ const bool mutual_auth,
OM_uint32 *ret_flags)
{
- OM_uint32 req_flags = GSS_C_MUTUAL_FLAG | GSS_C_REPLAY_FLAG;
+ OM_uint32 req_flags = GSS_C_REPLAY_FLAG;
+
+ if(mutual_auth)
+ req_flags |= GSS_C_MUTUAL_FLAG;
if(data->set.gssapi_delegation & CURLGSSAPI_DELEGATION_POLICY_FLAG) {
#ifdef GSS_C_DELEG_POLICY_FLAG