From 4af65190a8d5a03d0a68ea42c84cf3d910534d2c Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Thu, 23 Sep 2010 17:32:21 +0200 Subject: [PATCH] Pass GSS_C_DCE_STYLE to wrap/unwrap --- accept_sec_context.c | 2 +- unwrap_iov.c | 2 +- util_reauth.c | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/accept_sec_context.c b/accept_sec_context.c index eb1a07c..a65d7a9 100644 --- a/accept_sec_context.c +++ b/accept_sec_context.c @@ -500,7 +500,7 @@ eapGssSmAcceptGssReauth(OM_uint32 *minor, krbInitiator, mech, timeRec); } - ctx->gssFlags = gssFlags & ~(GSS_C_DCE_STYLE); + ctx->gssFlags = gssFlags; gssReleaseName(&tmpMinor, &krbInitiator); diff --git a/unwrap_iov.c b/unwrap_iov.c index ee2790d..7e6eb87 100644 --- a/unwrap_iov.c +++ b/unwrap_iov.c @@ -293,7 +293,7 @@ unwrapStream(OM_uint32 *minor, assert(toktype == TOK_TYPE_WRAP); - if (toktype != TOK_TYPE_WRAP || (ctx->gssFlags & GSS_C_DCE_STYLE)) { + if (toktype != TOK_TYPE_WRAP) { code = EINVAL; goto cleanup; } diff --git a/util_reauth.c b/util_reauth.c index b4407b7..7b16c0d 100644 --- a/util_reauth.c +++ b/util_reauth.c @@ -793,4 +793,3 @@ cleanup: return major; } - -- 2.1.4