diff options
author | Kevin Wasserman <kevin.wasserman@painless-security.com> | 2012-07-23 04:30:27 -0400 |
---|---|---|
committer | Tom Yu <tlyu@mit.edu> | 2012-08-27 19:27:32 -0400 |
commit | 8bdedeedad2fda5cacdce083ae1305cb368226fb (patch) | |
tree | b5a0da22618083f4a68fe456232a39df32c7b43f /src/windows/include | |
parent | 0dac508c84369ceadb3e6caf168ca1f2a433e32b (diff) | |
download | krb5-8bdedeedad2fda5cacdce083ae1305cb368226fb.zip krb5-8bdedeedad2fda5cacdce083ae1305cb368226fb.tar.gz krb5-8bdedeedad2fda5cacdce083ae1305cb368226fb.tar.bz2 |
kfw support for multiple identities
We need a sense of what the default identity is, then, with a way
to set it and list it.
The memory management model changes some, as well.
Use a bold font to indicate the current default identity in the
GUI; while here use an italic font for expired credentials.
In the process, rip out some krb4 remenants, and remove ancient
code conditional on the lack of KRB5_TC_NOTICKET.
Define USE_MESSAGE_BOX when building leash and use MessageBox().
[kaduk@mit.edu: adjust for style, flesh out commit message.]
(cherry picked from commit 9bc411e72fce5bed3ed00ae5b09f8c239309bae0)
ticket: 7253
status: resolved
Diffstat (limited to 'src/windows/include')
-rw-r--r-- | src/windows/include/leashwin.h | 30 |
1 files changed, 22 insertions, 8 deletions
diff --git a/src/windows/include/leashwin.h b/src/windows/include/leashwin.h index 6a26c43..39a7d1a 100644 --- a/src/windows/include/leashwin.h +++ b/src/windows/include/leashwin.h @@ -103,15 +103,29 @@ typedef struct { 2 * NETID_CCACHE_NAME_SZ)) #endif /* NETIDMGR */ -typedef struct { - char principal[MAX_K_NAME_SZ]; /* Principal name/instance/realm */ +typedef struct TicketList TicketList; +struct TicketList { + TicketList *next; + char *service; + char *encTypes; + krb5_timestamp issued; + krb5_timestamp valid_until; + krb5_timestamp renew_until; + unsigned long flags; +}; + +typedef struct TICKETINFO TICKETINFO; +struct TICKETINFO { + TICKETINFO *next; + char *principal; /* Principal name/instance@realm */ + char *ccache_name; + TicketList *ticket_list; int btickets; /* Do we have tickets? */ - long lifetime; /* Lifetime -- needs to have - room for 255 5-minute - periods * 5 * 60 */ - long issue_date; /* The issue time */ - long renew_till; /* The Renew time (k5 only) */ -} TICKETINFO; + long issued; /* The issue time */ + long valid_until; /* */ + long renew_until; /* The Renew time (k5 only) */ + unsigned long flags; +}; int FAR Leash_kinit_dlg(HWND hParent, LPLSH_DLGINFO lpdlginfo); int FAR Leash_kinit_dlg_ex(HWND hParent, LPLSH_DLGINFO_EX lpdlginfoex); |