diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2011-02-23 16:06:33 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2011-02-23 16:06:33 +0000 |
commit | 949c6f8ccf76be7367de4638ae948266179f696e (patch) | |
tree | ac0e1b82f47935ea7ab9688c3e09c041ce7fd70a /fips | |
parent | 199e92bb57e41b379becd45eaa7933b4fd173a60 (diff) |
Stop warnings.
Diffstat (limited to 'fips')
-rw-r--r-- | fips/aes/fips_gcmtest.c | 2 | ||||
-rw-r--r-- | fips/dsa/fips_dssvs.c | 6 | ||||
-rw-r--r-- | fips/ecdsa/fips_ecdsavs.c | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/fips/aes/fips_gcmtest.c b/fips/aes/fips_gcmtest.c index bd79404e01..856a0ddea1 100644 --- a/fips/aes/fips_gcmtest.c +++ b/fips/aes/fips_gcmtest.c @@ -86,7 +86,7 @@ static void gcmtest(int encrypt) unsigned char *key = NULL, *iv = NULL, *aad = NULL, *tag = NULL; unsigned char *ct = NULL, *pt = NULL; EVP_CIPHER_CTX ctx; - const EVP_CIPHER *gcm; + const EVP_CIPHER *gcm = NULL; FIPS_cipher_ctx_init(&ctx); while(fgets(buf,sizeof buf,stdin) != NULL) diff --git a/fips/dsa/fips_dssvs.c b/fips/dsa/fips_dssvs.c index ff7f8139b3..96f43cd626 100644 --- a/fips/dsa/fips_dssvs.c +++ b/fips/dsa/fips_dssvs.c @@ -209,12 +209,12 @@ static void pqgver() char lbuf[1024]; char *keyword, *value; BIGNUM *p = NULL, *q = NULL, *g = NULL; - int counter, counter2; - unsigned long h, h2; + int counter=-1, counter2; + unsigned long h=-1, h2; DSA *dsa=NULL; int dsa2, L, N, part_test = 0; const EVP_MD *md = NULL; - int seedlen; + int seedlen=-1; unsigned char seed[1024]; while(fgets(buf,sizeof buf,stdin) != NULL) diff --git a/fips/ecdsa/fips_ecdsavs.c b/fips/ecdsa/fips_ecdsavs.c index a162f4289c..9087b0678f 100644 --- a/fips/ecdsa/fips_ecdsavs.c +++ b/fips/ecdsa/fips_ecdsavs.c @@ -312,7 +312,7 @@ static int SigVer(void) { char buf[2048], lbuf[2048]; char *keyword, *value; - unsigned char *msg; + unsigned char *msg = NULL; int curve_nid = NID_undef; long mlen; BIGNUM *Qx = NULL, *Qy = NULL; |