MS "wrong" krb5 OID for testing.
* spnego_mech.c (acc_ctx_call_acc): Env var option to force
disabling of MIC checks when mutual auth not requested, for
testing purposes.
git-svn-id: svn://anonsvn.mit.edu/krb5/branches/mechglue@18040
dc483132-0cff-0310-8789-
dd5450dbe970
+2006-05-25 Tom Yu <tlyu@mit.edu>
+
+ * g_initialize.c (init_hardcoded): Env var option to disable the
+ MS "wrong" krb5 OID for testing.
+
2006-03-28 Tom Yu <tlyu@mit.edu>
* g_initialize.c (build_mechSet): Actually return a value on success.
g_mechListTail->next = cf;
g_mechListTail = cf;
+#ifdef MS_BUG_TEST
+ {
+ char *envstr = getenv("MS_FORCE_NO_MSOID");
+
+ if (envstr != NULL && strcmp(envstr, "1") == 0) {
+ inited = 1;
+ return;
+ }
+ }
+#endif
cf = malloc(sizeof(*cf));
if (cf == NULL)
return;
+2006-05-25 Tom Yu <tlyu@mit.edu>
+
+ * spnego_mech.c (acc_ctx_call_acc): Env var option to force
+ disabling of MIC checks when mutual auth not requested, for
+ testing purposes.
+
2006-05-25 Tom Yu <tlyu@mit.edu>
* spnego_mech.c (acc_ctx_call_acc): Wrap call to
time_rec,
delegated_cred_handle);
if (ret == GSS_S_COMPLETE) {
+#ifdef MS_BUG_TEST
+ /*
+ * Force MIC to be not required even if we previously
+ * requested a MIC.
+ */
+ char *envstr = getenv("MS_FORCE_NO_MIC");
+
+ if (envstr != NULL && strcmp(envstr, "1") == 0 &&
+ !(sc->ctx_flags & GSS_C_MUTUAL_FLAG) &&
+ sc->mic_reqd) {
+
+ sc->mic_reqd = 0;
+ }
+#endif
sc->mech_complete = 1;
if (ret_flags != NULL)
*ret_flags = sc->ctx_flags;