summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorschwarze <>2021-11-14 13:40:16 +0000
committerschwarze <>2021-11-14 13:40:16 +0000
commit8bd873cae83f056f2d372ab2cb290a5dda887503 (patch)
tree746d26dfdc7db9cdd50363fdc2e18b2775740def /src/lib
parent1e8feface005bb8b66147d1596718b00809dab8a (diff)
downloadopenbsd-8bd873cae83f056f2d372ab2cb290a5dda887503.tar.gz
openbsd-8bd873cae83f056f2d372ab2cb290a5dda887503.tar.bz2
openbsd-8bd873cae83f056f2d372ab2cb290a5dda887503.zip
the last argument of BIO_gets(3) is called "size", not "len"
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/man/BIO_read.312
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/libcrypto/man/BIO_read.3 b/src/lib/libcrypto/man/BIO_read.3
index 97514a610a..3f059b5d54 100644
--- a/src/lib/libcrypto/man/BIO_read.3
+++ b/src/lib/libcrypto/man/BIO_read.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: BIO_read.3,v 1.8 2018/03/27 17:35:50 schwarze Exp $ 1.\" $OpenBSD: BIO_read.3,v 1.9 2021/11/14 13:40:16 schwarze Exp $
2.\" OpenSSL 99d63d46 Oct 26 13:56:48 2016 -0400 2.\" OpenSSL 99d63d46 Oct 26 13:56:48 2016 -0400
3.\" 3.\"
4.\" This file was written by Dr. Stephen Henson <steve@openssl.org>. 4.\" This file was written by Dr. Stephen Henson <steve@openssl.org>.
@@ -48,7 +48,7 @@
48.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 48.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
49.\" OF THE POSSIBILITY OF SUCH DAMAGE. 49.\" OF THE POSSIBILITY OF SUCH DAMAGE.
50.\" 50.\"
51.Dd $Mdocdate: March 27 2018 $ 51.Dd $Mdocdate: November 14 2021 $
52.Dt BIO_READ 3 52.Dt BIO_READ 3
53.Os 53.Os
54.Sh NAME 54.Sh NAME
@@ -96,7 +96,7 @@ performs the BIOs "gets" operation and places the data in
96.Fa buf . 96.Fa buf .
97Usually this operation will attempt to read a line of data 97Usually this operation will attempt to read a line of data
98from the BIO of maximum length 98from the BIO of maximum length
99.Fa len No - 1 . 99.Fa size No \- 1 .
100There are exceptions to this however, for example 100There are exceptions to this however, for example
101.Fn BIO_gets 101.Fn BIO_gets
102on a digest BIO will calculate and return the digest 102on a digest BIO will calculate and return the digest
@@ -154,13 +154,13 @@ to the chain.
154.Sh RETURN VALUES 154.Sh RETURN VALUES
155All these functions return either the amount of data successfully 155All these functions return either the amount of data successfully
156read or written (if the return value is positive) or that no data 156read or written (if the return value is positive) or that no data
157was successfully read or written if the result is 0 or -1. 157was successfully read or written if the result is 0 or \-1.
158If the return value is -2, then the operation is not implemented 158If the return value is \-2, then the operation is not implemented
159in the specific BIO type. 159in the specific BIO type.
160The trailing NUL is not included in the length returned by 160The trailing NUL is not included in the length returned by
161.Fn BIO_gets . 161.Fn BIO_gets .
162.Pp 162.Pp
163A 0 or -1 return is not necessarily an indication of an error. 163A 0 or \-1 return is not necessarily an indication of an error.
164In particular when the source/sink is non-blocking or of a certain type 164In particular when the source/sink is non-blocking or of a certain type
165it may merely be an indication that no data is currently available and that 165it may merely be an indication that no data is currently available and that
166the application should retry the operation later. 166the application should retry the operation later.