diff options
author | Richard Levitte <levitte@openssl.org> | 2015-09-04 02:46:47 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2015-09-06 01:29:36 +0200 |
commit | d303b9d85e1888494785f87ebd9bd233e63564a9 (patch) | |
tree | efb8e31a76f8c4541d79246b10a4fb70f79347c7 /apps/rand.c | |
parent | Make the verify_extra test location agnostic (diff) | |
download | openssl-d303b9d85e1888494785f87ebd9bd233e63564a9.tar.xz openssl-d303b9d85e1888494785f87ebd9bd233e63564a9.zip |
Make the handling of output and input formats consistent
Most of all, we needed to sort out which ones are binary and which
ones are text, and make sure they are treated accordingly and
consistently so
Reviewed-by: Tim Hudson <tjh@openssl.org>
Diffstat (limited to 'apps/rand.c')
-rw-r--r-- | apps/rand.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/rand.c b/apps/rand.c index 432e784496..a5aa5d9410 100644 --- a/apps/rand.c +++ b/apps/rand.c @@ -134,7 +134,7 @@ int rand_main(int argc, char **argv) BIO_printf(bio_err, "%ld semi-random bytes loaded\n", app_RAND_load_files(inrand)); - out = bio_open_default(outfile, "w"); + out = bio_open_default(outfile, base64 ? "w" : "wb"); if (out == NULL) goto end; |