diff options
author | Keith Vetter <keithv@fusion.com> | 1995-04-14 00:56:21 +0000 |
---|---|---|
committer | Keith Vetter <keithv@fusion.com> | 1995-04-14 00:56:21 +0000 |
commit | 48e59557cdff501a25c809cda3f1dd34a27cc52f (patch) | |
tree | 3bbc11e8ef7f3866da45c06871f18b1fae020bcb /src/windows/cns/cns.c | |
parent | 73bd684de42505fe4e6a15803ddf074c57db671c (diff) | |
download | krb5-48e59557cdff501a25c809cda3f1dd34a27cc52f.tar.gz krb5-48e59557cdff501a25c809cda3f1dd34a27cc52f.tar.xz krb5-48e59557cdff501a25c809cda3f1dd34a27cc52f.zip |
Windows global stuff:
o removed INTERFACE from non-api functions
o add FAR to pointers visible to the world
o made the tests for __STDC__ also check for _WINDOWS
o creates GSSAPI.DLL & GSSAPI.LIB as per spec.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5354 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/windows/cns/cns.c')
-rw-r--r-- | src/windows/cns/cns.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/windows/cns/cns.c b/src/windows/cns/cns.c index 50cf1cdd2c..6d4c6cdad2 100644 --- a/src/windows/cns/cns.c +++ b/src/windows/cns/cns.c @@ -1940,7 +1940,6 @@ kwin_command ( krb5_principal principal; krb5_creds creds; krb5_principal server; - krb5_timestamp now; krb5_int32 sec, usec; #endif @@ -2063,12 +2062,6 @@ kwin_command ( code = krb5_us_timeofday(k5_context, &sec, &usec); if (code) break; - code = krb5_timeofday(k5_context, &now); - if (code) break; - if (labs(now-sec) > 60*60) { // Off by more than an hour - MessageBox (NULL, "DEBUG: timeofday != us_timeofday", NULL, 0); - now = sec; - } creds.times.starttime = 0; creds.times.endtime = sec + 60L * lifetime; creds.times.renew_till = 0; @@ -2099,7 +2092,11 @@ kwin_command ( #ifdef KRB5 if (code) { - com_err (NULL, code, "while logging in"); + if (code == KRB5KRB_AP_ERR_BAD_INTEGRITY) + MessageBox (hwnd, "Password incorrect", NULL, + MB_OK | MB_ICONEXCLAMATION); + else + com_err (NULL, code, "while logging in"); return TRUE; } #endif |