diff options
| author | schwarze <> | 2022-12-18 19:35:36 +0000 |
|---|---|---|
| committer | schwarze <> | 2022-12-18 19:35:36 +0000 |
| commit | f26ef0aa360dae497f219007f5241029c6f83cf0 (patch) | |
| tree | 347e585185753dc753be34949f9b80aa126c76dd | |
| parent | 1ab199ddcad92be2f6a793e79c23b1387880332e (diff) | |
| download | openbsd-f26ef0aa360dae497f219007f5241029c6f83cf0.tar.gz openbsd-f26ef0aa360dae497f219007f5241029c6f83cf0.tar.bz2 openbsd-f26ef0aa360dae497f219007f5241029c6f83cf0.zip | |
new manual page BIO_dup_chain(3)
| -rw-r--r-- | src/lib/libcrypto/man/BIO_dup_chain.3 | 141 | ||||
| -rw-r--r-- | src/lib/libcrypto/man/BIO_f_buffer.3 | 14 | ||||
| -rw-r--r-- | src/lib/libcrypto/man/BIO_f_cipher.3 | 13 | ||||
| -rw-r--r-- | src/lib/libcrypto/man/BIO_f_md.3 | 15 | ||||
| -rw-r--r-- | src/lib/libcrypto/man/BIO_f_null.3 | 11 | ||||
| -rw-r--r-- | src/lib/libcrypto/man/BIO_new.3 | 5 | ||||
| -rw-r--r-- | src/lib/libcrypto/man/BIO_s_bio.3 | 10 | ||||
| -rw-r--r-- | src/lib/libcrypto/man/BIO_s_connect.3 | 13 | ||||
| -rw-r--r-- | src/lib/libcrypto/man/Makefile | 3 |
9 files changed, 206 insertions, 19 deletions
diff --git a/src/lib/libcrypto/man/BIO_dup_chain.3 b/src/lib/libcrypto/man/BIO_dup_chain.3 new file mode 100644 index 0000000000..561c811d5d --- /dev/null +++ b/src/lib/libcrypto/man/BIO_dup_chain.3 | |||
| @@ -0,0 +1,141 @@ | |||
| 1 | .\" $OpenBSD: BIO_dup_chain.3,v 1.1 2022/12/18 19:35:36 schwarze Exp $ | ||
| 2 | .\" | ||
| 3 | .\" Copyright (c) 2022 Ingo Schwarze <schwarze@openbsd.org> | ||
| 4 | .\" | ||
| 5 | .\" Permission to use, copy, modify, and distribute this software for any | ||
| 6 | .\" purpose with or without fee is hereby granted, provided that the above | ||
| 7 | .\" copyright notice and this permission notice appear in all copies. | ||
| 8 | .\" | ||
| 9 | .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
| 10 | .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
| 11 | .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
| 12 | .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
| 13 | .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
| 14 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
| 15 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
| 16 | .\" | ||
| 17 | .Dd $Mdocdate: December 18 2022 $ | ||
| 18 | .Dt BIO_DUP_CHAIN 3 | ||
| 19 | .Os | ||
| 20 | .Sh NAME | ||
| 21 | .Nm BIO_dup_chain , | ||
| 22 | .Nm BIO_dup_state | ||
| 23 | .Nd copy a BIO chain | ||
| 24 | .Sh SYNOPSIS | ||
| 25 | .In openssl/bio.h | ||
| 26 | .Ft BIO * | ||
| 27 | .Fn BIO_dup_chain "BIO *b" | ||
| 28 | .Ft long | ||
| 29 | .Fn BIO_dup_state "BIO *b" "BIO *new_bio" | ||
| 30 | .Sh DESCRIPTION | ||
| 31 | .Fn BIO_dup_chain | ||
| 32 | copies the chain starting at | ||
| 33 | .Fa b | ||
| 34 | by iteratively copying | ||
| 35 | .Fa b | ||
| 36 | and all the BIOs following it | ||
| 37 | and joining the copies in the same order as in the original chain. | ||
| 38 | The copying operation is neither a deep copy nor a shallow copy. | ||
| 39 | .Pp | ||
| 40 | Some parts of the state of each BIO are copied, | ||
| 41 | in particular with respect to the values returned by | ||
| 42 | .Xr BIO_get_init 3 , | ||
| 43 | .Xr BIO_test_flags 3 , | ||
| 44 | and | ||
| 45 | .Xr BIO_get_shutdown 3 . | ||
| 46 | .\" XXX new_bio->num = bio->num; | ||
| 47 | Other parts of the state of the BIOs are not copied | ||
| 48 | but instead initialized to 0, | ||
| 49 | in particular with respect to the values returned by | ||
| 50 | .Xr BIO_number_read 3 , | ||
| 51 | .Xr BIO_number_written 3 , | ||
| 52 | and | ||
| 53 | .Xr BIO_get_retry_reason 3 . | ||
| 54 | The custom data pointer that can be used by custom BIO types | ||
| 55 | and that can be retrieved with | ||
| 56 | .Xr BIO_get_data 3 | ||
| 57 | is set set to | ||
| 58 | .Dv NULL | ||
| 59 | in the copied BIO objects rather than copied. | ||
| 60 | The reference count of each BIO in the copied chain is set to 1. | ||
| 61 | .Pp | ||
| 62 | For each BIO in the chain, copying the data that was set with | ||
| 63 | .Xr BIO_set_ex_data 3 | ||
| 64 | is attempted, which may involve calling application-defined | ||
| 65 | callback functions. | ||
| 66 | .Pp | ||
| 67 | The following pointers are copied | ||
| 68 | rather than creating deep copies of the objects pointed to: | ||
| 69 | .Bl -bullet | ||
| 70 | .It | ||
| 71 | The | ||
| 72 | .Fa type | ||
| 73 | pointer used for creating each BIO with | ||
| 74 | .Xr BIO_new 3 , | ||
| 75 | implying that functions like | ||
| 76 | .Xr BIO_method_name 3 | ||
| 77 | return pointers to the same strings for the BIOs in the copied chain, | ||
| 78 | and that these strings are not copied. | ||
| 79 | .It | ||
| 80 | All function pointers, in particular those installed with | ||
| 81 | .Xr BIO_set_callback_ex 3 | ||
| 82 | and | ||
| 83 | .Xr BIO_get_callback_ex 3 . | ||
| 84 | .It | ||
| 85 | The pointer installed with | ||
| 86 | .Xr BIO_set_callback_arg 3 , | ||
| 87 | which implies that for BIOs using | ||
| 88 | .Xr BIO_debug_callback 3 , | ||
| 89 | those in the copied chain use the same BIOs for debugging output | ||
| 90 | as the corresponding ones in the original chain, | ||
| 91 | and none of the debugging output BIOs are copied. | ||
| 92 | .El | ||
| 93 | .Pp | ||
| 94 | .Fn BIO_dup_state | ||
| 95 | is a macro that calls | ||
| 96 | .Xr BIO_ctrl 3 | ||
| 97 | with a | ||
| 98 | .Fa cmd | ||
| 99 | argument of | ||
| 100 | .Dv BIO_CTRL_DUP . | ||
| 101 | It is automatically called for each BIO during | ||
| 102 | .Fn BIO_dup_chain | ||
| 103 | after the copied BIO is initialized and data copied into it, | ||
| 104 | but before the data set with | ||
| 105 | .Xr BIO_set_ex_data 3 | ||
| 106 | is copied into the new BIO and before it is linked into the new chain. | ||
| 107 | .Pp | ||
| 108 | This control operation may modify the operation of | ||
| 109 | .Fn BIO_dup_chain | ||
| 110 | for particular types of BIOs contained in the chain, | ||
| 111 | for example initializing or copying additional data. | ||
| 112 | For BIO types provided by the library, such additional effects | ||
| 113 | are documented in the respective manual pages, in particular in | ||
| 114 | .Xr BIO_f_buffer 3 , | ||
| 115 | .Xr BIO_f_cipher 3 , | ||
| 116 | .Xr BIO_f_md 3 , | ||
| 117 | .Xr BIO_f_ssl 3 , | ||
| 118 | .Xr BIO_s_bio 3 , | ||
| 119 | and | ||
| 120 | .Xr BIO_s_connect 3 . | ||
| 121 | .Sh RETURN VALUES | ||
| 122 | .Fn BIO_dup_chain | ||
| 123 | returns a pointer to the newly allocated copy of the BIO | ||
| 124 | .Fa b | ||
| 125 | on success or | ||
| 126 | .Dv NULL | ||
| 127 | on failure . | ||
| 128 | .Pp | ||
| 129 | .Fn BIO_dup_state | ||
| 130 | returns 1 on success or a value less than or equal to zero on failure. | ||
| 131 | .Sh SEE ALSO | ||
| 132 | .Xr BIO_get_data 3 , | ||
| 133 | .Xr BIO_new 3 , | ||
| 134 | .Xr BIO_next 3 , | ||
| 135 | .Xr BIO_push 3 | ||
| 136 | .Sh HISTORY | ||
| 137 | .Fn BIO_dup_chain | ||
| 138 | and | ||
| 139 | .Fn BIO_dup_state | ||
| 140 | first appeared in SSLeay 0.8.0 and have been available since | ||
| 141 | .Ox 2.4 . | ||
diff --git a/src/lib/libcrypto/man/BIO_f_buffer.3 b/src/lib/libcrypto/man/BIO_f_buffer.3 index 27baf7270c..a22addfbcb 100644 --- a/src/lib/libcrypto/man/BIO_f_buffer.3 +++ b/src/lib/libcrypto/man/BIO_f_buffer.3 | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | .\" $OpenBSD: BIO_f_buffer.3,v 1.11 2022/03/31 17:27:16 naddy Exp $ | 1 | .\" $OpenBSD: BIO_f_buffer.3,v 1.12 2022/12/18 19:35:36 schwarze Exp $ |
| 2 | .\" OpenSSL 9b86974e Mar 19 12:32:14 2016 -0400 | 2 | .\" full merge up to OpenSSL 99d63d46 Oct 26 13:56:48 2016 -0400 |
| 3 | .\" | 3 | .\" |
| 4 | .\" This file was written by Dr. Stephen Henson <steve@openssl.org>. | 4 | .\" This file was written by Dr. Stephen Henson <steve@openssl.org>. |
| 5 | .\" Copyright (c) 2000, 2010, 2015, 2016 The OpenSSL Project. | 5 | .\" Copyright (c) 2000, 2010, 2015, 2016 The OpenSSL Project. |
| @@ -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 31 2022 $ | 52 | .Dd $Mdocdate: December 18 2022 $ |
| 53 | .Dt BIO_F_BUFFER 3 | 53 | .Dt BIO_F_BUFFER 3 |
| 54 | .Os | 54 | .Os |
| 55 | .Sh NAME | 55 | .Sh NAME |
| @@ -159,6 +159,14 @@ such as when removing a buffering BIO using | |||
| 159 | .Xr BIO_pop 3 . | 159 | .Xr BIO_pop 3 . |
| 160 | .Xr BIO_flush 3 | 160 | .Xr BIO_flush 3 |
| 161 | may need to be retried if the ultimate source/sink BIO is non-blocking. | 161 | may need to be retried if the ultimate source/sink BIO is non-blocking. |
| 162 | .Pp | ||
| 163 | When a chain containing a buffering BIO is copied with | ||
| 164 | .Xr BIO_dup_chain 3 , | ||
| 165 | .Fn BIO_set_read_buffer_size | ||
| 166 | and | ||
| 167 | .Fn BIO_set_write_buffer_size | ||
| 168 | are called internally to automatically copy both buffer sizes from the | ||
| 169 | original BIO object to the new one. | ||
| 162 | .Sh RETURN VALUES | 170 | .Sh RETURN VALUES |
| 163 | .Fn BIO_f_buffer | 171 | .Fn BIO_f_buffer |
| 164 | returns the buffering BIO method. | 172 | returns the buffering BIO method. |
diff --git a/src/lib/libcrypto/man/BIO_f_cipher.3 b/src/lib/libcrypto/man/BIO_f_cipher.3 index 6a4e7c53eb..794166687a 100644 --- a/src/lib/libcrypto/man/BIO_f_cipher.3 +++ b/src/lib/libcrypto/man/BIO_f_cipher.3 | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | .\" $OpenBSD: BIO_f_cipher.3,v 1.12 2019/06/06 01:06:58 schwarze Exp $ | 1 | .\" $OpenBSD: BIO_f_cipher.3,v 1.13 2022/12/18 19:35:36 schwarze Exp $ |
| 2 | .\" OpenSSL 186bb907 Apr 13 11:05:13 2015 -0700 | 2 | .\" full merge up to: OpenSSL e9b77246 Jan 20 19:58:49 2017 +0100 |
| 3 | .\" | 3 | .\" |
| 4 | .\" This file was written by Dr. Stephen Henson <steve@openssl.org>. | 4 | .\" This file was written by Dr. Stephen Henson <steve@openssl.org>. |
| 5 | .\" Copyright (c) 2000, 2003, 2015, 2016 The OpenSSL Project. | 5 | .\" Copyright (c) 2000, 2003, 2015, 2016 The OpenSSL Project. |
| @@ -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: June 6 2019 $ | 52 | .Dd $Mdocdate: December 18 2022 $ |
| 53 | .Dt BIO_F_CIPHER 3 | 53 | .Dt BIO_F_CIPHER 3 |
| 54 | .Os | 54 | .Os |
| 55 | .Sh NAME | 55 | .Sh NAME |
| @@ -133,6 +133,13 @@ This is useful when | |||
| 133 | .Fn BIO_set_cipher | 133 | .Fn BIO_set_cipher |
| 134 | is not flexible enough for the applications needs. | 134 | is not flexible enough for the applications needs. |
| 135 | .Pp | 135 | .Pp |
| 136 | When a chain containing a cipher BIO is copied with | ||
| 137 | .Xr BIO_dup_chain 3 , | ||
| 138 | the cipher context is automatically copied from the existing BIO object | ||
| 139 | to the new one and the init flag that can be retrieved with | ||
| 140 | .Xr BIO_get_init 3 | ||
| 141 | is set to 1. | ||
| 142 | .Pp | ||
| 136 | When encrypting, | 143 | When encrypting, |
| 137 | .Xr BIO_flush 3 | 144 | .Xr BIO_flush 3 |
| 138 | must be called to flush the final block through the BIO. | 145 | must be called to flush the final block through the BIO. |
diff --git a/src/lib/libcrypto/man/BIO_f_md.3 b/src/lib/libcrypto/man/BIO_f_md.3 index d1519bb079..d98111f459 100644 --- a/src/lib/libcrypto/man/BIO_f_md.3 +++ b/src/lib/libcrypto/man/BIO_f_md.3 | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | .\" $OpenBSD: BIO_f_md.3,v 1.11 2019/06/06 01:06:58 schwarze Exp $ | 1 | .\" $OpenBSD: BIO_f_md.3,v 1.12 2022/12/18 19:35:36 schwarze Exp $ |
| 2 | .\" OpenSSL a528d4f0 Oct 27 13:40:11 2015 -0400 | 2 | .\" full merge up to: OpenSSL 99d63d46 Oct 26 13:56:48 2016 -0400 |
| 3 | .\" | 3 | .\" |
| 4 | .\" This file was written by Dr. Stephen Henson <steve@openssl.org>. | 4 | .\" This file was written by Dr. Stephen Henson <steve@openssl.org>. |
| 5 | .\" Copyright (c) 2000, 2006, 2009, 2016 The OpenSSL Project. | 5 | .\" Copyright (c) 2000, 2006, 2009, 2016 The OpenSSL Project. |
| @@ -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: June 6 2019 $ | 52 | .Dd $Mdocdate: December 18 2022 $ |
| 53 | .Dt BIO_F_MD 3 | 53 | .Dt BIO_F_MD 3 |
| 54 | .Os | 54 | .Os |
| 55 | .Sh NAME | 55 | .Sh NAME |
| @@ -145,6 +145,15 @@ is an internal context structure. | |||
| 145 | Changes made to this context will affect the digest BIO itself, and | 145 | Changes made to this context will affect the digest BIO itself, and |
| 146 | the context pointer will become invalid when the digest BIO is freed. | 146 | the context pointer will become invalid when the digest BIO is freed. |
| 147 | .Pp | 147 | .Pp |
| 148 | When a chain containing a message digest BIO is copied with | ||
| 149 | .Xr BIO_dup_chain 3 , | ||
| 150 | .Xr EVP_MD_CTX_copy_ex 3 | ||
| 151 | is called internally to automatically copy the message digest context | ||
| 152 | from the existing BIO object to the new one, | ||
| 153 | and the init flag that can be retrieved with | ||
| 154 | .Xr BIO_get_init 3 | ||
| 155 | is set to 1. | ||
| 156 | .Pp | ||
| 148 | After the digest has been retrieved from a digest BIO, | 157 | After the digest has been retrieved from a digest BIO, |
| 149 | it must be reinitialized by calling | 158 | it must be reinitialized by calling |
| 150 | .Xr BIO_reset 3 | 159 | .Xr BIO_reset 3 |
diff --git a/src/lib/libcrypto/man/BIO_f_null.3 b/src/lib/libcrypto/man/BIO_f_null.3 index 755f37dae7..a74726e1ff 100644 --- a/src/lib/libcrypto/man/BIO_f_null.3 +++ b/src/lib/libcrypto/man/BIO_f_null.3 | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | .\" $OpenBSD: BIO_f_null.3,v 1.9 2018/05/01 17:05:05 schwarze Exp $ | 1 | .\" $OpenBSD: BIO_f_null.3,v 1.10 2022/12/18 19:35:36 schwarze Exp $ |
| 2 | .\" OpenSSL e117a890 Sep 14 12:14:41 2000 +0000 | 2 | .\" full merge up to: OpenSSL e9b77246 Jan 20 19:58:49 2017 +0100 |
| 3 | .\" | 3 | .\" |
| 4 | .\" This file was written by Dr. Stephen Henson <steve@openssl.org>. | 4 | .\" This file was written by Dr. Stephen Henson <steve@openssl.org>. |
| 5 | .\" Copyright (c) 2000 The OpenSSL Project. All rights reserved. | 5 | .\" Copyright (c) 2000 The OpenSSL Project. All rights reserved. |
| @@ -48,7 +48,7 @@ | |||
| 48 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 48 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
| 49 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 49 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
| 50 | .\" | 50 | .\" |
| 51 | .Dd $Mdocdate: May 1 2018 $ | 51 | .Dd $Mdocdate: December 18 2022 $ |
| 52 | .Dt BIO_F_NULL 3 | 52 | .Dt BIO_F_NULL 3 |
| 53 | .Os | 53 | .Os |
| 54 | .Sh NAME | 54 | .Sh NAME |
| @@ -69,6 +69,11 @@ As may be apparent, a null filter BIO is not particularly useful. | |||
| 69 | All requests to a null filter BIO are passed through to the next BIO | 69 | All requests to a null filter BIO are passed through to the next BIO |
| 70 | in the chain: this means that a BIO chain containing a null filter BIO | 70 | in the chain: this means that a BIO chain containing a null filter BIO |
| 71 | behaves just as though the BIO was not there. | 71 | behaves just as though the BIO was not there. |
| 72 | .Pp | ||
| 73 | A chain containing a null filter BIO cannot be copied with | ||
| 74 | .Xr BIO_dup_chain 3 , | ||
| 75 | and any attempt to do so fails and returns | ||
| 76 | .Dv NULL . | ||
| 72 | .Sh RETURN VALUES | 77 | .Sh RETURN VALUES |
| 73 | .Fn BIO_f_null | 78 | .Fn BIO_f_null |
| 74 | returns the null filter BIO method. | 79 | returns the null filter BIO method. |
diff --git a/src/lib/libcrypto/man/BIO_new.3 b/src/lib/libcrypto/man/BIO_new.3 index 53dee2c60a..b4b0432d13 100644 --- a/src/lib/libcrypto/man/BIO_new.3 +++ b/src/lib/libcrypto/man/BIO_new.3 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | .\" $OpenBSD: BIO_new.3,v 1.23 2022/12/14 20:27:28 schwarze Exp $ | 1 | .\" $OpenBSD: BIO_new.3,v 1.24 2022/12/18 19:35:36 schwarze Exp $ |
| 2 | .\" full merge up to: | 2 | .\" full merge up to: |
| 3 | .\" OpenSSL man3/BIO_new.pod fb46be03 Feb 26 11:51:31 2016 +0000 | 3 | .\" OpenSSL man3/BIO_new.pod fb46be03 Feb 26 11:51:31 2016 +0000 |
| 4 | .\" OpenSSL man7/bio.pod 631c37be Dec 12 16:56:50 2017 +0100 | 4 | .\" OpenSSL man7/bio.pod 631c37be Dec 12 16:56:50 2017 +0100 |
| @@ -52,7 +52,7 @@ | |||
| 52 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 52 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
| 53 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 53 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
| 54 | .\" | 54 | .\" |
| 55 | .Dd $Mdocdate: December 14 2022 $ | 55 | .Dd $Mdocdate: December 18 2022 $ |
| 56 | .Dt BIO_NEW 3 | 56 | .Dt BIO_NEW 3 |
| 57 | .Os | 57 | .Os |
| 58 | .Sh NAME | 58 | .Sh NAME |
| @@ -231,6 +231,7 @@ Create a memory BIO: | |||
| 231 | .Xr ASN1_buf_print 3 , | 231 | .Xr ASN1_buf_print 3 , |
| 232 | .Xr BIO_ctrl 3 , | 232 | .Xr BIO_ctrl 3 , |
| 233 | .Xr BIO_dump 3 , | 233 | .Xr BIO_dump 3 , |
| 234 | .Xr BIO_dup_chain 3 , | ||
| 234 | .Xr BIO_f_asn1 3 , | 235 | .Xr BIO_f_asn1 3 , |
| 235 | .Xr BIO_f_base64 3 , | 236 | .Xr BIO_f_base64 3 , |
| 236 | .Xr BIO_f_buffer 3 , | 237 | .Xr BIO_f_buffer 3 , |
diff --git a/src/lib/libcrypto/man/BIO_s_bio.3 b/src/lib/libcrypto/man/BIO_s_bio.3 index bf4e8738b5..3c5b1fbe10 100644 --- a/src/lib/libcrypto/man/BIO_s_bio.3 +++ b/src/lib/libcrypto/man/BIO_s_bio.3 | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | .\" $OpenBSD: BIO_s_bio.3,v 1.14 2022/03/31 17:27:16 naddy Exp $ | 1 | .\" $OpenBSD: BIO_s_bio.3,v 1.15 2022/12/18 19:35:36 schwarze Exp $ |
| 2 | .\" OpenSSL c03726ca Aug 27 12:28:08 2015 -0400 | 2 | .\" full merge up to: OpenSSL 99d63d46 Oct 26 13:56:48 2016 -0400 |
| 3 | .\" | 3 | .\" |
| 4 | .\" This file was written by | 4 | .\" This file was written by |
| 5 | .\" Lutz Jaenicke <Lutz.Jaenicke@aet.TU-Cottbus.DE>, | 5 | .\" Lutz Jaenicke <Lutz.Jaenicke@aet.TU-Cottbus.DE>, |
| @@ -53,7 +53,7 @@ | |||
| 53 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 53 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
| 54 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 54 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
| 55 | .\" | 55 | .\" |
| 56 | .Dd $Mdocdate: March 31 2022 $ | 56 | .Dd $Mdocdate: December 18 2022 $ |
| 57 | .Dt BIO_S_BIO 3 | 57 | .Dt BIO_S_BIO 3 |
| 58 | .Os | 58 | .Os |
| 59 | .Sh NAME | 59 | .Sh NAME |
| @@ -184,6 +184,10 @@ to | |||
| 184 | .Fa size . | 184 | .Fa size . |
| 185 | If the size is not initialized, a default value is used. | 185 | If the size is not initialized, a default value is used. |
| 186 | This is currently 17K, sufficient for a maximum size TLS record. | 186 | This is currently 17K, sufficient for a maximum size TLS record. |
| 187 | When a chain containing a BIO pair is copied with | ||
| 188 | .Xr BIO_dup_chain 3 , | ||
| 189 | the write buffer size is automatically copied | ||
| 190 | from the original BIO object to the new one. | ||
| 187 | .Pp | 191 | .Pp |
| 188 | .Fn BIO_get_write_buf_size | 192 | .Fn BIO_get_write_buf_size |
| 189 | returns the size of the write buffer. | 193 | returns the size of the write buffer. |
diff --git a/src/lib/libcrypto/man/BIO_s_connect.3 b/src/lib/libcrypto/man/BIO_s_connect.3 index b3f1ce87de..ee6d4e38e1 100644 --- a/src/lib/libcrypto/man/BIO_s_connect.3 +++ b/src/lib/libcrypto/man/BIO_s_connect.3 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | .\" $OpenBSD: BIO_s_connect.3,v 1.13 2022/12/18 19:15:38 schwarze Exp $ | 1 | .\" $OpenBSD: BIO_s_connect.3,v 1.14 2022/12/18 19:35:36 schwarze Exp $ |
| 2 | .\" full merge up to: OpenSSL 0e474b8b Nov 1 15:45:49 2015 +0100 | 2 | .\" full merge up to: OpenSSL 0e474b8b Nov 1 15:45:49 2015 +0100 |
| 3 | .\" | 3 | .\" |
| 4 | .\" This file was written by Dr. Stephen Henson <steve@openssl.org>. | 4 | .\" This file was written by Dr. Stephen Henson <steve@openssl.org>. |
| @@ -290,6 +290,17 @@ that a connection attempt would block. | |||
| 290 | The application should then take appropriate action to wait | 290 | The application should then take appropriate action to wait |
| 291 | until the underlying socket has connected and retry the call. | 291 | until the underlying socket has connected and retry the call. |
| 292 | .Pp | 292 | .Pp |
| 293 | When a chain containing a connect BIO is copied with | ||
| 294 | .Xr BIO_dup_chain 3 , | ||
| 295 | .Fn BIO_set_conn_hostname , | ||
| 296 | .Fn BIO_set_conn_port , | ||
| 297 | .Fn BIO_set_nbio , | ||
| 298 | and | ||
| 299 | .Xr BIO_set_info_callback 3 | ||
| 300 | are called internally to automatically copy the hostname, port, | ||
| 301 | non-blocking I/O flag, and info callback from the original BIO object | ||
| 302 | to the new one. | ||
| 303 | .Pp | ||
| 293 | .Fn BIO_set_conn_hostname , | 304 | .Fn BIO_set_conn_hostname , |
| 294 | .Fn BIO_set_conn_port , | 305 | .Fn BIO_set_conn_port , |
| 295 | .Fn BIO_set_conn_ip , | 306 | .Fn BIO_set_conn_ip , |
diff --git a/src/lib/libcrypto/man/Makefile b/src/lib/libcrypto/man/Makefile index 12e4212215..ea4a90e4d3 100644 --- a/src/lib/libcrypto/man/Makefile +++ b/src/lib/libcrypto/man/Makefile | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | # $OpenBSD: Makefile,v 1.239 2022/12/14 20:27:28 schwarze Exp $ | 1 | # $OpenBSD: Makefile,v 1.240 2022/12/18 19:35:36 schwarze Exp $ |
| 2 | 2 | ||
| 3 | .include <bsd.own.mk> | 3 | .include <bsd.own.mk> |
| 4 | 4 | ||
| @@ -37,6 +37,7 @@ MAN= \ | |||
| 37 | BF_set_key.3 \ | 37 | BF_set_key.3 \ |
| 38 | BIO_ctrl.3 \ | 38 | BIO_ctrl.3 \ |
| 39 | BIO_dump.3 \ | 39 | BIO_dump.3 \ |
| 40 | BIO_dup_chain.3 \ | ||
| 40 | BIO_f_asn1.3 \ | 41 | BIO_f_asn1.3 \ |
| 41 | BIO_f_base64.3 \ | 42 | BIO_f_base64.3 \ |
| 42 | BIO_f_buffer.3 \ | 43 | BIO_f_buffer.3 \ |
