提交 d278284e 编写于 作者: M Matt Caswell

Fix some code maintenance issues

Various instances of variables being written to, but then never read.
Reviewed-by: NRichard Levitte <levitte@openssl.org>
上级 a043d0b9
......@@ -292,7 +292,6 @@ int enc_main(int argc, char **argv)
}
}
argc = opt_num_rest();
argv = opt_rest();
if (cipher && EVP_CIPHER_flags(cipher) & EVP_CIPH_FLAG_AEAD_CIPHER) {
BIO_printf(bio_err, "%s: AEAD ciphers not supported\n", prog);
......
......@@ -107,7 +107,6 @@ int errstr_main(int argc, char **argv)
}
}
argc = opt_num_rest();
argv = opt_rest();
ret = 0;
for (argv = opt_rest(); *argv; argv++) {
......
......@@ -492,7 +492,6 @@ int help_main(int argc, char **argv)
}
}
argc = opt_num_rest();
argv = opt_rest();
if (argc != 0) {
BIO_printf(bio_err, "Usage: %s\n", prog);
......
......@@ -320,7 +320,6 @@ int ts_main(int argc, char **argv)
}
}
argc = opt_num_rest();
argv = opt_rest();
if (mode == OPT_ERR || argc != 0)
goto opthelp;
......
......@@ -763,7 +763,7 @@ int x509_main(int argc, char **argv)
BIO_printf(out, "/*\n"
" * Subject: %s\n", buf);
m = X509_NAME_oneline(X509_get_issuer_name(x), buf, sizeof buf);
X509_NAME_oneline(X509_get_issuer_name(x), buf, sizeof buf);
BIO_printf(out, " * Issuer: %s\n"
" */\n", buf);
......
......@@ -187,7 +187,7 @@ static ASN1_VALUE *b64_read_asn1(BIO *bio, const ASN1_ITEM *it)
if (!val)
ASN1err(ASN1_F_B64_READ_ASN1, ASN1_R_DECODE_ERROR);
(void)BIO_flush(bio);
bio = BIO_pop(bio);
BIO_pop(bio);
BIO_free(b64);
return val;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册