diff options
author | schwarze <> | 2023-04-26 15:03:02 +0000 |
---|---|---|
committer | schwarze <> | 2023-04-26 15:03:02 +0000 |
commit | 563a58f0e6fc039507a215038ba3eab4873d0c9f (patch) | |
tree | 850ce414b765f9eb5e043a9d549bbd0faa429b9f /src/lib/libcrypto/man/BIO_f_buffer.3 | |
parent | 694947bcadf2e7c392af1ace6790eb555c176d4f (diff) | |
download | openbsd-563a58f0e6fc039507a215038ba3eab4873d0c9f.tar.gz openbsd-563a58f0e6fc039507a215038ba3eab4873d0c9f.tar.bz2 openbsd-563a58f0e6fc039507a215038ba3eab4873d0c9f.zip |
Document those BIO_ctrl(3) command constants
that correspond to more than one macro each.
Diffstat (limited to 'src/lib/libcrypto/man/BIO_f_buffer.3')
-rw-r--r-- | src/lib/libcrypto/man/BIO_f_buffer.3 | 53 |
1 files changed, 46 insertions, 7 deletions
diff --git a/src/lib/libcrypto/man/BIO_f_buffer.3 b/src/lib/libcrypto/man/BIO_f_buffer.3 index 9ac2f4de34..412ec52d74 100644 --- a/src/lib/libcrypto/man/BIO_f_buffer.3 +++ b/src/lib/libcrypto/man/BIO_f_buffer.3 | |||
@@ -1,7 +1,24 @@ | |||
1 | .\" $OpenBSD: BIO_f_buffer.3,v 1.14 2023/04/11 16:58:43 schwarze Exp $ | 1 | .\" $OpenBSD: BIO_f_buffer.3,v 1.15 2023/04/26 15:03:02 schwarze Exp $ |
2 | .\" full merge up to OpenSSL 99d63d46 Oct 26 13:56:48 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 is a derived work. |
5 | .\" The changes are covered by the following Copyright and license: | ||
6 | .\" | ||
7 | .\" Copyright (c) 2023 Ingo Schwarze <schwarze@openbsd.org> | ||
8 | .\" | ||
9 | .\" Permission to use, copy, modify, and distribute this software for any | ||
10 | .\" purpose with or without fee is hereby granted, provided that the above | ||
11 | .\" copyright notice and this permission notice appear in all copies. | ||
12 | .\" | ||
13 | .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
14 | .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
15 | .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
16 | .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
17 | .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
18 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
19 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
20 | .\" | ||
21 | .\" The original file was written by Dr. Stephen Henson <steve@openssl.org>. | ||
5 | .\" Copyright (c) 2000, 2010, 2015, 2016 The OpenSSL Project. | 22 | .\" Copyright (c) 2000, 2010, 2015, 2016 The OpenSSL Project. |
6 | .\" All rights reserved. | 23 | .\" All rights reserved. |
7 | .\" | 24 | .\" |
@@ -49,7 +66,7 @@ | |||
49 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 66 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
50 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 67 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
51 | .\" | 68 | .\" |
52 | .Dd $Mdocdate: April 11 2023 $ | 69 | .Dd $Mdocdate: April 26 2023 $ |
53 | .Dt BIO_F_BUFFER 3 | 70 | .Dt BIO_F_BUFFER 3 |
54 | .Os | 71 | .Os |
55 | .Sh NAME | 72 | .Sh NAME |
@@ -137,10 +154,6 @@ If | |||
137 | .Fa num | 154 | .Fa num |
138 | is larger than the current buffer size, the buffer is expanded. | 155 | is larger than the current buffer size, the buffer is expanded. |
139 | .Pp | 156 | .Pp |
140 | Except | ||
141 | .Fn BIO_f_buffer , | ||
142 | these functions are implemented as macros. | ||
143 | .Pp | ||
144 | Buffering BIOs implement | 157 | Buffering BIOs implement |
145 | .Xr BIO_gets 3 | 158 | .Xr BIO_gets 3 |
146 | by using | 159 | by using |
@@ -170,6 +183,32 @@ and | |||
170 | .Fn BIO_set_write_buffer_size | 183 | .Fn BIO_set_write_buffer_size |
171 | are called internally to automatically copy both buffer sizes from the | 184 | are called internally to automatically copy both buffer sizes from the |
172 | original BIO object to the new one. | 185 | original BIO object to the new one. |
186 | .Pp | ||
187 | .Xr BIO_ctrl 3 | ||
188 | .Fa cmd | ||
189 | arguments correspond to macros as follows: | ||
190 | .Bl -column BIO_C_GET_BUFF_NUM_LINES BIO_get_buffer_num_lines() -offset 3n | ||
191 | .It Fa cmd No constant Ta corresponding macro | ||
192 | .It Dv BIO_C_GET_BUFF_NUM_LINES Ta Fn BIO_get_buffer_num_lines | ||
193 | .It Dv BIO_C_SET_BUFF_READ_DATA Ta Fn BIO_set_buffer_read_data | ||
194 | .It Dv BIO_C_SET_BUFF_SIZE Ta Fn BIO_set_buffer_size | ||
195 | .El | ||
196 | .Pp | ||
197 | The | ||
198 | .Fa cmd | ||
199 | constant | ||
200 | .Dv BIO_C_SET_BUFF_SIZE | ||
201 | is special. | ||
202 | It is also used for | ||
203 | .Xr BIO_int_ctrl 3 | ||
204 | with the following | ||
205 | .Fa iarg | ||
206 | arguments: | ||
207 | .Bl -column BIO_C_SET_BUFF_SIZE iarg BIO_set_write_buffer_size() -offset 3n | ||
208 | .It Fa cmd No constant Ta Fa iarg Ta corresponding macro | ||
209 | .It Dv BIO_C_SET_BUFF_SIZE Ta 0 Ta Fn BIO_set_read_buffer_size | ||
210 | .It Ta 1 Ta Fn BIO_set_write_buffer_size | ||
211 | .El | ||
173 | .Sh RETURN VALUES | 212 | .Sh RETURN VALUES |
174 | .Fn BIO_f_buffer | 213 | .Fn BIO_f_buffer |
175 | returns the buffering BIO method. | 214 | returns the buffering BIO method. |