From: Ezra Peisach Date: Sat, 26 Aug 1995 17:09:07 +0000 (+0000) Subject: * des_crc.c, des_md5.c, raw_des.c: Remove casting in call to X-Git-Tag: krb5-1.0-beta6~1258 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=324bb44bd27be9cfaaef0e634aef366c8c412d85;p=krb5.git * des_crc.c, des_md5.c, raw_des.c: Remove casting in call to mit_des_cbc_encrypt. Fixing headers in crypto/des to pass -fmissing_prototypes complaints. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6597 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/crypto/ChangeLog b/src/lib/crypto/ChangeLog index ac59882f1..ad0195ad6 100644 --- a/src/lib/crypto/ChangeLog +++ b/src/lib/crypto/ChangeLog @@ -1,3 +1,7 @@ +Thu Aug 24 17:55:47 1995 Ezra Peisach + + * des_crc.c, des_md5.c, raw_des.c: Remove casting in call to + mit_des_cbc_encrypt. Thu Jul 27 15:15:46 EDT 1995 Paul Park (pjpark@mit.edu) * configure.in - Add --enable-{des-cbc-md5,des-cbc-crc,raw-des-cbc, diff --git a/src/lib/crypto/des_crc.c b/src/lib/crypto/des_crc.c index 75bf94d81..f6c5d2250 100644 --- a/src/lib/crypto/des_crc.c +++ b/src/lib/crypto/des_crc.c @@ -140,8 +140,8 @@ mit_des_crc_decrypt_func(in, out, size, key, ivec) if ( size < 2*sizeof(mit_des_cblock) ) return KRB5_BAD_MSIZE; - retval = mit_des_cbc_encrypt((mit_des_cblock FAR *) in, - (mit_des_cblock FAR *) out, + retval = mit_des_cbc_encrypt(in, + out, size, (struct mit_des_ks_struct *) key->priv, ivec ? ivec : (krb5_pointer)key->key->contents, diff --git a/src/lib/crypto/des_md5.c b/src/lib/crypto/des_md5.c index 7b846e0f3..c84d958ca 100644 --- a/src/lib/crypto/des_md5.c +++ b/src/lib/crypto/des_md5.c @@ -141,7 +141,7 @@ mit_des_md5_decrypt_func(in, out, size, key, ivec) if ( size < 2*sizeof(mit_des_cblock) ) return KRB5_BAD_MSIZE; - retval = mit_des_cbc_encrypt((const mit_des_cblock *) in, + retval = mit_des_cbc_encrypt(in, out, size, (struct mit_des_ks_struct *) key->priv, diff --git a/src/lib/crypto/raw_des.c b/src/lib/crypto/raw_des.c index 8bb889abc..9922dbf28 100644 --- a/src/lib/crypto/raw_des.c +++ b/src/lib/crypto/raw_des.c @@ -63,7 +63,7 @@ mit_raw_des_decrypt_func(in, out, size, key, ivec) krb5_encrypt_block * key; krb5_pointer ivec; { - return (mit_des_cbc_encrypt ((const mit_des_cblock *) in, + return (mit_des_cbc_encrypt (in, out, size, (struct mit_des_ks_struct *)key->priv,