Skip to content

Commit

Permalink
Document that BIO_gets() preserves '\n'.
Browse files Browse the repository at this point in the history
Reviewed-by: Rich Salz <[email protected]>
Reviewed-by: Richard Levitte <[email protected]>
(Merged from openssl#3442)
  • Loading branch information
t8m authored and levitte committed May 15, 2017
1 parent 79b3522 commit bd4639b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/man3/BIO_read.pod
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ in B<buf>. Usually this operation will attempt to read a line of data
from the BIO of maximum length B<size-1>. There are exceptions to this,
however; for example, BIO_gets() on a digest BIO will calculate and
return the digest and other BIOs may not support BIO_gets() at all.
The returned string is always NUL-terminated.
The returned string is always NUL-terminated and the '\n' is preserved
if present in the input data.

BIO_write() attempts to write B<len> bytes from B<buf> to BIO B<b>.

Expand Down

0 comments on commit bd4639b

Please sign in to comment.