* hash_sha1.c (k5_sha1_hash): Cast length field in shsUpdate call
authorEzra Peisach <epeisach@mit.edu>
Tue, 17 Oct 2000 22:57:58 +0000 (22:57 +0000)
committerEzra Peisach <epeisach@mit.edu>
Tue, 17 Oct 2000 22:57:58 +0000 (22:57 +0000)
        to int.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12775 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/crypto/hash_provider/ChangeLog
src/lib/crypto/hash_provider/hash_sha1.c

index d55615efa0a3e9ff5c7de8f041039a0765f2d463..146b003b1a9a596f1dd524e508ac088d77efb63c 100644 (file)
@@ -1,3 +1,8 @@
+2000-10-17  Ezra Peisach  <epeisach@mit.edu>
+
+       * hash_sha1.c (k5_sha1_hash): Cast length field in shsUpdate call
+       to int.
+
 2000-01-21  Ken Raeburn  <raeburn@mit.edu>
 
        * hash_crc32.c (krb5_hash_crc32): Now const.
index b430dfd9c668d9f7a196f18df159d1a25132a38f..2c215456b580161225972d6c7501c2c9e651796e 100644 (file)
@@ -52,7 +52,7 @@ k5_sha1_hash(unsigned int icount, krb5_const krb5_data *input,
 
     shsInit(&ctx);
     for (i=0; i<icount; i++)
-       shsUpdate(&ctx, input[i].data, input[i].length);
+       shsUpdate(&ctx, (unsigned char *) input[i].data, (int) input[i].length);
     shsFinal(&ctx);
 
     for (i=0; i<(sizeof(ctx.digest)/sizeof(ctx.digest[0])); i++) {