diff options
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/crypto/hash_provider/ChangeLog | 5 | ||||
| -rw-r--r-- | src/lib/crypto/hash_provider/hash_sha1.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/crypto/hash_provider/ChangeLog b/src/lib/crypto/hash_provider/ChangeLog index d55615efa..146b003b1 100644 --- a/src/lib/crypto/hash_provider/ChangeLog +++ b/src/lib/crypto/hash_provider/ChangeLog @@ -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. diff --git a/src/lib/crypto/hash_provider/hash_sha1.c b/src/lib/crypto/hash_provider/hash_sha1.c index b430dfd9c..2c215456b 100644 --- a/src/lib/crypto/hash_provider/hash_sha1.c +++ b/src/lib/crypto/hash_provider/hash_sha1.c @@ -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++) { |
