cast parameters to des function to non-const pointers to handle the
case where these functions actually take non-const des_cblock * git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9518 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997 - 2000 Kungliga Tekniska H<>gskolan
|
||||
* Copyright (c) 1997 - 2001 Kungliga Tekniska H<>gskolan
|
||||
* (Royal Institute of Technology, Stockholm, Sweden).
|
||||
* All rights reserved.
|
||||
*
|
||||
@@ -86,7 +86,7 @@ mic_des
|
||||
memset (&zero, 0, sizeof(zero));
|
||||
memcpy (&deskey, key->keyvalue.data, sizeof(deskey));
|
||||
des_set_key (&deskey, schedule);
|
||||
des_cbc_cksum ((const void *)hash, (void *)hash, sizeof(hash),
|
||||
des_cbc_cksum ((void *)hash, (void *)hash, sizeof(hash),
|
||||
schedule, &zero);
|
||||
memcpy (p - 8, hash, 8); /* SGN_CKSUM */
|
||||
|
||||
@@ -105,7 +105,7 @@ mic_des
|
||||
4);
|
||||
|
||||
des_set_key (&deskey, schedule);
|
||||
des_cbc_encrypt ((const void *)p, (void *)p, 8,
|
||||
des_cbc_encrypt ((void *)p, (void *)p, 8,
|
||||
schedule, (des_cblock *)(p + 8), DES_ENCRYPT);
|
||||
|
||||
krb5_auth_setlocalseqnumber (gssapi_krb5_context,
|
||||
|
Reference in New Issue
Block a user