diff options
| author | tb <> | 2026-03-10 05:50:11 +0000 |
|---|---|---|
| committer | tb <> | 2026-03-10 05:50:11 +0000 |
| commit | bacb84818745f09c40699821c03ba8a247b2bbac (patch) | |
| tree | 47648be8a534d87b03b7fa49ead9955022b679b3 /src/lib/libcrypto | |
| parent | 81f9804b6e846ae3679bbb8c6bb3aee2a1dc70ea (diff) | |
| download | openbsd-bacb84818745f09c40699821c03ba8a247b2bbac.tar.gz openbsd-bacb84818745f09c40699821c03ba8a247b2bbac.tar.bz2 openbsd-bacb84818745f09c40699821c03ba8a247b2bbac.zip | |
Fix BIO_get_mem_data(3) return value documentation
pointed out by/ok dlg
Diffstat (limited to 'src/lib/libcrypto')
| -rw-r--r-- | src/lib/libcrypto/man/BIO_s_mem.3 | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/src/lib/libcrypto/man/BIO_s_mem.3 b/src/lib/libcrypto/man/BIO_s_mem.3 index e43be66e2f..61b9a9c70f 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.20 2025/06/08 22:40:29 schwarze Exp $ | 1 | .\" $OpenBSD: BIO_s_mem.3,v 1.21 2026/03/10 05:50:11 tb 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: June 8 2025 $ | 52 | .Dd $Mdocdate: March 10 2026 $ |
| 53 | .Dt BIO_S_MEM 3 | 53 | .Dt BIO_S_MEM 3 |
| 54 | .Os | 54 | .Os |
| 55 | .Sh NAME | 55 | .Sh NAME |
| @@ -231,12 +231,27 @@ returns a pointer to the static string | |||
| 231 | .Qq memory buffer . | 231 | .Qq memory buffer . |
| 232 | .Pp | 232 | .Pp |
| 233 | .Fn BIO_set_mem_eof_return , | 233 | .Fn BIO_set_mem_eof_return , |
| 234 | .Fn BIO_get_mem_data , | ||
| 235 | .Fn BIO_set_mem_buf , | 234 | .Fn BIO_set_mem_buf , |
| 236 | and | 235 | and |
| 237 | .Fn BIO_get_mem_ptr | 236 | .Fn BIO_get_mem_ptr |
| 238 | return 1 on success or a value less than or equal to 0 if an error occurred. | 237 | return 1 on success or a value less than or equal to 0 if an error occurred. |
| 239 | .Pp | 238 | .Pp |
| 239 | .Fn BIO_get_mem_data | ||
| 240 | returns the number of bytes available for reading at | ||
| 241 | .Pf * Fa ptr | ||
| 242 | on success, or a value less than or equal to zero if an error occurs. | ||
| 243 | Error conditions include that | ||
| 244 | .Fa b | ||
| 245 | is | ||
| 246 | .Dv NULL , | ||
| 247 | no data is available, or any error of | ||
| 248 | .Xr BIO_ctrl 3 , | ||
| 249 | including error returns of a callback called with a | ||
| 250 | .Dv BIO_CB_CTRL | ||
| 251 | or | ||
| 252 | .Dv BIO_CB_CTRL Ns | Ns BIO_CB_RETURN | ||
| 253 | operation. | ||
| 254 | .Pp | ||
| 240 | .Fn BIO_new_mem_buf | 255 | .Fn BIO_new_mem_buf |
| 241 | returns a newly allocated | 256 | returns a newly allocated |
| 242 | .Vt BIO | 257 | .Vt BIO |
