diff options
author | Tomas Mraz <tomas@openssl.org> | 2021-05-18 17:20:49 +0200 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2021-05-21 10:00:21 +0200 |
commit | 57cea5baf616a4a435650d174bfb435578c770c5 (patch) | |
tree | bd79cc50edfbd8129fa71f947777df2cca6c94f0 /apps/ec.c | |
parent | 9ad400f788fd4f1e36f0814c1952e2c4cbc3b970 (diff) |
apps: Cleanup useless bio_open_default() calls for key input
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/15331)
Diffstat (limited to 'apps/ec.c')
-rw-r--r-- | apps/ec.c | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -67,7 +67,7 @@ int ec_main(int argc, char **argv) OSSL_DECODER_CTX *dctx = NULL; EVP_PKEY_CTX *pctx = NULL; EVP_PKEY *eckey = NULL; - BIO *in = NULL, *out = NULL; + BIO *out = NULL; ENGINE *e = NULL; EVP_CIPHER *enc = NULL; char *infile = NULL, *outfile = NULL, *ciphername = NULL, *prog; @@ -174,12 +174,6 @@ int ec_main(int argc, char **argv) goto end; } - if (informat != FORMAT_ENGINE) { - in = bio_open_default(infile, 'r', informat); - if (in == NULL) - goto end; - } - BIO_printf(bio_err, "read EC key\n"); if (pubin) @@ -285,7 +279,6 @@ int ec_main(int argc, char **argv) end: if (ret != 0) ERR_print_errors(bio_err); - BIO_free(in); BIO_free_all(out); EVP_PKEY_free(eckey); EVP_CIPHER_free(enc); |