diff options
Diffstat (limited to 'src/lib/libcrypto/man')
| -rw-r--r-- | src/lib/libcrypto/man/BIO_ctrl.3 | 18 | ||||
| -rw-r--r-- | src/lib/libcrypto/man/BIO_f_buffer.3 | 53 | ||||
| -rw-r--r-- | src/lib/libcrypto/man/BIO_s_accept.3 | 47 | ||||
| -rw-r--r-- | src/lib/libcrypto/man/BIO_s_connect.3 | 32 | ||||
| -rw-r--r-- | src/lib/libcrypto/man/BIO_s_file.3 | 49 | 
5 files changed, 162 insertions, 37 deletions
| diff --git a/src/lib/libcrypto/man/BIO_ctrl.3 b/src/lib/libcrypto/man/BIO_ctrl.3 index 845e2fa147..08aae941ad 100644 --- a/src/lib/libcrypto/man/BIO_ctrl.3 +++ b/src/lib/libcrypto/man/BIO_ctrl.3 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | .\" $OpenBSD: BIO_ctrl.3,v 1.19 2023/04/25 15:59:45 schwarze Exp $ | 1 | .\" $OpenBSD: BIO_ctrl.3,v 1.20 2023/04/26 15:03:02 schwarze Exp $ | 
| 2 | .\" full merge up to: OpenSSL 24a535eaf Tue Sep 22 13:14:20 2020 +0100 | 2 | .\" full merge up to: OpenSSL 24a535eaf Tue Sep 22 13:14:20 2020 +0100 | 
| 3 | .\" selective merge up to: OpenSSL 0c5bc96f Tue Mar 15 13:57:22 2022 +0000 | 3 | .\" selective merge up to: OpenSSL 0c5bc96f Tue Mar 15 13:57:22 2022 +0000 | 
| 4 | .\" | 4 | .\" | 
| @@ -66,7 +66,7 @@ | |||
| 66 | .\" 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 | 
| 67 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 67 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 
| 68 | .\" | 68 | .\" | 
| 69 | .Dd $Mdocdate: April 25 2023 $ | 69 | .Dd $Mdocdate: April 26 2023 $ | 
| 70 | .Dt BIO_CTRL 3 | 70 | .Dt BIO_CTRL 3 | 
| 71 | .Os | 71 | .Os | 
| 72 | .Sh NAME | 72 | .Sh NAME | 
| @@ -354,6 +354,7 @@ The following | |||
| 354 | .Fa cmd | 354 | .Fa cmd | 
| 355 | constants correspond to macros: | 355 | constants correspond to macros: | 
| 356 | .Bl -column BIO_C_SET_SSL_RENEGOTIATE_TIMEOUT BIO_set_ssl_renegotiate_timeout(3) | 356 | .Bl -column BIO_C_SET_SSL_RENEGOTIATE_TIMEOUT BIO_set_ssl_renegotiate_timeout(3) | 
| 357 | .It Fa cmd No constant Ta corresponding macro | ||
| 357 | .It Dv BIO_C_DESTROY_BIO_PAIR Ta Xr BIO_destroy_bio_pair 3 | 358 | .It Dv BIO_C_DESTROY_BIO_PAIR Ta Xr BIO_destroy_bio_pair 3 | 
| 358 | .It Dv BIO_C_DO_STATE_MACHINE Ta Xr BIO_do_handshake 3 | 359 | .It Dv BIO_C_DO_STATE_MACHINE Ta Xr BIO_do_handshake 3 | 
| 359 | .It Dv BIO_C_FILE_SEEK Ta Fn BIO_seek | 360 | .It Dv BIO_C_FILE_SEEK Ta Fn BIO_seek | 
| @@ -407,6 +408,19 @@ constants correspond to macros: | |||
| 407 | .It Dv BIO_CTRL_SET_CLOSE Ta Fn BIO_set_close | 408 | .It Dv BIO_CTRL_SET_CLOSE Ta Fn BIO_set_close | 
| 408 | .It Dv BIO_CTRL_WPENDING Ta Fn BIO_wpending | 409 | .It Dv BIO_CTRL_WPENDING Ta Fn BIO_wpending | 
| 409 | .El | 410 | .El | 
| 411 | .Pp | ||
| 412 | Some | ||
| 413 | .Fa cmd | ||
| 414 | constants serve more than one macro each | ||
| 415 | and are documented in the following manual pages: | ||
| 416 | .Bl -column BIO_C_SET_BUFF_SIZE BIO_s_connect(3) -offset 3n | ||
| 417 | .It Fa cmd No constant Ta manual page | ||
| 418 | .It Dv BIO_C_GET_CONNECT Ta Xr BIO_s_connect 3 | ||
| 419 | .It Dv BIO_C_SET_ACCEPT Ta Xr BIO_s_accept 3 | ||
| 420 | .It Dv BIO_C_SET_BUFF_SIZE Ta Xr BIO_f_buffer 3 | ||
| 421 | .It Dv BIO_C_SET_CONNECT Ta Xr BIO_s_connect 3 | ||
| 422 | .It Dv BIO_C_SET_FILENAME Ta Xr BIO_s_file 3 | ||
| 423 | .El | ||
| 410 | .Sh RETURN VALUES | 424 | .Sh RETURN VALUES | 
| 411 | The meaning of the return values of | 425 | The meaning of the return values of | 
| 412 | .Fn BIO_ctrl , | 426 | .Fn BIO_ctrl , | 
| 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. | 
| diff --git a/src/lib/libcrypto/man/BIO_s_accept.3 b/src/lib/libcrypto/man/BIO_s_accept.3 index ffbcccc796..8a60eeda0a 100644 --- a/src/lib/libcrypto/man/BIO_s_accept.3 +++ b/src/lib/libcrypto/man/BIO_s_accept.3 | |||
| @@ -1,7 +1,24 @@ | |||
| 1 | .\" $OpenBSD: BIO_s_accept.3,v 1.14 2023/04/11 16:58:43 schwarze Exp $ | 1 | .\" $OpenBSD: BIO_s_accept.3,v 1.15 2023/04/26 15:03:02 schwarze Exp $ | 
| 2 | .\" OpenSSL c03726ca Thu Aug 27 12:28:08 2015 -0400 | 2 | .\" full merge up to: OpenSSL c03726ca Thu Aug 27 12:28:08 2015 -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, 2014, 2015 The OpenSSL Project. All rights reserved. | 22 | .\" Copyright (c) 2000, 2014, 2015 The OpenSSL Project. All rights reserved. | 
| 6 | .\" | 23 | .\" | 
| 7 | .\" Redistribution and use in source and binary forms, with or without | 24 | .\" Redistribution and use in source and binary forms, with or without | 
| @@ -48,7 +65,7 @@ | |||
| 48 | .\" 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 | 
| 49 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 66 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 
| 50 | .\" | 67 | .\" | 
| 51 | .Dd $Mdocdate: April 11 2023 $ | 68 | .Dd $Mdocdate: April 26 2023 $ | 
| 52 | .Dt BIO_S_ACCEPT 3 | 69 | .Dt BIO_S_ACCEPT 3 | 
| 53 | .Os | 70 | .Os | 
| 54 | .Sh NAME | 71 | .Sh NAME | 
| @@ -271,15 +288,21 @@ would block: the application should take appropriate action | |||
| 271 | to wait until the underlying socket has accepted a connection | 288 | to wait until the underlying socket has accepted a connection | 
| 272 | and retry the call. | 289 | and retry the call. | 
| 273 | .Pp | 290 | .Pp | 
| 274 | .Fn BIO_set_accept_port , | 291 | .Xr BIO_ctrl 3 | 
| 275 | .Fn BIO_get_accept_port , | 292 | .Fa cmd | 
| 276 | .Fn BIO_set_nbio_accept , | ||
| 277 | .Fn BIO_set_accept_bios , | ||
| 278 | .Fn BIO_set_bind_mode , | ||
| 279 | .Fn BIO_get_bind_mode , | ||
| 280 | and | 293 | and | 
| 281 | .Fn BIO_do_accept | 294 | .Fa larg | 
| 282 | are macros. | 295 | arguments correspond to macros as follows: | 
| 296 | .Bl -column BIO_C_DO_STATE_MACHINE larg BIO_get_accept_port(3) -offset 3n | ||
| 297 | .It Fa cmd No constant Ta Fa larg Ta corresponding macro | ||
| 298 | .It Dv BIO_C_DO_STATE_MACHINE Ta 0 Ta Fn BIO_do_accept | ||
| 299 | .It Dv BIO_C_GET_ACCEPT Ta 0 Ta Fn BIO_get_accept_port | ||
| 300 | .It Dv BIO_C_GET_BIND_MODE Ta 0 Ta Fn BIO_get_bind_mode | ||
| 301 | .It Dv BIO_C_SET_ACCEPT Ta 0 Ta Fn BIO_set_accept_port | ||
| 302 | .It Ta 1 Ta Fn BIO_set_nbio_accept | ||
| 303 | .It Ta 2 Ta Fn BIO_set_accept_bios | ||
| 304 | .It Dv BIO_C_SET_BIND_MODE Ta Fa mode Ta Fn BIO_set_bind_mode | ||
| 305 | .El | ||
| 283 | .Sh RETURN VALUES | 306 | .Sh RETURN VALUES | 
| 284 | When called on an accept BIO object, | 307 | When called on an accept BIO object, | 
| 285 | .Xr BIO_method_type 3 | 308 | .Xr BIO_method_type 3 | 
| diff --git a/src/lib/libcrypto/man/BIO_s_connect.3 b/src/lib/libcrypto/man/BIO_s_connect.3 index 2b2783fc5c..54fb1fe09f 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.16 2023/04/11 16:58:43 schwarze Exp $ | 1 | .\" $OpenBSD: BIO_s_connect.3,v 1.17 2023/04/26 15:03:02 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 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: April 11 2023 $ | 68 | .Dd $Mdocdate: April 26 2023 $ | 
| 69 | .Dt BIO_S_CONNECT 3 | 69 | .Dt BIO_S_CONNECT 3 | 
| 70 | .Os | 70 | .Os | 
| 71 | .Sh NAME | 71 | .Sh NAME | 
| @@ -352,18 +352,24 @@ are called internally to automatically copy the hostname, port, | |||
| 352 | non-blocking I/O flag, and info callback from the original BIO object | 352 | non-blocking I/O flag, and info callback from the original BIO object | 
| 353 | to the new one. | 353 | to the new one. | 
| 354 | .Pp | 354 | .Pp | 
| 355 | .Fn BIO_set_conn_hostname , | 355 | .Xr BIO_ctrl 3 | 
| 356 | .Fn BIO_set_conn_port , | 356 | .Fa cmd | 
| 357 | .Fn BIO_set_conn_ip , | ||
| 358 | .Fn BIO_set_conn_int_port , | ||
| 359 | .Fn BIO_get_conn_hostname , | ||
| 360 | .Fn BIO_get_conn_port , | ||
| 361 | .Fn BIO_get_conn_ip , | ||
| 362 | .Fn BIO_get_conn_int_port , | ||
| 363 | .Fn BIO_set_nbio , | ||
| 364 | and | 357 | and | 
| 365 | .Fn BIO_do_connect | 358 | .Fa larg | 
| 366 | are macros. | 359 | arguments correspond to macros as follows: | 
| 360 | .Bl -column BIO_C_DO_STATE_MACHINE larg BIO_get_conn_hostname(3) -offset 3n | ||
| 361 | .It Fa cmd No constant Ta Fa larg Ta corresponding macro | ||
| 362 | .It Dv BIO_C_DO_STATE_MACHINE Ta 0 Ta Fn BIO_do_connect | ||
| 363 | .It Dv BIO_C_GET_CONNECT Ta 0 Ta Fn BIO_get_conn_hostname | ||
| 364 | .It Ta 1 Ta Fn BIO_get_conn_port | ||
| 365 | .It Ta 2 Ta Fn BIO_get_conn_ip | ||
| 366 | .It Ta 3 Ta Fn BIO_get_conn_int_port | ||
| 367 | .It Dv BIO_C_SET_CONNECT Ta 0 Ta Fn BIO_set_conn_hostname | ||
| 368 | .It Ta 1 Ta Fn BIO_set_conn_port | ||
| 369 | .It Ta 2 Ta Fn BIO_set_conn_ip | ||
| 370 | .It Ta 3 Ta Fn BIO_set_conn_int_port | ||
| 371 | .It Dv BIO_C_SET_NBIO Ta Fa n Ta Fn BIO_set_nbio | ||
| 372 | .El | ||
| 367 | .Sh RETURN VALUES | 373 | .Sh RETURN VALUES | 
| 368 | .Fn BIO_s_connect | 374 | .Fn BIO_s_connect | 
| 369 | returns the connect BIO method. | 375 | returns the connect BIO method. | 
| diff --git a/src/lib/libcrypto/man/BIO_s_file.3 b/src/lib/libcrypto/man/BIO_s_file.3 index 9f82ba5b80..884412cb02 100644 --- a/src/lib/libcrypto/man/BIO_s_file.3 +++ b/src/lib/libcrypto/man/BIO_s_file.3 | |||
| @@ -1,8 +1,25 @@ | |||
| 1 | .\" $OpenBSD: BIO_s_file.3,v 1.12 2023/04/11 16:58:43 schwarze Exp $ | 1 | .\" $OpenBSD: BIO_s_file.3,v 1.13 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 | .\" selective merge up to: OpenSSL 1212818e Sep 11 13:22:14 2018 +0100 | 3 | .\" selective merge up to: OpenSSL 1212818e Sep 11 13:22:14 2018 +0100 | 
| 4 | .\" | 4 | .\" | 
| 5 | .\" This file was written by Dr. Stephen Henson <steve@openssl.org>. | 5 | .\" This file is a derived work. | 
| 6 | .\" The changes are covered by the following Copyright and license: | ||
| 7 | .\" | ||
| 8 | .\" Copyright (c) 2023 Ingo Schwarze <schwarze@openbsd.org> | ||
| 9 | .\" | ||
| 10 | .\" Permission to use, copy, modify, and distribute this software for any | ||
| 11 | .\" purpose with or without fee is hereby granted, provided that the above | ||
| 12 | .\" copyright notice and this permission notice appear in all copies. | ||
| 13 | .\" | ||
| 14 | .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
| 15 | .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
| 16 | .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
| 17 | .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
| 18 | .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
| 19 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
| 20 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
| 21 | .\" | ||
| 22 | .\" The original file was written by Dr. Stephen Henson <steve@openssl.org>. | ||
| 6 | .\" Copyright (c) 2000, 2010 The OpenSSL Project. All rights reserved. | 23 | .\" Copyright (c) 2000, 2010 The OpenSSL Project. All rights reserved. | 
| 7 | .\" | 24 | .\" | 
| 8 | .\" Redistribution and use in source and binary forms, with or without | 25 | .\" Redistribution and use in source and binary forms, with or without | 
| @@ -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_S_FILE 3 | 70 | .Dt BIO_S_FILE 3 | 
| 54 | .Os | 71 | .Os | 
| 55 | .Sh NAME | 72 | .Sh NAME | 
| @@ -216,6 +233,32 @@ On Windows, | |||
| 216 | reserves for the filename argument to be UTF-8 encoded. | 233 | reserves for the filename argument to be UTF-8 encoded. | 
| 217 | In other words, if you have to make it work in a multi-lingual | 234 | In other words, if you have to make it work in a multi-lingual | 
| 218 | environment, encode file names in UTF-8. | 235 | environment, encode file names in UTF-8. | 
| 236 | .Pp | ||
| 237 | The following | ||
| 238 | .Xr BIO_ctrl 3 | ||
| 239 | .Fa cmd | ||
| 240 | constants correspond to macros: | ||
| 241 | .Bl -column BIO_C_GET_FILE_PTR "corresponding macro" -offset 3n | ||
| 242 | .It Fa cmd No constant Ta corresponding macro | ||
| 243 | .It Dv BIO_C_GET_FILE_PTR Ta Fn BIO_get_fp | ||
| 244 | .It Dv BIO_C_SET_FILE_PTR Ta Fn BIO_set_fp | ||
| 245 | .It Dv BIO_C_SET_FILENAME Ta various, see below | ||
| 246 | .El | ||
| 247 | .Pp | ||
| 248 | The meaning of | ||
| 249 | .Dv BIO_C_SET_FILENAME | ||
| 250 | depends on the flags passed in the | ||
| 251 | .Xr BIO_ctrl 3 | ||
| 252 | .Fa larg | ||
| 253 | argument: | ||
| 254 | .Bl -column "BIO_CLOSE | BIO_FP_READ | BIO_FP_WRITE" "BIO_append_filename()"\ | ||
| 255 | -offset 3n | ||
| 256 | .It Fa larg No argument Ta corresponding macro | ||
| 257 | .It Dv BIO_CLOSE | BIO_FP_READ Ta Fn BIO_read_filename | ||
| 258 | .It Dv BIO_CLOSE | BIO_FP_WRITE Ta Fn BIO_write_filename | ||
| 259 | .It Dv BIO_CLOSE | BIO_FP_APPEND Ta Fn BIO_append_filename | ||
| 260 | .It Dv BIO_CLOSE | BIO_FP_READ | BIO_FP_WRITE Ta Fn BIO_rw_filename | ||
| 261 | .El | ||
| 219 | .Sh RETURN VALUES | 262 | .Sh RETURN VALUES | 
| 220 | .Fn BIO_s_file | 263 | .Fn BIO_s_file | 
| 221 | returns the file BIO method. | 264 | returns the file BIO method. | 
