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/ecparam.c | |
parent | FIPS label CI: Save PR number and use it (diff) | |
download | openssl-57cea5baf616a4a435650d174bfb435578c770c5.tar.xz openssl-57cea5baf616a4a435650d174bfb435578c770c5.zip |
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/ecparam.c')
-rw-r--r-- | apps/ecparam.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/apps/ecparam.c b/apps/ecparam.c index a801ad69bf..c3dbd75365 100644 --- a/apps/ecparam.c +++ b/apps/ecparam.c @@ -100,7 +100,7 @@ int ecparam_main(int argc, char **argv) OSSL_ENCODER_CTX *ectx_key = NULL, *ectx_params = NULL; OSSL_DECODER_CTX *dctx_params = NULL; ENGINE *e = NULL; - BIO *in = NULL, *out = NULL; + BIO *out = NULL; char *curve_name = NULL; char *asn1_encoding = NULL; char *point_format = NULL; @@ -195,9 +195,6 @@ int ecparam_main(int argc, char **argv) private = genkey ? 1 : 0; - in = bio_open_default(infile, 'r', informat); - if (in == NULL) - goto end; out = bio_open_owner(outfile, outformat, private); if (out == NULL) goto end; @@ -342,7 +339,6 @@ end: OSSL_DECODER_CTX_free(dctx_params); OSSL_ENCODER_CTX_free(ectx_params); OSSL_ENCODER_CTX_free(ectx_key); - BIO_free(in); BIO_free_all(out); return ret; } |