diff options
author | schwarze <> | 2018-12-19 21:12:58 +0000 |
---|---|---|
committer | schwarze <> | 2018-12-19 21:12:58 +0000 |
commit | fc7bdc07350b9e50697b740e90d0958b1f576a8b (patch) | |
tree | fac2a33b4a010cb3bea7dc3988145147c807c5b9 | |
parent | 0df6ca93e187cda768b5209f7ed2e40163aec547 (diff) | |
download | openbsd-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.
-rw-r--r-- | src/lib/libcrypto/man/BIO_should_retry.3 | 31 |
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 | |||
107 | call. | 107 | call. |
108 | .Pp | 108 | .Pp |
109 | .Fn BIO_should_retry | 109 | .Fn BIO_should_retry |
110 | is true if the call that produced this condition | 110 | returns 1 if the call that produced this condition should be retried |
111 | should be retried at a later time. | 111 | at a later time, or 0 if an error occurred. |
112 | .Pp | ||
113 | If | ||
114 | .Fn BIO_should_retry | ||
115 | is false, the cause is an error condition. | ||
116 | .Pp | 112 | .Pp |
117 | .Fn BIO_should_read | 113 | .Fn BIO_should_read |
118 | is true if the cause of the condition is that a BIO needs to read data. | 114 | returns 1 if the cause of the retry condition is that a BIO needs |
115 | to read data, or 0 otherwise. | ||
119 | .Pp | 116 | .Pp |
120 | .Fn BIO_should_write | 117 | .Fn BIO_should_write |
121 | is true if the cause of the condition is that a BIO needs to write data. | 118 | returns 1 if the cause of the retry condition is that a BIO needs |
119 | to write data, or 0 otherwise. | ||
122 | .Pp | 120 | .Pp |
123 | .Fn BIO_should_io_special | 121 | .Fn BIO_should_io_special |
124 | is true if some "special" condition | 122 | returns 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. | 123 | or 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 |
128 | returns a mask of the cause of a retry condition consisting of the values | 126 | returns 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 , |
129 | and | ||
131 | .Dv BIO_FLAGS_IO_SPECIAL | 130 | .Dv BIO_FLAGS_IO_SPECIAL |
132 | though current BIO types will only set one of these. | 131 | representing the cause of the current retry condition, |
132 | or 0 if there is no retry condition. | ||
133 | Current 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 |
135 | determines the precise reason for the special condition. | 136 | determines the precise reason for the special condition. |