aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Yu <tlyu@mit.edu>2004-06-22 15:38:04 +0000
committerTom Yu <tlyu@mit.edu>2004-06-22 15:38:04 +0000
commit08d904f8694923dbd1d3dd0279639068901d8002 (patch)
tree79404bd100dc6ef36b9ee41fc629fd0efff16ba8
parent284efb9c153d3bacb82d70d378f6a07786402696 (diff)
downloadkrb5-08d904f8694923dbd1d3dd0279639068901d8002.zip
krb5-08d904f8694923dbd1d3dd0279639068901d8002.tar.gz
krb5-08d904f8694923dbd1d3dd0279639068901d8002.tar.bz2
pullup from trunk
ticket: 2608 version_fixed: 1.3.5 git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-3@16504 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r--src/lib/krb5/ccache/ChangeLog9
-rw-r--r--src/lib/krb5/ccache/cc_mslsa.c8
2 files changed, 17 insertions, 0 deletions
diff --git a/src/lib/krb5/ccache/ChangeLog b/src/lib/krb5/ccache/ChangeLog
index 38dcf2c..1f6a3d9 100644
--- a/src/lib/krb5/ccache/ChangeLog
+++ b/src/lib/krb5/ccache/ChangeLog
@@ -1,3 +1,12 @@
+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
diff --git a/src/lib/krb5/ccache/cc_mslsa.c b/src/lib/krb5/ccache/cc_mslsa.c
index 07e5606..f57b397 100644
--- a/src/lib/krb5/ccache/cc_mslsa.c
+++ b/src/lib/krb5/ccache/cc_mslsa.c
@@ -98,6 +98,13 @@ ShowWinError(LPSTR szAPI, DWORD dwError)
// 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;
@@ -117,6 +124,7 @@ ShowWinError(LPSTR szAPI, DWORD dwError)
}
printf("%S",szMsgBuf);
+#endif /* COMMENT */
}
static VOID