summaryrefslogtreecommitdiffstats
path: root/apps/enc.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2017-02-23 00:11:18 +0100
committerRichard Levitte <levitte@openssl.org>2017-02-23 00:11:18 +0100
commit341de5f1997d21b60cee69be656f1ae709bccdac (patch)
tree15597c520233e484c44a7c30a47cf2a517ffc903 /apps/enc.c
parent50799f3558981eac0482d3ea77b21c58b56d4871 (diff)
Let the output from 'openssl enc -ciphers' go to stdout
Also, don't exit with an error code Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/2716)
Diffstat (limited to 'apps/enc.c')
-rw-r--r--apps/enc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/enc.c b/apps/enc.c
index f31e2c8ba7..94c8255a77 100644
--- a/apps/enc.c
+++ b/apps/enc.c
@@ -134,10 +134,11 @@ int enc_main(int argc, char **argv)
ret = 0;
goto end;
case OPT_LIST:
- BIO_printf(bio_err, "Supported ciphers:\n");
+ BIO_printf(bio_out, "Supported ciphers:\n");
OBJ_NAME_do_all_sorted(OBJ_NAME_TYPE_CIPHER_METH,
- show_ciphers, bio_err);
- BIO_printf(bio_err, "\n");
+ show_ciphers, bio_out);
+ BIO_printf(bio_out, "\n");
+ ret = 0;
goto end;
case OPT_E:
enc = 1;