Tue Oct 4 14:51:32 1994 Theodore Y. Ts'o (tytso@dcl)
-* encryption.h: Add magic number to encryption structures.
+ * encryption.h: Cast various potential shorts to ints. This is
+ not quite right either, but the whole encryption interface
+ needs to be fixed.
+
+ * keytab.h (krb5_kt_ops.resolv): Resolve's first argument is a const.
+
+ * encryption.h: Add magic number to encryption structures.
Mon Oct 3 18:45:55 1994 Theodore Y. Ts'o (tytso@dcl)
extern krb5_checksum_entry *krb5_cksumarray[];
extern int krb5_max_cksum; /* max entry in array */
-#define valid_etype(etype) ((etype <= krb5_max_cryptosystem) && (etype > 0) && krb5_csarray[etype])
+#define valid_etype(etype) ((((int) etype) <= krb5_max_cryptosystem) && (etype > 0) && krb5_csarray[etype])
-#define valid_keytype(ktype) ((ktype <= krb5_max_keytype) && (ktype > 0) && krb5_keytype_array[ktype])
+#define valid_keytype(ktype) ((((int) ktype) <= krb5_max_keytype) && (ktype > 0) && krb5_keytype_array[ktype])
-#define valid_cksumtype(cktype) ((cktype <= krb5_max_cksum) && (cktype > 0) && krb5_cksumarray[cktype])
+#define valid_cksumtype(cktype) ((((int) 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)
krb5_magic magic;
char *prefix;
/* routines always present */
- krb5_error_code (*resolve) NPROTOTYPE((char *,
+ krb5_error_code (*resolve) NPROTOTYPE((const char *,
krb5_keytab *));
krb5_error_code (*get_name) NPROTOTYPE((krb5_keytab,
char *,