From: Paul Park Date: Thu, 27 Jul 1995 19:47:29 +0000 (+0000) Subject: Fix compiler rumblings X-Git-Tag: krb5-1.0-beta6~1477 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a636e6ba792ae586c4ad0fcd637e2c4b46555d92;p=krb5.git Fix compiler rumblings git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6343 dc483132-0cff-0310-8789-dd5450dbe970 --- 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) {