Document that BIO_gets() preserves '\n'.
authorTomas Mraz <tmraz@fedoraproject.org>
Wed, 23 Nov 2016 08:33:55 +0000 (09:33 +0100)
committerRichard Levitte <levitte@openssl.org>
Mon, 15 May 2017 13:13:36 +0000 (15:13 +0200)
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3442)

doc/man3/BIO_read.pod

index bd9bb8fafd2550094b5f963b3ab05df403b9c19b..fc50069830bbbab5646f349ac27915e93107d18f 100644 (file)
@@ -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>.