From 9dc4f157bc6587a580bfa13a4faeaf4be151a743 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Tue, 3 May 2005 22:14:07 +0000 Subject: [PATCH] Fix mk1mf.pl and avoid warning in VC++. --- fips/hmac/fips_hmactest.c | 5 +++-- util/mkfiles.pl | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/fips/hmac/fips_hmactest.c b/fips/hmac/fips_hmactest.c index de50129e1b..2dc9b125bc 100644 --- a/fips/hmac/fips_hmactest.c +++ b/fips/hmac/fips_hmactest.c @@ -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; diff --git a/util/mkfiles.pl b/util/mkfiles.pl index 928a274303..fcfcb0809c 100755 --- a/util/mkfiles.pl +++ b/util/mkfiles.pl @@ -56,6 +56,7 @@ my @dirs = ( "fips/des", "fips/dsa", "fips/dh", +"fips/hmac", "fips/rand", "fips/rsa", "fips/sha1", -- 2.25.1