Make this compile again, before I nuke it from orbit.

This commit is contained in:
christos 2006-03-19 21:01:17 +00:00
parent cd35252882
commit 4ea32734dc
4 changed files with 8 additions and 8 deletions

View File

@ -34,7 +34,7 @@
#include "krb_locl.h" #include "krb_locl.h"
__RCSID("$KTH-KRB: mk_priv.c,v 1.25 2001/09/16 22:41:58 assar Exp $" __RCSID("$KTH-KRB: mk_priv.c,v 1.25 2001/09/16 22:41:58 assar Exp $"
"$NetBSD: mk_priv.c,v 1.3 2002/09/12 12:33:15 joda Exp $"); "$NetBSD: mk_priv.c,v 1.4 2006/03/19 21:01:17 christos Exp $");
/* application include files */ /* application include files */
#include "krb-archaeology.h" #include "krb-archaeology.h"
@ -115,7 +115,7 @@ krb_mk_priv(void *in, void *out, u_int32_t length,
memset(p, 0, 7); memset(p, 0, 7);
des_pcbc_encrypt(cipher, cipher, des_pcbc_encrypt(cipher, cipher,
len, schedule, key, DES_ENCRYPT); len, (void *)schedule, key, DES_ENCRYPT);
return (cipher - (unsigned char*)out) + len; return (cipher - (unsigned char*)out) + len;
} }

View File

@ -34,7 +34,7 @@
#include "krb_locl.h" #include "krb_locl.h"
__RCSID("$KTH-KRB: rd_priv.c,v 1.30 2001/09/16 22:41:58 assar Exp $" __RCSID("$KTH-KRB: rd_priv.c,v 1.30 2001/09/16 22:41:58 assar Exp $"
"$NetBSD: rd_priv.c,v 1.4 2002/09/12 12:33:15 joda Exp $"); "$NetBSD: rd_priv.c,v 1.5 2006/03/19 21:01:17 christos Exp $");
/* application include files */ /* application include files */
#include "krb-archaeology.h" #include "krb-archaeology.h"
@ -85,7 +85,7 @@ krb_rd_priv(void *in, u_int32_t in_length,
return RD_AP_MODIFIED; return RD_AP_MODIFIED;
des_pcbc_encrypt(p, p, clen, des_pcbc_encrypt(p, p, clen,
schedule, key, DES_DECRYPT); (void *)schedule, key, DES_DECRYPT);
p += krb_get_int(p, &m_data->app_length, 4, little_endian); p += krb_get_int(p, &m_data->app_length, 4, little_endian);
if(m_data->app_length + 17 > in_length) if(m_data->app_length + 17 > in_length)

View File

@ -22,7 +22,7 @@ or implied warranty.
#include "krb_locl.h" #include "krb_locl.h"
__RCSID("$KTH-KRB: recvauth.c,v 1.21 2001/08/26 02:52:18 assar Exp $" __RCSID("$KTH-KRB: recvauth.c,v 1.21 2001/08/26 02:52:18 assar Exp $"
"$NetBSD: recvauth.c,v 1.1.1.4 2002/09/12 12:22:10 joda Exp $"); "$NetBSD: recvauth.c,v 1.2 2006/03/19 21:01:17 christos Exp $");
/* /*
* krb_recvauth() reads (and optionally responds to) a message sent * krb_recvauth() reads (and optionally responds to) a message sent
@ -172,7 +172,7 @@ krb_recvauth(int32_t options, /* bit-pattern of options */
unsigned char cs[4]; unsigned char cs[4];
krb_put_int(kdata->checksum + 1, cs, sizeof(cs), 4); krb_put_int(kdata->checksum + 1, cs, sizeof(cs), 4);
#ifndef NOENCRYPTION #ifndef NOENCRYPTION
des_key_sched(&kdata->session,schedule); des_key_sched(&kdata->session,(void *)schedule);
#endif #endif
priv_len = krb_mk_priv(cs, priv_len = krb_mk_priv(cs,
tmp_buf+4, tmp_buf+4,

View File

@ -22,7 +22,7 @@ or implied warranty.
#include "krb_locl.h" #include "krb_locl.h"
__RCSID("$KTH-KRB: sendauth.c,v 1.18 1999/09/16 20:41:55 assar Exp $" __RCSID("$KTH-KRB: sendauth.c,v 1.18 1999/09/16 20:41:55 assar Exp $"
"$NetBSD: sendauth.c,v 1.1.1.3 2002/09/12 12:22:10 joda Exp $"); "$NetBSD: sendauth.c,v 1.2 2006/03/19 21:01:17 christos Exp $");
/* /*
* krb_sendauth() transmits a ticket over a file descriptor for a * krb_sendauth() transmits a ticket over a file descriptor for a
@ -155,7 +155,7 @@ krb_sendauth(int32_t options, /* bit-pattern of options */
if (ret != KSUCCESS) if (ret != KSUCCESS)
return ret; return ret;
des_key_sched(&cred->session, schedule); des_key_sched(&cred->session, (void *)schedule);
ret = krb_check_auth (&buf, checksum, msg_data, &cred->session, ret = krb_check_auth (&buf, checksum, msg_data, &cred->session,
schedule, laddr, faddr); schedule, laddr, faddr);