VMS: for testutil, make sure to use BIO_f_linebuffer
authorRichard Levitte <levitte@openssl.org>
Tue, 13 Feb 2018 18:10:22 +0000 (19:10 +0100)
committerRichard Levitte <levitte@openssl.org>
Tue, 13 Feb 2018 20:14:07 +0000 (21:14 +0100)
commitf11a023adaae8ba037f952fd72dfbcc34733c993
tree88d42389388639e8ab7286fe2141d77dda5a659c
parent9b7e82f8d939ca6894f941268b219da55f069b26
VMS: for testutil, make sure to use BIO_f_linebuffer

Without that, output comes one character per line.  It's the same
issue as has been observed before, this happens when using write()
on a record oriented stream (possibly unbuffered too).

This also uncovered a bug in BIO_f_linebuffer, where this would cause
an error:

    BIO_write(bio, "1\n", 1);

I.e. there's a \n just after the part of the string that we currently
ask to get written.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5352)
crypto/bio/bf_lbuf.c
test/testutil/basic_output.c