aboutsummaryrefslogtreecommitdiff
path: root/src/windows/cns
diff options
context:
space:
mode:
authorKeith Vetter <keithv@fusion.com>1995-04-14 00:56:21 +0000
committerKeith Vetter <keithv@fusion.com>1995-04-14 00:56:21 +0000
commit48e59557cdff501a25c809cda3f1dd34a27cc52f (patch)
tree3bbc11e8ef7f3866da45c06871f18b1fae020bcb /src/windows/cns
parent73bd684de42505fe4e6a15803ddf074c57db671c (diff)
downloadkrb5-48e59557cdff501a25c809cda3f1dd34a27cc52f.zip
krb5-48e59557cdff501a25c809cda3f1dd34a27cc52f.tar.gz
krb5-48e59557cdff501a25c809cda3f1dd34a27cc52f.tar.bz2
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')
-rw-r--r--src/windows/cns/changelo5
-rw-r--r--src/windows/cns/cns.c13
-rw-r--r--src/windows/cns/tktlist.c4
3 files changed, 14 insertions, 8 deletions
diff --git a/src/windows/cns/changelo b/src/windows/cns/changelo
index c1acf83..6d79212 100644
--- a/src/windows/cns/changelo
+++ b/src/windows/cns/changelo
@@ -1,3 +1,8 @@
+Thu Apr 13 16:19:01 1995 Keith Vetter (keithv@fusion.com)
+
+ * cns.c: Added better error message for incorrect password.
+ * tktlist.c: flag string gets displayed within parentheses.
+
Fri Apr 7 15:03:10 1995 Keith Vetter (keithv@fusion.com)
* cns.c, cns.h, cns.rc: added option dialog widget allowing user
diff --git a/src/windows/cns/cns.c b/src/windows/cns/cns.c
index 50cf1cd..6d4c6cd 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
diff --git a/src/windows/cns/tktlist.c b/src/windows/cns/tktlist.c
index 8f258c6..1478ea1 100644
--- a/src/windows/cns/tktlist.c
+++ b/src/windows/cns/tktlist.c
@@ -445,6 +445,7 @@ flags_string(krb5_creds *cred) {
int i = 0;
buf[i++] = ' ';
+ buf[i++] = '(';
if (cred->ticket_flags & TKT_FLG_FORWARDABLE)
buf[i++] = 'F';
if (cred->ticket_flags & TKT_FLG_FORWARDED)
@@ -468,7 +469,10 @@ flags_string(krb5_creds *cred) {
if (cred->ticket_flags & TKT_FLG_PRE_AUTH)
buf[i++] = 'A';
+ buf[i++] = ')';
buf[i] = '\0';
+ if (i <= 3)
+ buf[0] = '\0';
return(buf);
}