From: Dr. Stephen Henson Date: Tue, 3 May 2005 22:14:07 +0000 (+0000) Subject: Fix mk1mf.pl and avoid warning in VC++. X-Git-Tag: BEN_FIPS_TEST_8~43 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9dc4f157bc6587a580bfa13a4faeaf4be151a743;p=oweals%2Fopenssl.git Fix mk1mf.pl and avoid warning in VC++. --- 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",