From 439ec2b799e890972638ca02374649d26dea3046 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Fri, 19 Oct 1990 10:29:17 +0000 Subject: [PATCH] need to cast (keyblock is const) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1290 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/crypto/des/process_ky.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; } -- 2.26.2