From 75df9577e7a05498c867a2c984df54bf66423f59 Mon Sep 17 00:00:00 2001 From: Simon Wilkinson Date: Sun, 12 Sep 2010 17:48:47 +0100 Subject: [PATCH] Uses unsigned ints for lengths EVP_BytesToKey uses min() on a mixture of signed and unsigned paramters. To avoid compiler warnings, use unsigned int for all of the iv and key lengths in this function. Signed-off-by: Love Hornquist Astrand --- lib/hcrypto/evp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/hcrypto/evp.c b/lib/hcrypto/evp.c index 5946e848d..da1a8940b 100644 --- a/lib/hcrypto/evp.c +++ b/lib/hcrypto/evp.c @@ -1314,7 +1314,8 @@ EVP_BytesToKey(const EVP_CIPHER *type, void *keydata, void *ivdata) { - int ivlen, keylen, first = 0; + unsigned int ivlen, keylen; + int first = 0; unsigned int mds = 0, i; unsigned char *key = keydata; unsigned char *iv = ivdata;