summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-06-20 14:04:45 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2017-06-20 14:04:45 +0200
commit98960b32022682a44cf6c5c22acfbb62b0fda0b3 (patch)
tree7ec1f196b51c0106c7675edae30ad93d47c47ea3
parent59fe10784db0513be4211bc2fa1ef3a5d6ee3db3 (diff)
downloadgnutls-98960b32022682a44cf6c5c22acfbb62b0fda0b3.tar.gz
certtool: removed unused variables
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
-rw-r--r--src/certtool.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/certtool.c b/src/certtool.c
index cc50b0881c..e7dde851c5 100644
--- a/src/certtool.c
+++ b/src/certtool.c
@@ -1493,7 +1493,7 @@ void pgp_privkey_info(void)
gnutls_openpgp_privkey_t key;
unsigned char keyid[GNUTLS_OPENPGP_KEYID_SIZE];
size_t size;
- int ret, i, subkeys, bits = 0;
+ int ret, i, subkeys;
gnutls_datum_t pem;
const char *cprint;
@@ -1567,8 +1567,6 @@ void pgp_privkey_info(void)
print_rsa_pkey(outfile, &m, &e, &d, &p, &q,
&u, NULL, NULL,
HAVE_OPT(CPRINT));
-
- bits = m.size * 8;
} else if (ret == GNUTLS_PK_DSA) {
gnutls_datum_t p, q, g, y, x;
@@ -1587,8 +1585,6 @@ void pgp_privkey_info(void)
else
print_dsa_pkey(outfile, &x, &y, &p, &q, &g,
HAVE_OPT(CPRINT));
-
- bits = y.size * 8;
}
fprintf(outfile, "\n");
@@ -1627,8 +1623,6 @@ void pgp_privkey_info(void)
"Error in fingerprint calculation: %s\n",
gnutls_strerror(ret));
} else {
- gnutls_datum_t art;
-
fprintf(outfile, "Fingerprint: %s\n",
raw_to_string(lbuffer, size));
}