From a636e6ba792ae586c4ad0fcd637e2c4b46555d92 Mon Sep 17 00:00:00 2001 From: Paul Park Date: Thu, 27 Jul 1995 19:47:29 +0000 Subject: [PATCH] Fix compiler rumblings git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6343 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/crypto/des/new_rn_key.c | 4 ++-- src/lib/crypto/des/verify.c | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/lib/crypto/des/new_rn_key.c b/src/lib/crypto/des/new_rn_key.c index ada7ff422..ceb93f9de 100644 --- a/src/lib/crypto/des/new_rn_key.c +++ b/src/lib/crypto/des/new_rn_key.c @@ -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); /* diff --git a/src/lib/crypto/des/verify.c b/src/lib/crypto/des/verify.c index 376dff6b1..117d18804 100644 --- a/src/lib/crypto/des/verify.c +++ b/src/lib/crypto/des/verify.c @@ -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) { -- 2.26.2