From 8e412231d3aca9ca9d943f9dbb3fa26b23983bd3 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Mon, 4 Mar 1991 15:10:22 +0000 Subject: [PATCH] fix checksum macros git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1845 dc483132-0cff-0310-8789-dd5450dbe970 --- src/include/krb5/encryption.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/include/krb5/encryption.h b/src/include/krb5/encryption.h index 0fbacdcff..b68433e87 100644 --- a/src/include/krb5/encryption.h +++ b/src/include/krb5/encryption.h @@ -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__ */ -- 2.26.2