mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-13 03:40:05 +01:00
Fix verbose mode compiler warnings.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@510 36d66b0a-2a48-0410-832c-cd162a569da5
This commit is contained in:
@@ -142,7 +142,7 @@ int crypt_hash_final(struct crypt_hash *ctx, char *buffer, size_t length)
|
||||
unsigned char tmp[64];
|
||||
unsigned int tmp_len;
|
||||
|
||||
if (length > ctx->hash->length)
|
||||
if (length > (size_t)ctx->hash->length)
|
||||
return -EINVAL;
|
||||
|
||||
if (PK11_DigestFinal(ctx->md, tmp, &tmp_len, length) != SECSuccess)
|
||||
@@ -241,7 +241,7 @@ int crypt_hmac_final(struct crypt_hmac *ctx, char *buffer, size_t length)
|
||||
unsigned char tmp[64];
|
||||
unsigned int tmp_len;
|
||||
|
||||
if (length > ctx->hash->length)
|
||||
if (length > (size_t)ctx->hash->length)
|
||||
return -EINVAL;
|
||||
|
||||
if (PK11_DigestFinal(ctx->md, tmp, &tmp_len, length) != SECSuccess)
|
||||
|
||||
Reference in New Issue
Block a user