From: John Kohl Date: Fri, 19 Oct 1990 10:29:17 +0000 (+0000) Subject: need to cast (keyblock is const) X-Git-Tag: krb5-1.0-alpha2~121 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=439ec2b799e890972638ca02374649d26dea3046;p=krb5.git need to cast (keyblock is const) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1290 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/crypto/des/process_ky.c b/src/lib/crypto/des/process_ky.c index 255a129d0..0445acbfd 100644 --- a/src/lib/crypto/des/process_ky.c +++ b/src/lib/crypto/des/process_ky.c @@ -36,9 +36,9 @@ static char rcsid_process_ky_c[] = */ krb5_error_code mit_des_process_key (DECLARG(krb5_encrypt_block *, eblock), - DECLARG(krb5_keyblock *,keyblock)) + DECLARG(const krb5_keyblock *,keyblock)) OLDDECLARG(krb5_encrypt_block *, eblock) -OLDDECLARG(krb5_keyblock *,keyblock) +OLDDECLARG(const krb5_keyblock *,keyblock) { struct mit_des_ks_struct *schedule; /* pointer to key schedules */ @@ -59,7 +59,7 @@ OLDDECLARG(krb5_keyblock *,keyblock) return KRB5DES_WEAK_KEY; /* XXX error code-weak key */ default: - eblock->key = keyblock; + eblock->key = (krb5_keyblock *) keyblock; eblock->priv = (krb5_pointer) schedule; return 0; }