diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2011-11-05 18:04:31 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2011-11-05 18:04:31 +0000 |
commit | 835d355b9793e718eeb2ccf685d984fbca8da561 (patch) | |
tree | 8727d7c7b3f085616cb5134b29e9ab4dc395a8bb /fips/aes | |
parent | 29fd6746f50d1e283bd135993dfd25684b15c584 (diff) |
fix set but unused warnings
Diffstat (limited to 'fips/aes')
-rw-r--r-- | fips/aes/fips_aesavs.c | 10 | ||||
-rw-r--r-- | fips/aes/fips_gcmtest.c | 3 |
2 files changed, 5 insertions, 8 deletions
diff --git a/fips/aes/fips_aesavs.c b/fips/aes/fips_aesavs.c index bbdb93aab9..fecaf990c6 100644 --- a/fips/aes/fips_aesavs.c +++ b/fips/aes/fips_aesavs.c @@ -554,7 +554,7 @@ static int proc_file(char *rqfile, char *rspfile) FILE *afp = NULL, *rfp = NULL; char ibuf[2048]; char tbuf[2048]; - int ilen, len, ret = 0; + int len; char algo[8] = ""; char amode[8] = ""; char atest[8] = ""; @@ -605,7 +605,6 @@ static int proc_file(char *rqfile, char *rspfile) while (!err && (fgets(ibuf, sizeof(ibuf), afp)) != NULL) { tidy_line(tbuf, ibuf); - ilen = strlen(ibuf); /* printf("step=%d ibuf=%s",step,ibuf); */ switch (step) { @@ -784,7 +783,7 @@ static int proc_file(char *rqfile, char *rspfile) } else { - ret = AESTest(&ctx, amode, akeysz, aKey, iVec, + AESTest(&ctx, amode, akeysz, aKey, iVec, dir, /* 0 = decrypt, 1 = encrypt */ plaintext, ciphertext, len); OutputValue("CIPHERTEXT",ciphertext,len,rfp, @@ -822,7 +821,7 @@ static int proc_file(char *rqfile, char *rspfile) } else { - ret = AESTest(&ctx, amode, akeysz, aKey, iVec, + AESTest(&ctx, amode, akeysz, aKey, iVec, dir, /* 0 = decrypt, 1 = encrypt */ plaintext, ciphertext, len); OutputValue("PLAINTEXT",(unsigned char *)plaintext,len,rfp, @@ -872,7 +871,7 @@ int main(int argc, char **argv) char *rqlist = "req.txt", *rspfile = NULL; FILE *fp = NULL; char fn[250] = "", rfn[256] = ""; - int f_opt = 0, d_opt = 1; + int d_opt = 1; fips_algtest_init(); if (argc > 1) @@ -883,7 +882,6 @@ int main(int argc, char **argv) } else if (strcasecmp(argv[1], "-f") == 0) { - f_opt = 1; d_opt = 0; } else diff --git a/fips/aes/fips_gcmtest.c b/fips/aes/fips_gcmtest.c index 02849bc2ab..9f50857fb9 100644 --- a/fips/aes/fips_gcmtest.c +++ b/fips/aes/fips_gcmtest.c @@ -271,7 +271,6 @@ static void xtstest(FILE *in, FILE *out) char *keyword, *value; int inlen = 0; int encrypt = 0; - int rv; long l; unsigned char *key = NULL, *iv = NULL; unsigned char *inbuf = NULL, *outbuf = NULL; @@ -327,7 +326,7 @@ static void xtstest(FILE *in, FILE *out) { FIPS_cipherinit(&ctx, xts, key, iv, encrypt); outbuf = OPENSSL_malloc(inlen); - rv = FIPS_cipher(&ctx, outbuf, inbuf, inlen); + FIPS_cipher(&ctx, outbuf, inbuf, inlen); OutputValue(encrypt ? "CT":"PT", outbuf, inlen, out, 0); OPENSSL_free(inbuf); OPENSSL_free(outbuf); |