Fix compiler rumblings
authorPaul Park <pjpark@mit.edu>
Thu, 27 Jul 1995 19:47:29 +0000 (19:47 +0000)
committerPaul Park <pjpark@mit.edu>
Thu, 27 Jul 1995 19:47:29 +0000 (19:47 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6343 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/crypto/des/new_rn_key.c
src/lib/crypto/des/verify.c

index ada7ff4222cb45d603ddf8aba84172e2a4913dd1..ceb93f9de8a0e1d53a48face114f119bf3327a10 100644 (file)
@@ -206,8 +206,8 @@ mit_des_generate_random_block(block, p_seed)
     /*
      * Encrypt the sequence number to get the new random block:
      */
-    mit_des_ecb_encrypt((unsigned long *)p_seed->sequence_number, 
-                   (unsigned long *)block, 
+    mit_des_ecb_encrypt((mit_des_cblock *)p_seed->sequence_number, 
+                   (mit_des_cblock *)block, 
                    p_seed->random_sequence_key, 1);
 
     /*
index 376dff6b18a4e31ec716ac6e45e594f14411255f..117d188042b7ab98fa156817e5551e01b7e8147b 100644 (file)
@@ -370,8 +370,8 @@ do_encrypt(in,out)
     char *out;
 {
     for (i =1; i<=nflag; i++) {
-       mit_des_ecb_encrypt((u_long *)in,
-                           (u_long *)out,
+       mit_des_ecb_encrypt((mit_des_cblock *)in,
+                           (mit_des_cblock *)out,
                            (struct mit_des_ks_struct *)eblock.priv,
                            MIT_DES_ENCRYPT);
        if (mit_des_debug) {
@@ -392,8 +392,8 @@ do_decrypt(in,out)
     /* try to invert it */
 {
     for (i =1; i<=nflag; i++) {
-       mit_des_ecb_encrypt((u_long *)out,
-                           (u_long *)in,
+       mit_des_ecb_encrypt((mit_des_cblock *)out,
+                           (mit_des_cblock *)in,
                            (struct mit_des_ks_struct *)eblock.priv,
                            MIT_DES_DECRYPT);
        if (mit_des_debug) {