From b089cf41bb071592f67fd59e766d15914529bee5 Mon Sep 17 00:00:00 2001 From: tb Date: Sat, 16 May 2026 06:15:22 +0000 Subject: [PATCH] BIO_dump: Xr BIO_printf rather than BIO_write/fwrite Prompted by a report by N. Dossche ok kenjiro --- lib/libcrypto/man/BIO_dump.3 | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/libcrypto/man/BIO_dump.3 b/lib/libcrypto/man/BIO_dump.3 index 2c06c8cc9ce..30020dfd262 100644 --- a/lib/libcrypto/man/BIO_dump.3 +++ b/lib/libcrypto/man/BIO_dump.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: BIO_dump.3,v 1.6 2025/06/08 22:40:29 schwarze Exp $ +.\" $OpenBSD: BIO_dump.3,v 1.7 2026/05/16 06:15:22 tb Exp $ .\" .\" Copyright (c) 2021 Ingo Schwarze .\" @@ -14,7 +14,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: June 8 2025 $ +.Dd $Mdocdate: May 16 2026 $ .Dt BIO_DUMP 3 .Os .Sh NAME @@ -77,16 +77,14 @@ is 7 or more, the number of data columns is reduced such that the total width of the output does not exceed 79 characters per line. .Sh RETURN VALUES On success these functions return the total number of bytes written by -.Xr BIO_write 3 -or -.Xr fwrite 3 . +.Xr BIO_printf 3 . If a failure occurs at any point when writing, these functions will stop after having potentially written out partial results, and return -1. .Sh SEE ALSO .Xr hexdump 1 , .Xr BIO_new 3 , -.Xr BIO_write 3 +.Xr BIO_printf 3 .Sh HISTORY .Fn BIO_dump first appeared in SSLeay 0.6.5 and has been available since