From: Theodore Tso Date: Fri, 6 Oct 1995 02:45:47 +0000 (+0000) Subject: Change types of krb5_max_enctype and krb5_max_cksumtype to be X-Git-Tag: krb5-1.0-beta6~934 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=82f35c2c03d67e37accbb5b2748c89711ef0ca58;p=krb5.git Change types of krb5_max_enctype and krb5_max_cksumtype to be krb5_enctype and krb5_cksumtype, to fix some gcc -Wall flames. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6934 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/include/ChangeLog b/src/include/ChangeLog index d9aa22dfd..0df714464 100644 --- a/src/include/ChangeLog +++ b/src/include/ChangeLog @@ -1,3 +1,9 @@ +Thu Oct 5 21:31:10 1995 Theodore Y. Ts'o + + * krb5.hin: Change types of krb5_max_enctype and + krb5_max_cksumtype to be krb5_enctype and krb5_cksumtype, + to fix some gcc -Wall flames. + Thu Oct 5 07:34:51 1995 Ezra Peisach * k5-int.h: Add profile_secure to context. diff --git a/src/include/krb5.hin b/src/include/krb5.hin index 11de954e2..ff87f4ed4 100644 --- a/src/include/krb5.hin +++ b/src/include/krb5.hin @@ -434,15 +434,15 @@ extern int krb5_max_cryptosystem; /* max entry in array */ the same entries as krb5_csarray */ /* XXX what if a given enctype works for several etypes? */ extern krb5_cs_table_entry * NEAR krb5_enctype_array[]; -extern int krb5_max_enctype; /* max entry in array */ +extern krb5_enctype krb5_max_enctype; /* max entry in array */ /* This array is indexed by checksum type */ extern krb5_checksum_entry * NEAR krb5_cksumarray[]; -extern int krb5_max_cksum; /* max entry in array */ +extern krb5_cksumtype krb5_max_cksum; /* max entry in array */ -#define valid_enctype(ktype) ((((int) (ktype)) <= krb5_max_enctype) && ((ktype) > 0) && krb5_enctype_array[ktype]) +#define valid_enctype(ktype) ((((ktype)) <= krb5_max_enctype) && ((ktype) > 0) && krb5_enctype_array[ktype]) -#define valid_cksumtype(cktype) ((((int) (cktype)) <= krb5_max_cksum) && ((cktype) > 0) && krb5_cksumarray[cktype]) +#define valid_cksumtype(cktype) ((((cktype)) <= krb5_max_cksum) && ((cktype) > 0) && krb5_cksumarray[cktype]) #define is_coll_proof_cksum(cktype) (krb5_cksumarray[cktype]->is_collision_proof) #define is_keyed_cksum(cktype) (krb5_cksumarray[cktype]->uses_key)