support for libmoonshot identity selector
[mech_eap.git] / mech_eap / util_context.c
index e9a9308..054fa0f 100644 (file)
@@ -70,7 +70,8 @@ gssEapAllocContext(OM_uint32 *minor,
                     GSS_C_INTEG_FLAG    |   /* integrity */
                     GSS_C_CONF_FLAG     |   /* confidentiality */
                     GSS_C_SEQUENCE_FLAG |   /* sequencing */
-                    GSS_C_REPLAY_FLAG;      /* replay detection */
+                    GSS_C_REPLAY_FLAG|      /* replay detection */
+      GSS_C_MUTUAL_FLAG; /*xxx big hack */
 
     *pCtx = ctx;
 
@@ -129,7 +130,7 @@ gssEapReleaseContext(OM_uint32 *minor,
     gssEapReleaseName(&tmpMinor, &ctx->acceptorName);
     gssEapReleaseOid(&tmpMinor, &ctx->mechanismUsed);
     sequenceFree(&tmpMinor, &ctx->seqState);
-    gssEapReleaseCred(&tmpMinor, &ctx->defaultCred);
+    gssEapReleaseCred(&tmpMinor, &ctx->cred);
 
     GSSEAP_MUTEX_DESTROY(&ctx->mutex);