Fix mk1mf.pl and avoid warning in VC++.

This commit is contained in:
Dr. Stephen Henson 2005-05-03 22:14:07 +00:00
parent 8513320593
commit 9dc4f157bc
2 changed files with 4 additions and 2 deletions

View File

@ -289,9 +289,10 @@ static int print_hmac(BIO *err, BIO *out,
unsigned char *Key, int Klen,
unsigned char *Msg, int Msglen, int Tlen)
{
unsigned int i, mdlen;
int i, mdlen;
unsigned char md[EVP_MAX_MD_SIZE];
if (!HMAC(EVP_sha1(), Key, Klen, Msg, Msglen, md, &mdlen))
if (!HMAC(EVP_sha1(), Key, Klen, Msg, Msglen, md,
(unsigned int *)&mdlen))
{
BIO_puts(err, "Error calculating HMAC\n");
return 0;

View File

@ -56,6 +56,7 @@ my @dirs = (
"fips/des",
"fips/dsa",
"fips/dh",
"fips/hmac",
"fips/rand",
"fips/rsa",
"fips/sha1",