Pass GSS_C_DCE_STYLE to wrap/unwrap
authorLuke Howard <lukeh@padl.com>
Thu, 23 Sep 2010 15:32:21 +0000 (17:32 +0200)
committerLuke Howard <lukeh@padl.com>
Thu, 23 Sep 2010 15:32:21 +0000 (17:32 +0200)
mech_eap/accept_sec_context.c
mech_eap/unwrap_iov.c
mech_eap/util_reauth.c

index eb1a07c..a65d7a9 100644 (file)
@@ -500,7 +500,7 @@ eapGssSmAcceptGssReauth(OM_uint32 *minor,
                                krbInitiator, mech, timeRec);
     }
 
-    ctx->gssFlags = gssFlags & ~(GSS_C_DCE_STYLE);
+    ctx->gssFlags = gssFlags;
 
     gssReleaseName(&tmpMinor, &krbInitiator);
 
index ee2790d..7e6eb87 100644 (file)
@@ -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;
     }
index b4407b7..7b16c0d 100644 (file)
@@ -793,4 +793,3 @@ cleanup:
 
     return major;
 }
-