diff options
author | EasySec <easy.sec@free.fr> | 2022-03-09 01:00:19 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2022-03-10 14:33:20 +0000 |
commit | f4f397a5cb5b6eec3045047b9406a43fdd6d6602 (patch) | |
tree | 1899f114e6b4b7ef2e01782fea17e976cc52ab36 | |
parent | 5266af87379aecb0ae6036dee88c1a0b8083a432 (diff) |
Allow to *just* print key and IV of unstreamable modes when no input files
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17843)
-rw-r--r-- | apps/enc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/enc.c b/apps/enc.c index d50baa6d2f..eb06756c5c 100644 --- a/apps/enc.c +++ b/apps/enc.c @@ -334,7 +334,7 @@ int enc_main(int argc, char **argv) buff = app_malloc(EVP_ENCODE_LENGTH(bsize), "evp buffer"); if (infile == NULL) { - if (!streamable) { + if (!streamable && printkey != 2) { /* if just print key and exit, it's ok */ BIO_printf(bio_err, "Unstreamable cipher mode\n"); goto end; } |