From: John Kohl Date: Mon, 11 Mar 1991 11:55:54 +0000 (+0000) Subject: use new checksum macros X-Git-Tag: krb5-1.0-alpha4~95 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9ba2ab5277ba5952f99a1f0a891c4adf1e1ba61c;p=krb5.git use new checksum macros git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1877 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/sample/sclient/sclient.c b/src/appl/sample/sclient/sclient.c index a53b5da7e..d740fbd1e 100644 --- a/src/appl/sample/sclient/sclient.c +++ b/src/appl/sample/sclient/sclient.c @@ -151,18 +151,18 @@ char *argv[]; /* compute checksum, using CRC-32 */ if (!(send_cksum.contents = (krb5_octet *) - malloc(krb5_cksumarray[CKSUMTYPE_CRC32]->checksum_length))) { + malloc(krb5_checksum_size(CKSUMTYPE_CRC32)))) { com_err(argv[0], ENOMEM, "while allocating checksum"); exit(1); } /* choose some random stuff to compute checksum from */ - if (retval = (*krb5_cksumarray[CKSUMTYPE_CRC32]-> - sum_func)(remote_host, - strlen(remote_host), - 0, - 0, /* if length is 0, crc-32 doesn't - use the seed */ - &send_cksum)) { + if (retval = krb5_calculate_checksum(CKSUMTYPE_CRC32, + remote_host, + strlen(remote_host), + 0, + 0, /* if length is 0, crc-32 doesn't + use the seed */ + &send_cksum)) { com_err(argv[0], retval, "while computing checksum"); exit(1); }