summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorschwarze <>2022-12-19 14:40:14 +0000
committerschwarze <>2022-12-19 14:40:14 +0000
commit144b9d5b2c211664a418aa6db89dd7dc1393659e (patch)
treeea369200bc545db1d95972b9374109c28175159c /src/lib
parentd3f5245d8ed558fa8a547c364ffb7d09b83d1a0a (diff)
downloadopenbsd-144b9d5b2c211664a418aa6db89dd7dc1393659e.tar.gz
openbsd-144b9d5b2c211664a418aa6db89dd7dc1393659e.tar.bz2
openbsd-144b9d5b2c211664a418aa6db89dd7dc1393659e.zip
document BIO_copy_next_retry(3)
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/man/BIO_get_data.339
1 files changed, 34 insertions, 5 deletions
diff --git a/src/lib/libcrypto/man/BIO_get_data.3 b/src/lib/libcrypto/man/BIO_get_data.3
index 51b10adbb4..b4b0014d15 100644
--- a/src/lib/libcrypto/man/BIO_get_data.3
+++ b/src/lib/libcrypto/man/BIO_get_data.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: BIO_get_data.3,v 1.6 2022/12/18 21:45:47 schwarze Exp $ 1.\" $OpenBSD: BIO_get_data.3,v 1.7 2022/12/19 14:40:14 schwarze Exp $
2.\" full merge up to: OpenSSL 24a535ea Sep 22 13:14:20 2020 +0100 2.\" full merge up to: OpenSSL 24a535ea Sep 22 13:14:20 2020 +0100
3.\" 3.\"
4.\" This file is a derived work. 4.\" This file is a derived work.
@@ -65,7 +65,7 @@
65.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 65.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
66.\" OF THE POSSIBILITY OF SUCH DAMAGE. 66.\" OF THE POSSIBILITY OF SUCH DAMAGE.
67.\" 67.\"
68.Dd $Mdocdate: December 18 2022 $ 68.Dd $Mdocdate: December 19 2022 $
69.Dt BIO_GET_DATA 3 69.Dt BIO_GET_DATA 3
70.Os 70.Os
71.Sh NAME 71.Sh NAME
@@ -80,6 +80,7 @@
80.Nm BIO_set_retry_special , 80.Nm BIO_set_retry_special ,
81.Nm BIO_clear_retry_flags , 81.Nm BIO_clear_retry_flags ,
82.Nm BIO_get_retry_flags , 82.Nm BIO_get_retry_flags ,
83.Nm BIO_copy_next_retry ,
83.Nm BIO_set_init , 84.Nm BIO_set_init ,
84.Nm BIO_get_init , 85.Nm BIO_get_init ,
85.Nm BIO_set_shutdown , 86.Nm BIO_set_shutdown ,
@@ -136,6 +137,10 @@
136.Fa "BIO *a" 137.Fa "BIO *a"
137.Fc 138.Fc
138.Ft void 139.Ft void
140.Fo BIO_copy_next_retry
141.Fa "BIO *a"
142.Fc
143.Ft void
139.Fo BIO_set_init 144.Fo BIO_set_init
140.Fa "BIO *a" 145.Fa "BIO *a"
141.Fa "int init" 146.Fa "int init"
@@ -238,7 +243,7 @@ set the
238and 243and
239.Dv BIO_FLAGS_IO_SPECIAL 244.Dv BIO_FLAGS_IO_SPECIAL
240flag bit in 245flag bit in
241.Fa b , 246.Fa a ,
242respectively. 247respectively.
243They all set the 248They all set the
244.Dv BIO_FLAGS_SHOULD_RETRY 249.Dv BIO_FLAGS_SHOULD_RETRY
@@ -252,7 +257,29 @@ clears the flag bits
252and 257and
253.Dv BIO_FLAGS_SHOULD_RETRY 258.Dv BIO_FLAGS_SHOULD_RETRY
254in 259in
255.Fa b . 260.Fa a .
261.Pp
262.Fn BIO_copy_next_retry
263copies retry-related state data from the BIO that follows
264.Fa a
265in its chain to
266.Fa a ,
267that is, the data accessible with
268.Fn BIO_get_retry_flags
269and
270.Xr BIO_get_retry_reason 3 .
271Flags which are already set in
272.Fa a
273are not cleared.
274Before calling
275.Fn BIO_copy_next_retry ,
276making sure that
277.Fa a
278is not the last BIO in its chain is the responsibility of the caller,
279for example by checking that
280.Xr BIO_next 3
281does not return
282.Dv NULL .
256.Pp 283.Pp
257The 284The
258.Fn BIO_set_init 285.Fn BIO_set_init
@@ -344,7 +371,9 @@ or with
344.Fn BIO_clear_retry_flags , 371.Fn BIO_clear_retry_flags ,
345and 372and
346.Fn BIO_get_retry_flags 373.Fn BIO_get_retry_flags
347first appeared in SSLeay 0.8.0 and 374first appeared in SSLeay 0.8.0,
375.Fn BIO_copy_next_retry
376in SSLeay 0.8.1, and
348.Fn BIO_get_flags 377.Fn BIO_get_flags
349in SSLeay 0.9.0. 378in SSLeay 0.9.0.
350These functions have been available since 379These functions have been available since