diff options
-rw-r--r-- | src/lib/libcrypto/man/BIO_s_fd.3 | 21 | ||||
-rw-r--r-- | src/lib/libcrypto/man/BIO_s_mem.3 | 21 |
2 files changed, 34 insertions, 8 deletions
diff --git a/src/lib/libcrypto/man/BIO_s_fd.3 b/src/lib/libcrypto/man/BIO_s_fd.3 index ee70c56a02..de5d5d7007 100644 --- a/src/lib/libcrypto/man/BIO_s_fd.3 +++ b/src/lib/libcrypto/man/BIO_s_fd.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: BIO_s_fd.3,v 1.11 2023/04/11 16:58:43 schwarze Exp $ | 1 | .\" $OpenBSD: BIO_s_fd.3,v 1.12 2023/04/29 12:04:54 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 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 29 2023 $ |
69 | .Dt BIO_S_FD 3 | 69 | .Dt BIO_S_FD 3 |
70 | .Os | 70 | .Os |
71 | .Sh NAME | 71 | .Sh NAME |
@@ -201,10 +201,19 @@ manual pages. | |||
201 | File descriptor BIOs should not be used for socket I/O. | 201 | File descriptor BIOs should not be used for socket I/O. |
202 | Use socket BIOs instead. | 202 | Use socket BIOs instead. |
203 | .Pp | 203 | .Pp |
204 | .Fn BIO_set_fd | 204 | .Xr BIO_ctrl 3 |
205 | and | 205 | .Fa cmd |
206 | .Fn BIO_get_fd | 206 | arguments correspond to macros as follows: |
207 | are implemented as macros. | 207 | .Bl -column BIO_CTRL_GET_CLOSE BIO_get_close(3) -offset 3n |
208 | .It Fa cmd No constant Ta corresponding macro | ||
209 | .It Dv BIO_C_FILE_SEEK Ta Xr BIO_seek 3 | ||
210 | .It Dv BIO_C_FILE_TELL Ta Xr BIO_tell 3 | ||
211 | .It Dv BIO_C_GET_FD Ta Fn BIO_get_fd | ||
212 | .It Dv BIO_C_SET_FD Ta Fn BIO_set_fd | ||
213 | .It Dv BIO_CTRL_GET_CLOSE Ta Xr BIO_get_close 3 | ||
214 | .It Dv BIO_CTRL_RESET Ta Xr BIO_reset 3 | ||
215 | .It Dv BIO_CTRL_SET_CLOSE Ta Xr BIO_set_close 3 | ||
216 | .El | ||
208 | .Sh RETURN VALUES | 217 | .Sh RETURN VALUES |
209 | .Fn BIO_s_fd | 218 | .Fn BIO_s_fd |
210 | returns the file descriptor BIO method. | 219 | returns the file descriptor BIO method. |
diff --git a/src/lib/libcrypto/man/BIO_s_mem.3 b/src/lib/libcrypto/man/BIO_s_mem.3 index 4592922444..475cd8869f 100644 --- a/src/lib/libcrypto/man/BIO_s_mem.3 +++ b/src/lib/libcrypto/man/BIO_s_mem.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: BIO_s_mem.3,v 1.17 2023/04/11 16:58:43 schwarze Exp $ | 1 | .\" $OpenBSD: BIO_s_mem.3,v 1.18 2023/04/29 12:04:54 schwarze Exp $ |
2 | .\" full merge up to: OpenSSL 8711efb4 Mon Apr 20 11:33:12 2009 +0000 | 2 | .\" full merge up to: OpenSSL 8711efb4 Mon Apr 20 11:33:12 2009 +0000 |
3 | .\" selective merge up to: OpenSSL 36359cec Mar 7 14:37:23 2018 +0100 | 3 | .\" selective merge up to: OpenSSL 36359cec Mar 7 14:37:23 2018 +0100 |
4 | .\" | 4 | .\" |
@@ -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: April 11 2023 $ | 52 | .Dd $Mdocdate: April 29 2023 $ |
53 | .Dt BIO_S_MEM 3 | 53 | .Dt BIO_S_MEM 3 |
54 | .Os | 54 | .Os |
55 | .Sh NAME | 55 | .Sh NAME |
@@ -203,6 +203,23 @@ until the BIO is freed. | |||
203 | .Pp | 203 | .Pp |
204 | Writes to memory BIOs will always succeed if memory is available: | 204 | Writes to memory BIOs will always succeed if memory is available: |
205 | their size can grow indefinitely. | 205 | their size can grow indefinitely. |
206 | .Pp | ||
207 | .Xr BIO_ctrl 3 | ||
208 | .Fa cmd | ||
209 | arguments correspond to macros as follows: | ||
210 | .Bl -column BIO_C_SET_BUF_MEM_EOF_RETURN BIO_set_mem_eof_return() -offset 3n | ||
211 | .It Fa cmd No constant Ta corresponding macro | ||
212 | .It Dv BIO_C_GET_BUF_MEM_PTR Ta Fn BIO_get_mem_ptr | ||
213 | .It Dv BIO_C_SET_BUF_MEM Ta Fn BIO_set_mem_buf | ||
214 | .It Dv BIO_C_SET_BUF_MEM_EOF_RETURN Ta Fn BIO_set_mem_eof_return | ||
215 | .It Dv BIO_CTRL_EOF Ta Xr BIO_eof 3 | ||
216 | .It Dv BIO_CTRL_GET_CLOSE Ta Xr BIO_get_close 3 | ||
217 | .It Dv BIO_CTRL_INFO Ta Fn BIO_get_mem_data | ||
218 | .It Dv BIO_CTRL_PENDING Ta Xr BIO_pending 3 | ||
219 | .It Dv BIO_CTRL_RESET Ta Xr BIO_reset 3 | ||
220 | .It Dv BIO_CTRL_SET_CLOSE Ta Xr BIO_set_close 3 | ||
221 | .It Dv BIO_CTRL_WPENDING Ta Xr BIO_wpending 3 | ||
222 | .El | ||
206 | .Sh RETURN VALUES | 223 | .Sh RETURN VALUES |
207 | .Fn BIO_s_mem | 224 | .Fn BIO_s_mem |
208 | returns a pointer to a static object. | 225 | returns a pointer to a static object. |