summaryrefslogtreecommitdiffstats
path: root/apps/pkey.c
diff options
context:
space:
mode:
authorTomas Mraz <tomas@openssl.org>2021-05-18 17:20:49 +0200
committerTomas Mraz <tomas@openssl.org>2021-05-21 10:00:21 +0200
commit57cea5baf616a4a435650d174bfb435578c770c5 (patch)
treebd79cc50edfbd8129fa71f947777df2cca6c94f0 /apps/pkey.c
parentFIPS label CI: Save PR number and use it (diff)
downloadopenssl-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 '')
-rw-r--r--apps/pkey.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/pkey.c b/apps/pkey.c
index ddc3414d0c..781f376837 100644
--- a/apps/pkey.c
+++ b/apps/pkey.c
@@ -67,7 +67,7 @@ const OPTIONS pkey_options[] = {
int pkey_main(int argc, char **argv)
{
- BIO *in = NULL, *out = NULL;
+ BIO *out = NULL;
ENGINE *e = NULL;
EVP_PKEY *pkey = NULL;
EVP_PKEY_CTX *ctx = NULL;
@@ -321,7 +321,6 @@ int pkey_main(int argc, char **argv)
EVP_CIPHER_free(cipher);
release_engine(e);
BIO_free_all(out);
- BIO_free(in);
OPENSSL_free(passin);
OPENSSL_free(passout);