need to cast (keyblock is const)
authorJohn Kohl <jtkohl@mit.edu>
Fri, 19 Oct 1990 10:29:17 +0000 (10:29 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Fri, 19 Oct 1990 10:29:17 +0000 (10:29 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1290 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/crypto/des/process_ky.c

index 255a129d0dcc46e3969033027be0b782cc3d48d5..0445acbfdcf499116c717e6aa76770b7ca04fd78 100644 (file)
@@ -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;
     }