Change the treatment of stdin and stdout to allow binary data
If the output to stdout or the input from stdin is meant to be binary, it's deeply unsetting to get the occasional LF converted to CRLF or the other way around. If someone happens to forget to redirect stdin or stdout, they will get gibberish anyway, line ending conversion will not change that. Therefore, let's not have dup_bio_* decide unilaterally what mode the BIO derived from stdin and stdout, and rather let the app decide by declaring the intended format. Reviewed-by: Tim Hudson <tjh@openssl.org>
This commit is contained in:
@@ -319,7 +319,7 @@ int engine_main(int argc, char **argv)
|
||||
OPTION_CHOICE o;
|
||||
char *prog;
|
||||
|
||||
out = dup_bio_out();
|
||||
out = dup_bio_out(FORMAT_TEXT);
|
||||
prog = opt_init(argc, argv, engine_options);
|
||||
if (!engines || !pre_cmds || !post_cmds)
|
||||
goto end;
|
||||
|
Reference in New Issue
Block a user