summaryrefslogtreecommitdiff
path: root/lib/libcrypto/man
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2018-12-19 21:12:59 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2018-12-19 21:12:59 +0000
commit0b48f0825b5f99aefc574b93d2fc1b6e051415e5 (patch)
tree9d62c2dce850e5edaa13b0934afb02a93475b8f1 /lib/libcrypto/man
parentc5f131867166abb06e60351e622eedaaea7efd73 (diff)
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 'lib/libcrypto/man')
-rw-r--r--lib/libcrypto/man/BIO_should_retry.331
1 files changed, 16 insertions, 15 deletions
diff --git a/lib/libcrypto/man/BIO_should_retry.3 b/lib/libcrypto/man/BIO_should_retry.3
index 85e313ee156..43b19b89e1c 100644
--- a/lib/libcrypto/man/BIO_should_retry.3
+++ b/lib/libcrypto/man/BIO_should_retry.3
@@ -1,6 +1,6 @@
-.\" $OpenBSD: BIO_should_retry.3,v 1.8 2018/03/27 17:35:50 schwarze Exp $
+.\" $OpenBSD: BIO_should_retry.3,v 1.9 2018/12/19 21:12:58 schwarze Exp $
.\" full merge up to: OpenSSL 60e24554 Apr 6 14:45:18 2010 +0000
-.\" selective merge up to: OpenSSL 61f805c1 Jan 16 01:01:46 2018 +0800
+.\" selective merge up to: OpenSSL 57fd5170 May 13 11:24:11 2018 +0200
.\"
.\" This file was written by Dr. Stephen Henson <steve@openssl.org>.
.\" Copyright (c) 2000, 2010, 2016 The OpenSSL Project. All rights reserved.
@@ -49,7 +49,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
.\" OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: March 27 2018 $
+.Dd $Mdocdate: December 19 2018 $
.Dt BIO_SHOULD_RETRY 3
.Os
.Sh NAME
@@ -107,29 +107,30 @@ or
call.
.Pp
.Fn BIO_should_retry
-is true if the call that produced this condition
-should be retried at a later time.
-.Pp
-If
-.Fn BIO_should_retry
-is false, the cause is an error condition.
+returns 1 if the call that produced this condition should be retried
+at a later time, or 0 if an error occurred.
.Pp
.Fn BIO_should_read
-is true if the cause of the condition is that a BIO needs to read data.
+returns 1 if the cause of the retry condition is that a BIO needs
+to read data, or 0 otherwise.
.Pp
.Fn BIO_should_write
-is true if the cause of the condition is that a BIO needs to write data.
+returns 1 if the cause of the retry condition is that a BIO needs
+to write data, or 0 otherwise.
.Pp
.Fn BIO_should_io_special
-is true if some "special" condition
-(i.e. a reason other than reading or writing) is the cause of the condition.
+returns 1 if some special condition (i.e. a reason other than reading
+or writing) is the cause of the retry condition, or 0 otherwise.
.Pp
.Fn BIO_retry_type
-returns a mask of the cause of a retry condition consisting of the values
+returns the bitwise OR of one or more of the flags
.Dv BIO_FLAGS_READ ,
.Dv BIO_FLAGS_WRITE ,
+and
.Dv BIO_FLAGS_IO_SPECIAL
-though current BIO types will only set one of these.
+representing the cause of the current retry condition,
+or 0 if there is no retry condition.
+Current BIO types only set one of the flags at a time.
.Pp
.Fn BIO_get_retry_BIO
determines the precise reason for the special condition.