Fix mk1mf.pl and avoid warning in VC++.
This commit is contained in:
parent
8513320593
commit
9dc4f157bc
@ -289,9 +289,10 @@ static int print_hmac(BIO *err, BIO *out,
|
|||||||
unsigned char *Key, int Klen,
|
unsigned char *Key, int Klen,
|
||||||
unsigned char *Msg, int Msglen, int Tlen)
|
unsigned char *Msg, int Msglen, int Tlen)
|
||||||
{
|
{
|
||||||
unsigned int i, mdlen;
|
int i, mdlen;
|
||||||
unsigned char md[EVP_MAX_MD_SIZE];
|
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");
|
BIO_puts(err, "Error calculating HMAC\n");
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -56,6 +56,7 @@ my @dirs = (
|
|||||||
"fips/des",
|
"fips/des",
|
||||||
"fips/dsa",
|
"fips/dsa",
|
||||||
"fips/dh",
|
"fips/dh",
|
||||||
|
"fips/hmac",
|
||||||
"fips/rand",
|
"fips/rand",
|
||||||
"fips/rsa",
|
"fips/rsa",
|
||||||
"fips/sha1",
|
"fips/sha1",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user