From 6d15dd98fedec23bfd85108db5379e03d8e8f271 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Wed, 1 May 1991 11:20:54 +0000 Subject: [PATCH] use krb5_calculate_checksum macro git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2081 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/crypto/des/krb_glue.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/lib/crypto/des/krb_glue.c b/src/lib/crypto/des/krb_glue.c index a85b8ed90..7ce08b5c2 100644 --- a/src/lib/crypto/des/krb_glue.c +++ b/src/lib/crypto/des/krb_glue.c @@ -154,12 +154,12 @@ OLDDECLARG(krb5_pointer, ivec) memset(endinput, 0, sumsize - size); cksum.contents = contents; - if (retval = (*krb5_cksumarray[CKSUMTYPE_CRC32]-> - sum_func)((krb5_pointer) in, - sumsize, - (krb5_pointer)key->key->contents, - sizeof(mit_des_cblock), - &cksum)) + if (retval = krb5_calculate_checksum(CKSUMTYPE_CRC32, + (krb5_pointer) in, + sumsize, + (krb5_pointer)key->key->contents, + sizeof(mit_des_cblock), + &cksum)) return retval; memcpy(p, (char *)contents, CRC32_CKSUM_LENGTH); @@ -195,12 +195,12 @@ OLDDECLARG(krb5_pointer, ivec) memcpy((char *)contents_get, p, CRC32_CKSUM_LENGTH); memset(p, 0, CRC32_CKSUM_LENGTH); - if (retval = (*krb5_cksumarray[CKSUMTYPE_CRC32]-> - sum_func)(out, - size, - (krb5_pointer)key->key->contents, - sizeof(mit_des_cblock), - &cksum)) + if (retval = krb5_calculate_checksum(CKSUMTYPE_CRC32, + out, + size, + (krb5_pointer)key->key->contents, + sizeof(mit_des_cblock), + &cksum)) return retval; if (memcmp((char *)contents_get, (char *)contents_prd, CRC32_CKSUM_LENGTH) ) -- 2.26.2