diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2011-10-12 13:06:45 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2011-10-12 13:06:45 +0000 |
commit | cf61940534836ebd8d8a13bae0dd2cbd273a3d49 (patch) | |
tree | 608f432e50f873030bdf8de88942a2b5bfaa5a18 /fips | |
parent | dafd5b5d74078ab35e6505bf0934dc6dbed44c4b (diff) |
Fix warnings.
Diffstat (limited to 'fips')
-rw-r--r-- | fips/cmac/fips_cmac_selftest.c | 2 | ||||
-rw-r--r-- | fips/hmac/fips_hmac_selftest.c | 2 | ||||
-rw-r--r-- | fips/rand/fips_drbg_lib.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/fips/cmac/fips_cmac_selftest.c b/fips/cmac/fips_cmac_selftest.c index 8833d97227..70764dd7a1 100644 --- a/fips/cmac/fips_cmac_selftest.c +++ b/fips/cmac/fips_cmac_selftest.c @@ -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++) { diff --git a/fips/hmac/fips_hmac_selftest.c b/fips/hmac/fips_hmac_selftest.c index 5b513c991a..037761ce9f 100644 --- a/fips/hmac/fips_hmac_selftest.c +++ b/fips/hmac/fips_hmac_selftest.c @@ -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); diff --git a/fips/rand/fips_drbg_lib.c b/fips/rand/fips_drbg_lib.c index b5aed0177e..95c73e191d 100644 --- a/fips/rand/fips_drbg_lib.c +++ b/fips/rand/fips_drbg_lib.c @@ -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 |