svn rev #21908: trunk/src/lib/crypto/ enc_provider/
epeisach@MIT.EDU
epeisach at MIT.EDU
Fri Feb 6 00:42:34 EST 2009
http://src.mit.edu/fisheye/changelog/krb5/?cs=21908
Commit By: epeisach
Log Message:
Unsigned/signed fixes
Changed Files:
U trunk/src/lib/crypto/enc_provider/aes.c
U trunk/src/lib/crypto/enc_provider/des.c
U trunk/src/lib/crypto/enc_provider/des3.c
U trunk/src/lib/crypto/string_to_enctype.c
Modified: trunk/src/lib/crypto/enc_provider/aes.c
===================================================================
--- trunk/src/lib/crypto/enc_provider/aes.c 2009-02-06 05:31:09 UTC (rev 21907)
+++ trunk/src/lib/crypto/enc_provider/aes.c 2009-02-06 05:42:32 UTC (rev 21908)
@@ -286,7 +286,8 @@
{
aes_ctx ctx;
char tmp[BLOCK_SIZE], tmp2[BLOCK_SIZE], tmp3[BLOCK_SIZE];
- int nblocks = 0, blockno, i;
+ int nblocks = 0, blockno;
+ unsigned int i;
size_t input_length;
CHECK_SIZES;
Modified: trunk/src/lib/crypto/enc_provider/des.c
===================================================================
--- trunk/src/lib/crypto/enc_provider/des.c 2009-02-06 05:31:09 UTC (rev 21907)
+++ trunk/src/lib/crypto/enc_provider/des.c 2009-02-06 05:42:32 UTC (rev 21908)
@@ -113,7 +113,7 @@
{
mit_des_key_schedule schedule;
size_t input_length = 0;
- int i;
+ unsigned int i;
/* key->enctype was checked by the caller */
Modified: trunk/src/lib/crypto/enc_provider/des3.c
===================================================================
--- trunk/src/lib/crypto/enc_provider/des3.c 2009-02-06 05:31:09 UTC (rev 21907)
+++ trunk/src/lib/crypto/enc_provider/des3.c 2009-02-06 05:42:32 UTC (rev 21908)
@@ -177,7 +177,7 @@
/* this has a return value, but the code always returns zero */
krb5int_des3_cbc_encrypt_iov(data, num_data,
schedule[0], schedule[1], schedule[2],
- ivec != NULL ? (const unsigned char *) ivec->data : NULL);
+ ivec != NULL ? (unsigned char *) ivec->data : NULL);
zap(schedule, sizeof(schedule));
@@ -200,7 +200,7 @@
/* this has a return value, but the code always returns zero */
krb5int_des3_cbc_decrypt_iov(data, num_data,
schedule[0], schedule[1], schedule[2],
- ivec != NULL ? (const unsigned char *) ivec->data : NULL);
+ ivec != NULL ? (unsigned char *) ivec->data : NULL);
zap(schedule, sizeof(schedule));
Modified: trunk/src/lib/crypto/string_to_enctype.c
===================================================================
--- trunk/src/lib/crypto/string_to_enctype.c 2009-02-06 05:31:09 UTC (rev 21907)
+++ trunk/src/lib/crypto/string_to_enctype.c 2009-02-06 05:42:32 UTC (rev 21908)
@@ -30,7 +30,7 @@
krb5_error_code KRB5_CALLCONV
krb5_string_to_enctype(char *string, krb5_enctype *enctypep)
{
- int i, j;
+ unsigned int i, j;
for (i=0; i<krb5_enctypes_length; i++) {
if (strcasecmp(krb5_enctypes_list[i].name, string) == 0) {
More information about the cvs-krb5
mailing list