提交 341de5f1 编写于 作者: R Richard Levitte

Let the output from 'openssl enc -ciphers' go to stdout

Also, don't exit with an error code
Reviewed-by: NRich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2716)
上级 50799f35
...@@ -134,10 +134,11 @@ int enc_main(int argc, char **argv) ...@@ -134,10 +134,11 @@ int enc_main(int argc, char **argv)
ret = 0; ret = 0;
goto end; goto end;
case OPT_LIST: 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, OBJ_NAME_do_all_sorted(OBJ_NAME_TYPE_CIPHER_METH,
show_ciphers, bio_err); show_ciphers, bio_out);
BIO_printf(bio_err, "\n"); BIO_printf(bio_out, "\n");
ret = 0;
goto end; goto end;
case OPT_E: case OPT_E:
enc = 1; enc = 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册