summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2017-09-23 11:04:21 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2017-09-24 10:29:51 +0000
commit4d2e9b01476f3954f4cfb3810253482599ae7620 (patch)
tree78a936bae3aeed50a75f40ad19bb9272c1c39d6d
parentf217b5e6f21056be4d7cbdf552c86d40007dc2b0 (diff)
downloadgnutls-4d2e9b01476f3954f4cfb3810253482599ae7620.tar.gz
tools: eliminated dead assignments
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
-rw-r--r--src/certtool-common.c12
-rw-r--r--src/common.c2
-rw-r--r--src/ocsptool-common.c2
3 files changed, 1 insertions, 15 deletions
diff --git a/src/certtool-common.c b/src/certtool-common.c
index 4d20ecff98..c020e97e3e 100644
--- a/src/certtool-common.c
+++ b/src/certtool-common.c
@@ -1226,9 +1226,6 @@ static void privkey_info_int(FILE *outfile, common_info_st * cinfo,
"Error in key ECC data export: %s\n",
gnutls_strerror(ret));
else {
- cprint = gnutls_ecc_curve_get_name(curve);
- bits = 0;
-
print_ecc_pkey(outfile, curve, &k, &x, &y,
cinfo->cprint);
@@ -1421,22 +1418,18 @@ int generate_prime(FILE * outfile, int how, common_info_st * info)
p = gnutls_ffdhe_2048_group_prime;
g = gnutls_ffdhe_2048_group_generator;
key_bits = gnutls_ffdhe_2048_key_bits;
- bits = 2048;
} else if (bits <= 3072) {
p = gnutls_ffdhe_3072_group_prime;
g = gnutls_ffdhe_3072_group_generator;
key_bits = gnutls_ffdhe_3072_key_bits;
- bits = 3072;
} else if (bits <= 4096) {
p = gnutls_ffdhe_4096_group_prime;
g = gnutls_ffdhe_4096_group_generator;
key_bits = gnutls_ffdhe_4096_key_bits;
- bits = 4096;
} else {
p = gnutls_ffdhe_8192_group_prime;
g = gnutls_ffdhe_8192_group_generator;
key_bits = gnutls_ffdhe_8192_key_bits;
- bits = 8192;
}
ret = gnutls_dh_params_import_raw2(dh_params, &p, &g, key_bits);
@@ -1449,23 +1442,18 @@ int generate_prime(FILE * outfile, int how, common_info_st * info)
if (bits <= 1024) {
p = gnutls_srp_1024_group_prime;
g = gnutls_srp_1024_group_generator;
- bits = 1024;
} else if (bits <= 1536) {
p = gnutls_srp_1536_group_prime;
g = gnutls_srp_1536_group_generator;
- bits = 1536;
} else if (bits <= 2048) {
p = gnutls_srp_2048_group_prime;
g = gnutls_srp_2048_group_generator;
- bits = 2048;
} else if (bits <= 3072) {
p = gnutls_srp_3072_group_prime;
g = gnutls_srp_3072_group_generator;
- bits = 3072;
} else {
p = gnutls_srp_4096_group_prime;
g = gnutls_srp_4096_group_generator;
- bits = 4096;
}
ret = gnutls_dh_params_import_raw(dh_params, &p, &g);
diff --git a/src/common.c b/src/common.c
index dcce8a5b57..4be0969af2 100644
--- a/src/common.c
+++ b/src/common.c
@@ -1076,8 +1076,6 @@ pin_callback(void *user, int attempt, const char *token_url,
else
cached_url = NULL;
- cache = MAX_CACHE_TRIES;
-
return 0;
}
diff --git a/src/ocsptool-common.c b/src/ocsptool-common.c
index fc7a20fa6d..fdbd662c31 100644
--- a/src/ocsptool-common.c
+++ b/src/ocsptool-common.c
@@ -303,7 +303,7 @@ void print_ocsp_verify_res(unsigned int output)
if (comma)
printf(", ");
printf("Signer cert expired");
- comma = 1;
+ /*comma = 1;*/
}
}