fix checksum macros
authorJohn Kohl <jtkohl@mit.edu>
Mon, 4 Mar 1991 15:10:22 +0000 (15:10 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Mon, 4 Mar 1991 15:10:22 +0000 (15:10 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1845 dc483132-0cff-0310-8789-dd5450dbe970

src/include/krb5/encryption.h

index 0fbacdcfff1e6f32000c5101511640221d7f6ab6..b68433e879d95bcbf3c0b3cbd370c4a7fe639fd3 100644 (file)
@@ -165,7 +165,7 @@ extern int krb5_max_cksum;          /* max entry in array */
 /*
  * Here's the stuff for the checksum switch:
  */
-#define krb5_checksum_size(ctype)  (krb5_cksumarray[CKSUMTYPE_CRC32]->checksum_length)
-#define krb5_calculate_checksum(ctype, in, in_length, seed, seed_length, outcksum) ((*krb5_cksumarray[CKSUMTYPE_CRC32]->sum_func)(in, in_length, seed, seed_length, outcksum))
+#define krb5_checksum_size(ctype)  (krb5_cksumarray[ctype]->checksum_length)
+#define krb5_calculate_checksum(ctype, in, in_length, seed, seed_length, outcksum) ((*krb5_cksumarray[ctype]->sum_func)(in, in_length, seed, seed_length, outcksum))
 
 #endif /* KRB5_ENCRYPTION__ */