Let the output from 'openssl enc -ciphers' go to stdout
authorRichard Levitte <levitte@openssl.org>
Wed, 22 Feb 2017 23:11:18 +0000 (00:11 +0100)
committerRichard Levitte <levitte@openssl.org>
Thu, 23 Feb 2017 00:52:21 +0000 (01:52 +0100)
Also, don't exit with an error code

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2716)
(cherry picked from commit 341de5f1997d21b60cee69be656f1ae709bccdac)

apps/enc.c

index c66ad933f674aa079f69d1cb1f6bf23d4a12e8b8..ec5fc941cf61866dcff0d7e4feda262e617ea909 100644 (file)
@@ -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;