diff options
author | Tom Yu <tlyu@mit.edu> | 2000-07-04 01:19:12 +0000 |
---|---|---|
committer | Tom Yu <tlyu@mit.edu> | 2000-07-04 01:19:12 +0000 |
commit | bc4617b9cfaf6ad714adf07bb45bc0cefd02e590 (patch) | |
tree | f7ce09ce1660b11fbbe5630cfa4f6798065fc4ff | |
parent | 65ceac3da0ea189682729ed001577b59a13cc80b (diff) | |
download | krb5-bc4617b9cfaf6ad714adf07bb45bc0cefd02e590.tar.gz krb5-bc4617b9cfaf6ad714adf07bb45bc0cefd02e590.tar.xz krb5-bc4617b9cfaf6ad714adf07bb45bc0cefd02e590.zip |
* cr_tkt.c: Frob prototypes so they don't involve narrow types
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12529 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r-- | src/lib/krb4/ChangeLog | 4 | ||||
-rw-r--r-- | src/lib/krb4/cr_tkt.c | 16 |
2 files changed, 12 insertions, 8 deletions
diff --git a/src/lib/krb4/ChangeLog b/src/lib/krb4/ChangeLog index cdf51ac37..bd0d20475 100644 --- a/src/lib/krb4/ChangeLog +++ b/src/lib/krb4/ChangeLog @@ -1,3 +1,7 @@ +2000-07-03 Tom Yu <tlyu@mit.edu> + + * cr_tkt.c: Frob prototypes so they don't involve narrow types. + 2000-06-28 Ezra Peisach <epeisach@mit.edu> * cr_tkt.c: Provide prototype for static krb_cr_tkt_int function diff --git a/src/lib/krb4/cr_tkt.c b/src/lib/krb4/cr_tkt.c index 7ed959f78..bb6b611f5 100644 --- a/src/lib/krb4/cr_tkt.c +++ b/src/lib/krb4/cr_tkt.c @@ -16,9 +16,9 @@ #include <krb5.h> static int -krb_cr_tkt_int PROTOTYPE((KTEXT tkt, unsigned char flags, char *pname, +krb_cr_tkt_int PROTOTYPE((KTEXT tkt, unsigned int flags, char *pname, char *pinstance, char *prealm, long paddress, - char *session, short life, long time_sec, + char *session, int life, long time_sec, char *sname, char *sinstance, C_Block key, krb5_keyblock *k5key)); @@ -82,13 +82,13 @@ int krb_create_ticket(tkt, flags, pname, pinstance, prealm, paddress, session, life, time_sec, sname, sinstance, key, k5key) KTEXT tkt; /* Gets filled in by the ticket */ - unsigned char flags; /* Various Kerberos flags */ + unsigned int flags; /* Various Kerberos flags */ char *pname; /* Principal's name */ char *pinstance; /* Principal's instance */ char *prealm; /* Principal's authentication domain */ long paddress; /* Net address of requesting entity */ char *session; /* Session key inserted in ticket */ - short life; /* Lifetime of the ticket */ + int life; /* Lifetime of the ticket */ long time_sec; /* Issue time and date */ char *sname; /* Service Name */ char *sinstance; /* Instance Name */ @@ -103,13 +103,13 @@ int krb_cr_tkt_krb5(tkt, flags, pname, pinstance, prealm, paddress, session, life, time_sec, sname, sinstance, k5key) KTEXT tkt; /* Gets filled in by the ticket */ - unsigned char flags; /* Various Kerberos flags */ + unsigned int flags; /* Various Kerberos flags */ char *pname; /* Principal's name */ char *pinstance; /* Principal's instance */ char *prealm; /* Principal's authentication domain */ long paddress; /* Net address of requesting entity */ char *session; /* Session key inserted in ticket */ - short life; /* Lifetime of the ticket */ + int life; /* Lifetime of the ticket */ long time_sec; /* Issue time and date */ char *sname; /* Service Name */ char *sinstance; /* Instance Name */ @@ -126,13 +126,13 @@ static int krb_cr_tkt_int(tkt, flags, pname, pinstance, prealm, paddress, session, life, time_sec, sname, sinstance, key, k5key) KTEXT tkt; /* Gets filled in by the ticket */ - unsigned char flags; /* Various Kerberos flags */ + unsigned int flags; /* Various Kerberos flags */ char *pname; /* Principal's name */ char *pinstance; /* Principal's instance */ char *prealm; /* Principal's authentication domain */ long paddress; /* Net address of requesting entity */ char *session; /* Session key inserted in ticket */ - short life; /* Lifetime of the ticket */ + int life; /* Lifetime of the ticket */ long time_sec; /* Issue time and date */ char *sname; /* Service Name */ char *sinstance; /* Instance Name */ |