use new checksum macros
authorJohn Kohl <jtkohl@mit.edu>
Mon, 11 Mar 1991 11:55:54 +0000 (11:55 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Mon, 11 Mar 1991 11:55:54 +0000 (11:55 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1877 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/sample/sclient/sclient.c

index a53b5da7e0e8f42a9d76fdee3b3006a9b222333a..d740fbd1eb32fc86d4d9173bbef5ec655e48cb4d 100644 (file)
@@ -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);
     }