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 <lha@h5l.org>
This commit is contained in:

committed by
Love Hornquist Astrand

parent
9907781fa3
commit
75df9577e7
@@ -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;
|
||||
|
Reference in New Issue
Block a user