Stop warnings.
authorDr. Stephen Henson <steve@openssl.org>
Sun, 29 May 2005 12:22:05 +0000 (12:22 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sun, 29 May 2005 12:22:05 +0000 (12:22 +0000)
fips/rsa/fips_rsavtest.c
fips/sha/fips_shatest.c

index c5b8e20704b5d58e80028599d212af75835b27e8..1a3a1db5d17190ddf78e6f449ac20dabb0d83c6b 100644 (file)
@@ -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] !=
index b8af33fadd8ca70401d8a659e3e8993c1e956a62..267094344ec1f134e7917c7f8a95c9ab20717c7c 100644 (file)
@@ -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;