From: Theodore Tso Date: Thu, 3 Jun 1993 00:05:17 +0000 (+0000) Subject: Added the kdc_cred structures X-Git-Tag: krb5-1.0-beta3~295 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2dc53a0b5795ee6a204d182ae77800728394ef7f;p=krb5.git Added the kdc_cred structures Removed FD_SET commands to a better place (sysincls.h) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2543 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/include/krb5/krb5.h b/src/include/krb5/krb5.h index efd6fade7..498821380 100644 --- a/src/include/krb5/krb5.h +++ b/src/include/krb5/krb5.h @@ -47,8 +47,7 @@ /* Time set */ typedef struct _krb5_ticket_times { - krb5_timestamp authtime; /* XXX ? should ktime in KDC_REP == authtime - in ticket? otherwise client can't get this */ + krb5_timestamp authtime; krb5_timestamp starttime; /* optional in ticket, if not present, use authtime */ krb5_timestamp endtime; @@ -240,6 +239,31 @@ typedef struct _krb5_priv_enc_part { krb5_address *r_address; /* recipient address, optional */ } krb5_priv_enc_part; +typedef struct _krb5_cred { + krb5_ticket **tickets; /* tickets */ + krb5_enc_data enc_part; /* encrypted part */ +} krb5_cred; + +typedef struct _krb5_cred_enc_struct { + krb5_keyblock* session; /* session key used to encrypt */ + /* ticket */ + krb5_int32 nonce; /* nonce, optional */ + krb5_timestamp timestamp; /* client time */ + krb5_int32 usec; /* microsecond portion of time */ + krb5_address *s_address; /* sender address, optional */ + krb5_address *r_address; /* recipient address, optional */ + krb5_principal client; /* client name/realm, optional */ + krb5_principal server; /* server name/realm, optional */ + krb5_flags flags; /* ticket flags, optional */ + krb5_ticket_times times; /* auth, start, end, renew_till, */ + /* optional */ + krb5_address **caddrs; /* array of ptrs to addresses */ +} krb5_cred_enc_struct; + +typedef struct _krb5_cred_enc_part { + krb5_cred_enc_struct **creds; +} krb5_cred_enc_part; + /* these need to be here so the typedefs are available for the prototypes */ #include #include @@ -248,16 +272,6 @@ typedef struct _krb5_priv_enc_part { #include #include -/* This is from Sandia */ -#ifndef FD_SET -#define FD_SETSIZE (sizeof (fd_set) * 8) - -#define FD_SET(f,s) ((s)->fds_bits[0] |= (1 << (f))) -#define FD_CLR(f,s) ((s)->fds_bits[0] &= ~(1 << (f))) -#define FD_ISSET(f,s) ((s)->fds_bits[0] & (1 << (f))) -#define FD_ZERO(s) ((s)->fds_bits[0] = 0) -#endif - /* Sandia password generation structures */ typedef struct _passwd_phrase_element { krb5_data *passwd;