]> git.ipfire.org Git - thirdparty/openssl.git/commit
Change the treatment of stdin and stdout to allow binary data
authorRichard Levitte <levitte@openssl.org>
Sun, 6 Sep 2015 10:20:12 +0000 (12:20 +0200)
committerRichard Levitte <levitte@openssl.org>
Sun, 6 Sep 2015 11:34:49 +0000 (13:34 +0200)
commita60994df34fe6a694441471c7f8dcf9661fb091d
treec6e546670e04806e55e4cec9b06303879cc1ed16
parenta412b8919821efd00121d28cf2441c5445bee602
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>
apps/apps.c
apps/apps.h
apps/enc.c
apps/engine.c
apps/openssl.c
apps/s_client.c
apps/s_server.c