summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/man/BIO_printf.3
diff options
context:
space:
mode:
authortb <>2024-03-02 09:18:28 +0000
committertb <>2024-03-02 09:18:28 +0000
commit0ad809a3e5e65ac5128296f24014a9b037cbed24 (patch)
treea10ae269ac1b72561a9a6dc886dfb556d16c89ba /src/lib/libcrypto/man/BIO_printf.3
parentf827b9a95a19d381c8962caf97efb82ce0d90115 (diff)
downloadopenbsd-0ad809a3e5e65ac5128296f24014a9b037cbed24.tar.gz
openbsd-0ad809a3e5e65ac5128296f24014a9b037cbed24.tar.bz2
openbsd-0ad809a3e5e65ac5128296f24014a9b037cbed24.zip
Remove BIO_{sn,v,vsn}printf(3)
Unsued printing functionality. If something should need this we can readily add it back. ok jsing
Diffstat (limited to 'src/lib/libcrypto/man/BIO_printf.3')
-rw-r--r--src/lib/libcrypto/man/BIO_printf.359
1 files changed, 4 insertions, 55 deletions
diff --git a/src/lib/libcrypto/man/BIO_printf.3 b/src/lib/libcrypto/man/BIO_printf.3
index 838b771be7..32dec0a828 100644
--- a/src/lib/libcrypto/man/BIO_printf.3
+++ b/src/lib/libcrypto/man/BIO_printf.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: BIO_printf.3,v 1.3 2018/03/22 17:11:04 schwarze Exp $ 1.\" $OpenBSD: BIO_printf.3,v 1.4 2024/03/02 09:18:28 tb Exp $
2.\" OpenSSL 2ca2e917 Mon Mar 20 16:25:22 2017 -0400 2.\" OpenSSL 2ca2e917 Mon Mar 20 16:25:22 2017 -0400
3.\" 3.\"
4.\" Copyright (c) 2017 Ingo Schwarze <schwarze@openbsd.org> 4.\" Copyright (c) 2017 Ingo Schwarze <schwarze@openbsd.org>
@@ -15,14 +15,11 @@
15.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17.\" 17.\"
18.Dd $Mdocdate: March 22 2018 $ 18.Dd $Mdocdate: March 2 2024 $
19.Dt BIO_PRINTF 3 19.Dt BIO_PRINTF 3
20.Os 20.Os
21.Sh NAME 21.Sh NAME
22.Nm BIO_printf , 22.Nm BIO_printf
23.Nm BIO_vprintf ,
24.Nm BIO_snprintf ,
25.Nm BIO_vsnprintf
26.Nd formatted output to a BIO 23.Nd formatted output to a BIO
27.Sh SYNOPSIS 24.Sh SYNOPSIS
28.In openssl/bio.h 25.In openssl/bio.h
@@ -32,66 +29,18 @@
32.Fa "const char *format" 29.Fa "const char *format"
33.Fa ... 30.Fa ...
34.Fc 31.Fc
35.Ft int
36.Fo BIO_vprintf
37.Fa "BIO *bio"
38.Fa "const char *format"
39.Fa "va_list args"
40.Fc
41.Ft int
42.Fo BIO_snprintf
43.Fa "char *buf"
44.Fa "size_t n"
45.Fa "const char *format"
46.Fa ...
47.Fc
48.Ft int
49.Fo BIO_vsnprintf
50.Fa "char *buf"
51.Fa "size_t n"
52.Fa "const char *format"
53.Fa "va_list args"
54.Fc
55.Sh DESCRIPTION 32.Sh DESCRIPTION
56.Fn BIO_vprintf 33.Fn BIO_printf
57is a wrapper around 34is a wrapper around
58.Xr vfprintf 3 , 35.Xr vfprintf 3 ,
59sending the output to the specified 36sending the output to the specified
60.Fa bio . 37.Fa bio .
61.Pp
62.Fn BIO_printf
63is a wrapper around
64.Fn BIO_vprintf .
65.Pp
66.Fn BIO_snprintf
67and
68.Fn BIO_vsnprintf
69are wrappers around
70.Xr vsnprintf 3 .
71.Sh RETURN VALUES 38.Sh RETURN VALUES
72These functions return the number of bytes written, 39These functions return the number of bytes written,
73or -1 if an error occurs. 40or -1 if an error occurs.
74.Pp
75In contrast to
76.Xr snprintf 3
77and
78.Xr vsnprintf 3 ,
79.Fn BIO_snprintf
80and
81.Fn BIO_vsnprintf
82also return -1 if
83.Fa n
84is too small to hold the complete output.
85.Sh SEE ALSO 41.Sh SEE ALSO
86.Xr BIO_new 3 42.Xr BIO_new 3
87.Sh HISTORY 43.Sh HISTORY
88.Fn BIO_printf 44.Fn BIO_printf
89first appeared in SSLeay 0.6.5 and has been available since 45first appeared in SSLeay 0.6.5 and has been available since
90.Ox 2.4 . 46.Ox 2.4 .
91.Pp
92.Fn BIO_vprintf ,
93.Fn BIO_snprintf ,
94and
95.Fn BIO_vsnprintf
96first appeared in OpenSSL 0.9.6 and have been available since
97.Ox 2.9 .