From: Dr. Stephen Henson Date: Sun, 29 May 2005 12:22:05 +0000 (+0000) Subject: Stop warnings. X-Git-Tag: FIPS_TEST_9~29 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4d4339922ce3f8e3ab2ad428dfad7d23f676b6c0;p=oweals%2Fopenssl.git Stop warnings. --- diff --git a/fips/rsa/fips_rsavtest.c b/fips/rsa/fips_rsavtest.c index c5b8e20704..1a3a1db5d1 100644 --- a/fips/rsa/fips_rsavtest.c +++ b/fips/rsa/fips_rsavtest.c @@ -361,14 +361,14 @@ static int rsa_printver(BIO *err, BIO *out, if (r > 0) { - unsigned int mdlen; EVP_DigestInit_ex(&ctx, dgst, NULL); if (!EVP_DigestUpdate(&ctx, Msg, Msglen)) goto error; - if (!EVP_DigestFinal_ex(&ctx, mdtmp, &mdlen)) + if (!EVP_DigestFinal_ex(&ctx, mdtmp, NULL)) goto error; if (pad == RSA_X931_PADDING) { + int mdlen = EVP_MD_size(dgst); if (r != mdlen + 1) r = 0; else if (buf[mdlen] != diff --git a/fips/sha/fips_shatest.c b/fips/sha/fips_shatest.c index b8af33fadd..267094344e 100644 --- a/fips/sha/fips_shatest.c +++ b/fips/sha/fips_shatest.c @@ -328,7 +328,7 @@ static int print_dgst(BIO *err, const EVP_MD *emd, BIO *out, static int print_monte(BIO *err, const EVP_MD *md, BIO *out, unsigned char *Seed, int SeedLen) { - int i, j, k; + unsigned int i, j, k; int ret = 0; EVP_MD_CTX ctx; unsigned char *m1, *m2, *m3, *p;