summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorschwarze <>2018-12-19 21:12:58 +0000
committerschwarze <>2018-12-19 21:12:58 +0000
commitfc7bdc07350b9e50697b740e90d0958b1f576a8b (patch)
treefac2a33b4a010cb3bea7dc3988145147c807c5b9 /src
parent0df6ca93e187cda768b5209f7ed2e40163aec547 (diff)
downloadopenbsd-fc7bdc07350b9e50697b740e90d0958b1f576a8b.tar.gz
openbsd-fc7bdc07350b9e50697b740e90d0958b1f576a8b.tar.bz2
openbsd-fc7bdc07350b9e50697b740e90d0958b1f576a8b.zip
Specify the return values of some of these functions more precisely;
inspired by OpenSSL commit 1f13ad31 Dec 25 17:50:39 2017 +0800 by Paul Yang <yang sot yang at baishancloud dot com>, but without creating a RETURN VALUES section because that makes no sense here: it would either result in a confusing order of information or in duplicate information.
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/man/BIO_should_retry.331
1 files changed, 16 insertions, 15 deletions
diff --git a/src/lib/libcrypto/man/BIO_should_retry.3 b/src/lib/libcrypto/man/BIO_should_retry.3
index 85e313ee15..43b19b89e1 100644
--- a/src/lib/libcrypto/man/BIO_should_retry.3
+++ b/src/lib/libcrypto/man/BIO_should_retry.3
@@ -1,6 +1,6 @@
1.\" $OpenBSD: BIO_should_retry.3,v 1.8 2018/03/27 17:35:50 schwarze Exp $ 1.\" $OpenBSD: BIO_should_retry.3,v 1.9 2018/12/19 21:12:58 schwarze Exp $
2.\" full merge up to: OpenSSL 60e24554 Apr 6 14:45:18 2010 +0000 2.\" full merge up to: OpenSSL 60e24554 Apr 6 14:45:18 2010 +0000
3.\" selective merge up to: OpenSSL 61f805c1 Jan 16 01:01:46 2018 +0800 3.\" selective merge up to: OpenSSL 57fd5170 May 13 11:24:11 2018 +0200
4.\" 4.\"
5.\" This file was written by Dr. Stephen Henson <steve@openssl.org>. 5.\" This file was written by Dr. Stephen Henson <steve@openssl.org>.
6.\" Copyright (c) 2000, 2010, 2016 The OpenSSL Project. All rights reserved. 6.\" Copyright (c) 2000, 2010, 2016 The OpenSSL Project. All rights reserved.
@@ -49,7 +49,7 @@
49.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 49.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
50.\" OF THE POSSIBILITY OF SUCH DAMAGE. 50.\" OF THE POSSIBILITY OF SUCH DAMAGE.
51.\" 51.\"
52.Dd $Mdocdate: March 27 2018 $ 52.Dd $Mdocdate: December 19 2018 $
53.Dt BIO_SHOULD_RETRY 3 53.Dt BIO_SHOULD_RETRY 3
54.Os 54.Os
55.Sh NAME 55.Sh NAME
@@ -107,29 +107,30 @@ or
107call. 107call.
108.Pp 108.Pp
109.Fn BIO_should_retry 109.Fn BIO_should_retry
110is true if the call that produced this condition 110returns 1 if the call that produced this condition should be retried
111should be retried at a later time. 111at a later time, or 0 if an error occurred.
112.Pp
113If
114.Fn BIO_should_retry
115is false, the cause is an error condition.
116.Pp 112.Pp
117.Fn BIO_should_read 113.Fn BIO_should_read
118is true if the cause of the condition is that a BIO needs to read data. 114returns 1 if the cause of the retry condition is that a BIO needs
115to read data, or 0 otherwise.
119.Pp 116.Pp
120.Fn BIO_should_write 117.Fn BIO_should_write
121is true if the cause of the condition is that a BIO needs to write data. 118returns 1 if the cause of the retry condition is that a BIO needs
119to write data, or 0 otherwise.
122.Pp 120.Pp
123.Fn BIO_should_io_special 121.Fn BIO_should_io_special
124is true if some "special" condition 122returns 1 if some special condition (i.e. a reason other than reading
125(i.e. a reason other than reading or writing) is the cause of the condition. 123or writing) is the cause of the retry condition, or 0 otherwise.
126.Pp 124.Pp
127.Fn BIO_retry_type 125.Fn BIO_retry_type
128returns a mask of the cause of a retry condition consisting of the values 126returns the bitwise OR of one or more of the flags
129.Dv BIO_FLAGS_READ , 127.Dv BIO_FLAGS_READ ,
130.Dv BIO_FLAGS_WRITE , 128.Dv BIO_FLAGS_WRITE ,
129and
131.Dv BIO_FLAGS_IO_SPECIAL 130.Dv BIO_FLAGS_IO_SPECIAL
132though current BIO types will only set one of these. 131representing the cause of the current retry condition,
132or 0 if there is no retry condition.
133Current BIO types only set one of the flags at a time.
133.Pp 134.Pp
134.Fn BIO_get_retry_BIO 135.Fn BIO_get_retry_BIO
135determines the precise reason for the special condition. 136determines the precise reason for the special condition.