diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2022-12-19 14:40:15 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2022-12-19 14:40:15 +0000 |
commit | 124455ef397b7d7fc2d847db20c0e792069ae454 (patch) | |
tree | df54efdc3b8760d7d425170a3acc65cb4376ef1d /lib/libcrypto | |
parent | d6b1548399dbc8eb691ff2efc3f2fec9b7414f18 (diff) |
document BIO_copy_next_retry(3)
Diffstat (limited to 'lib/libcrypto')
-rw-r--r-- | lib/libcrypto/man/BIO_get_data.3 | 39 |
1 files changed, 34 insertions, 5 deletions
diff --git a/lib/libcrypto/man/BIO_get_data.3 b/lib/libcrypto/man/BIO_get_data.3 index 51b10adbb44..b4b0014d15b 100644 --- a/lib/libcrypto/man/BIO_get_data.3 +++ b/lib/libcrypto/man/BIO_get_data.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: BIO_get_data.3,v 1.6 2022/12/18 21:45:47 schwarze Exp $ +.\" $OpenBSD: BIO_get_data.3,v 1.7 2022/12/19 14:40:14 schwarze Exp $ .\" full merge up to: OpenSSL 24a535ea Sep 22 13:14:20 2020 +0100 .\" .\" This file is a derived work. @@ -65,7 +65,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED .\" OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: December 18 2022 $ +.Dd $Mdocdate: December 19 2022 $ .Dt BIO_GET_DATA 3 .Os .Sh NAME @@ -80,6 +80,7 @@ .Nm BIO_set_retry_special , .Nm BIO_clear_retry_flags , .Nm BIO_get_retry_flags , +.Nm BIO_copy_next_retry , .Nm BIO_set_init , .Nm BIO_get_init , .Nm BIO_set_shutdown , @@ -136,6 +137,10 @@ .Fa "BIO *a" .Fc .Ft void +.Fo BIO_copy_next_retry +.Fa "BIO *a" +.Fc +.Ft void .Fo BIO_set_init .Fa "BIO *a" .Fa "int init" @@ -238,7 +243,7 @@ set the and .Dv BIO_FLAGS_IO_SPECIAL flag bit in -.Fa b , +.Fa a , respectively. They all set the .Dv BIO_FLAGS_SHOULD_RETRY @@ -252,7 +257,29 @@ clears the flag bits and .Dv BIO_FLAGS_SHOULD_RETRY in -.Fa b . +.Fa a . +.Pp +.Fn BIO_copy_next_retry +copies retry-related state data from the BIO that follows +.Fa a +in its chain to +.Fa a , +that is, the data accessible with +.Fn BIO_get_retry_flags +and +.Xr BIO_get_retry_reason 3 . +Flags which are already set in +.Fa a +are not cleared. +Before calling +.Fn BIO_copy_next_retry , +making sure that +.Fa a +is not the last BIO in its chain is the responsibility of the caller, +for example by checking that +.Xr BIO_next 3 +does not return +.Dv NULL . .Pp The .Fn BIO_set_init @@ -344,7 +371,9 @@ or with .Fn BIO_clear_retry_flags , and .Fn BIO_get_retry_flags -first appeared in SSLeay 0.8.0 and +first appeared in SSLeay 0.8.0, +.Fn BIO_copy_next_retry +in SSLeay 0.8.1, and .Fn BIO_get_flags in SSLeay 0.9.0. These functions have been available since |