Fix warnings.
authorDr. Stephen Henson <steve@openssl.org>
Wed, 12 Oct 2011 13:06:45 +0000 (13:06 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Wed, 12 Oct 2011 13:06:45 +0000 (13:06 +0000)
fips/cmac/fips_cmac_selftest.c
fips/hmac/fips_hmac_selftest.c
fips/rand/fips_drbg_lib.c

index 8833d972274f80a2bb27bb8ebf6a6296a983a3c0..70764dd7a163a875200492f71e286f7fb68e9c9f 100644 (file)
@@ -115,7 +115,7 @@ int FIPS_selftest_cmac()
        const EVP_CIPHER *cipher;
        CMAC_CTX *ctx = CMAC_CTX_new();
        const CMAC_KAT *t;
-       int subid, rv = 1;
+       int subid = -1, rv = 1;
 
        for(n=0,t=vector; n<sizeof(vector)/sizeof(vector[0]); n++,t++)
                {
index 5b513c991ae49b192145eea63104af57650e54bc..037761ce9f14a6467a2ef4fe880f2d3b6021f1c1 100644 (file)
@@ -120,7 +120,7 @@ int FIPS_selftest_hmac()
        unsigned char   out[EVP_MAX_MD_SIZE];
        const EVP_MD   *md;
        const HMAC_KAT *t;
-       int rv = 1, subid;
+       int rv = 1, subid = -1;
        HMAC_CTX c;
        HMAC_CTX_init(&c);
 
index b5aed0177e8d98af1be40021d88b6251c174629e..95c73e191d32fc468d620df0f4a0bada8a62f67a 100644 (file)
@@ -274,7 +274,7 @@ static int drbg_reseed(DRBG_CTX *dctx,
                        const unsigned char *adin, size_t adinlen, int hcheck)
        {
        unsigned char *entropy = NULL;
-       size_t entlen;
+       size_t entlen = 0;
        int r = 0;
 
 #if 0