Add a cast
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@674 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -73,7 +73,7 @@ void kauth(int argc, char **argv)
|
|||||||
des_pcbc_encrypt((des_cblock*)tkt.dat, (des_cblock*)tktcopy.dat,
|
des_pcbc_encrypt((des_cblock*)tkt.dat, (des_cblock*)tktcopy.dat,
|
||||||
tkt.length,
|
tkt.length,
|
||||||
schedule, &key, DES_DECRYPT);
|
schedule, &key, DES_DECRYPT);
|
||||||
if (strcmp (tktcopy.dat + 8, "krbtgt") != 0) {
|
if (strcmp ((char*)tktcopy.dat + 8, "krbtgt") != 0) {
|
||||||
afs_string_to_key (passwd, krb_realmofhost(hostname), &key);
|
afs_string_to_key (passwd, krb_realmofhost(hostname), &key);
|
||||||
des_key_sched (&key, schedule);
|
des_key_sched (&key, schedule);
|
||||||
des_pcbc_encrypt((des_cblock*)tkt.dat, (des_cblock*)tktcopy.dat,
|
des_pcbc_encrypt((des_cblock*)tkt.dat, (des_cblock*)tktcopy.dat,
|
||||||
|
Reference in New Issue
Block a user