the program on a failure to generate a message. The existing code fails
on non-English systems. We do not need this code in a library unless we
are logging to the Event Log which is currently not done. Ignore this
for the time being until such time as we decide Event Log entries are
important to us.
ticket: new
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16503
dc483132-0cff-0310-8789-
dd5450dbe970
+2004-06-21 Jeffrey Altman <jaltman@mit.edu>
+
+ * cc_mslsa.c: Comment out call to FormatMessage() which fails
+ horribly on non-English systems. We do not need the output
+ or printf statements as part of a library. Therefore, we
+ will ignore this for the time being. When we decide we
+ want to log event to the Event Log then we can properly
+ implement this function.
+
2004-06-18 Jeffrey Altman <jaltman@mit.edu>
* cc_mslsa.c: Enforce acceptable enctypes by checking against
// TODO - Write errors to event log so that scripts that don't
// check for errors will still get something in the event log
+ // This code is completely unsafe for use on non-English systems
+ // Any call to this function will result in the FormatMessage
+ // call failing and the program terminating. This might have
+ // been acceptable when this code was part of ms2mit.exe as
+ // a standalone executable but it is not appropriate for a library
+
+#ifdef COMMENT
WCHAR szMsgBuf[MAX_MSG_SIZE];
DWORD dwRes;
}
printf("%S",szMsgBuf);
+#endif /* COMMENT */
}
static VOID