From 2a1c666f2fa2bc6817a2b2216ec004f28bd1507d Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Tue, 17 Oct 2000 22:58:46 +0000 Subject: [PATCH] * cksum.c (des_cbc_cksum): Length is unsigned long * enc_dec.c (des_cbc_encrypt): Length is unsigned long. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12777 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/des425/ChangeLog | 6 ++++++ src/lib/des425/cksum.c | 2 +- src/lib/des425/enc_dec.c | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/lib/des425/ChangeLog b/src/lib/des425/ChangeLog index 2fe9c33a2..49265173d 100644 --- a/src/lib/des425/ChangeLog +++ b/src/lib/des425/ChangeLog @@ -1,3 +1,9 @@ +2000-10-17 Ezra Peisach + + * cksum.c (des_cbc_cksum): Length is unsigned long. + + * enc_dec.c (des_cbc_encrypt): Length is unsigned long. + Thu Jun 29 17:11:17 2000 Ezra Peisach * random_key.c (des_random_key): Add parentheses around assignment diff --git a/src/lib/des425/cksum.c b/src/lib/des425/cksum.c index b53dbfcd5..5f413cf25 100644 --- a/src/lib/des425/cksum.c +++ b/src/lib/des425/cksum.c @@ -59,7 +59,7 @@ void des_cbc_cksum(in,out,length,key,iv) krb5_octet *in; /* >= length bytes of inputtext */ krb5_octet *out; /* >= length bytes of outputtext */ - register long length; /* in bytes */ + register unsigned long length; /* in bytes */ mit_des_key_schedule key; /* precomputed key schedule */ krb5_octet *iv; /* 8 bytes of ivec */ { diff --git a/src/lib/des425/enc_dec.c b/src/lib/des425/enc_dec.c index 7a6be15b4..8834771e9 100644 --- a/src/lib/des425/enc_dec.c +++ b/src/lib/des425/enc_dec.c @@ -64,7 +64,7 @@ int des_cbc_encrypt(in,out,length,key,iv,encrypt) krb5_octet *in; /* >= length bytes of input text */ krb5_octet *out; /* >= length bytes of output text */ - register long length; /* in bytes */ + register unsigned long length; /* in bytes */ mit_des_key_schedule key; /* precomputed key schedule */ krb5_octet *iv; /* 8 bytes of ivec */ int encrypt; /* 0 ==> decrypt, else encrypt */ -- 2.26.2