MENU IDM_KWIN
FONT 8, "Arial"
BEGIN
- CONTROL " Start Time End Time Ticket", IDD_TICKET_LIST_TITLE, "STATIC", SS_LEFT | WS_CHILD | WS_VISIBLE | WS_GROUP, 16, 7, 240, 8
+ CONTROL " Start Time End Time Ticket", IDD_TICKET_LIST_TITLE, "STATIC", SS_LEFT | WS_CHILD | WS_VISIBLE | WS_GROUP, 16, 7, 240, 8
CONTROL "", IDD_TICKET_LIST, "LISTBOX", LBS_NOTIFY | LBS_DISABLENOSCROLL | LBS_OWNERDRAWFIXED | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_VSCROLL, 8, 18, 261, 52
#ifdef KRB4
CONTROL "&Name", IDD_LOGIN_NAME_TITLE, "STATIC", SS_LEFT | WS_CHILD | WS_VISIBLE | WS_GROUP, 6, 69, 27, 8
#ifdef KRB5
#define NEED_SOCKETS
#include "krb5.h"
- #include "krbini.h"
#include "com_err.h"
#define DEFAULT_TKT_LIFE 120
strcpy(buf, " ");
strcat(buf, short_date(c.issue_date - kwin_get_epoch()));
expiration = c.issue_date - kwin_get_epoch() + (long) c.lifetime * 5L * 60L;
- strcat(buf, " ");
+ strcat (buf, " ");
strcat(buf, short_date(expiration));
+ strcat (buf, " ");
l = strlen(buf);
- sprintf(&buf[l], " %s%s%s%s%s (%d)",
+ sprintf(&buf[l], "%s%s%s%s%s (%d)",
c.service, (c.instance[0] ? "." : ""), c.instance,
(c.realm[0] ? "@" : ""), c.realm, c.kvno);
l = strlen(buf);
flags = 0;
if (code = krb5_cc_set_flags(k5_context, k5_ccache, flags)) {
if (code != KRB5_FCC_NOFILE) {
- //com_err (NULL, code,
- // "while setting cache flags (ticket cache %s)",
- // krb5_cc_get_name(k5_context, k5_ccache));
return -1;
}
} else {
if (code = krb5_cc_start_seq_get(k5_context, k5_ccache, &cursor)) {
- //com_err (NULL, code, "while starting to retrieve tickets");
return -1;
}
ncred++;
strcpy (buf, " ");
strcat (buf, short_date (c.times.starttime - kwin_get_epoch()));
- strcat (buf, " ");
+ strcat (buf, " ");
strcat (buf, short_date (c.times.endtime - kwin_get_epoch()));
- strcat (buf, " ");
+ strcat (buf, " ");
/* Add ticket service name and realm */
code = krb5_unparse_name (k5_context, c.server, &sname);
if (code == KRB5_CC_END) { /* End of ccache */
if (code = krb5_cc_end_seq_get(k5_context, k5_ccache, &cursor)) {
- //com_err(NULL, code, "while finishing ticket retrieval");
return -1;
}
flags = KRB5_TC_OPENCLOSE; /* turns on OPENCLOSE mode */
if (code = krb5_cc_set_flags(k5_context, k5_ccache, flags)) {
- //com_err(NULL, code, "while closing ccache");
return -1;
}
} else {
- //com_err(NULL, code, "while retrieving a ticket");
return -1;
}
}