Fix mk1mf.pl and avoid warning in VC++.
authorDr. Stephen Henson <steve@openssl.org>
Tue, 3 May 2005 22:14:07 +0000 (22:14 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Tue, 3 May 2005 22:14:07 +0000 (22:14 +0000)
fips/hmac/fips_hmactest.c
util/mkfiles.pl

index de50129e1ba7833d4e5c4dbd2acab2a461038f15..2dc9b125bc727d406f734d88b0fedba15ae7f2f4 100644 (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;
index 928a274303dc6170b1a27fa1f5721e163feac3ec..fcfcb0809c4612adf4f1530af9beb6f048ac3d40 100755 (executable)
@@ -56,6 +56,7 @@ my @dirs = (
 "fips/des",
 "fips/dsa",
 "fips/dh",
+"fips/hmac",
 "fips/rand",
 "fips/rsa",
 "fips/sha1",