* mk_priv.c (krb_mk_priv): Fix up call to pcbc_encrypt.
* mk_safe.c (krb_mk_safe): Fix up call to quad_cksum.
* mk_req.c (krb_mk_req): Fix up call to pcbc_encrypt.
* rd_req.c (krb_rd_req): Fix up call to pcbc_encrypt.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10295
dc483132-0cff-0310-8789-
dd5450dbe970
+Wed Nov 19 00:01:07 1997 Tom Yu <tlyu@mit.edu>
+
+ * rd_safe.c (krb_rd_safe): Fix up call to quad_cksum.
+
+ * mk_priv.c (krb_mk_priv): Fix up call to pcbc_encrypt.
+
+ * mk_safe.c (krb_mk_safe): Fix up call to quad_cksum.
+
+Tue Nov 18 23:49:01 1997 Tom Yu <tlyu@mit.edu>
+
+ * mk_req.c (krb_mk_req): Fix up call to pcbc_encrypt.
+
+ * rd_req.c (krb_rd_req): Fix up call to pcbc_encrypt.
+
Tue Oct 21 09:02:51 1997 Ezra Peisach <epeisach@mit.edu>
* kparse.c: Include stdlib.h if present (for malloc prototyp)
#ifndef NOENCRYPTION
/* pcbc encrypt, pad as needed, use key as ivec */
pcbc_encrypt((C_Block *) q,(C_Block *) q, (long) (p-q), schedule,
- key, ENCRYPT);
+ (C_Block *)&key, ENCRYPT);
#endif /* NOENCRYPTION */
return (q - out + c_length); /* resulting size */
/* Encrypt the request ID using the session key */
key_sched(cr.session,key_s);
pcbc_encrypt((C_Block *)req_id->dat,(C_Block *)req_id->dat,
- (long) req_id->length,key_s,(C_Block *) cr.session,1);
+ (long) req_id->length,key_s, &cr.session,1);
/* clean up */
memset((char *) key_s, 0, sizeof(key_s));
#endif /* NOENCRYPTION */
memset((char*) big_cksum, 0, sizeof(big_cksum));
#else /* Do encryption */
/* calculate the checksum of length, timestamps, and input data */
- cksum = quad_cksum(q, (u_char *)big_cksum, p-q, 2, key);
+ cksum = quad_cksum(q, (unsigned KRB4_32 *)big_cksum,
+ p-q, 2, (C_Block *)&key);
#endif /* NOENCRYPTION */
DEB (("\ncksum = %u",cksum));
#endif
key_sched(ad->session,seskey_sched);
pcbc_encrypt((C_Block *)req_id->dat,(C_Block *)req_id->dat,
- (long) req_id->length, seskey_sched,ad->session,DES_DECRYPT);
+ (long) req_id->length, seskey_sched,&ad->session,DES_DECRYPT);
#ifdef KRB_CRYPT_DEBUG
if (krb_ap_req_debug) log("Done.");
#endif
#else /* Do encryption */
/* calculate the checksum of the length, timestamps, and
* input data, on the sending byte order !! */
- quad_cksum(q,calc_cksum,p-q,2,key);
+ quad_cksum(q,calc_cksum,p-q,2,(C_Block *)&key);
#endif /* NOENCRYPTION */
DEB (("\n0: calc %l big %lx\n1: calc %lx big %lx\n2: calc %lx big %lx\n3: calc %lx big %lx\n",