summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2023-07-09 06:45:03 +0000
committertb <>2023-07-09 06:45:03 +0000
commitd60f779e992e9b626b5ae2a98853e37e9b2ae139 (patch)
tree825803f9324737b24bb1fa31109c2319f4fc0e80 /src
parentf26c7fe6de7994ad9f1e3d38f7b1e03247ccdc7e (diff)
downloadopenbsd-d60f779e992e9b626b5ae2a98853e37e9b2ae139.tar.gz
openbsd-d60f779e992e9b626b5ae2a98853e37e9b2ae139.tar.bz2
openbsd-d60f779e992e9b626b5ae2a98853e37e9b2ae139.zip
ASN1_bn_print() will be removed soon. Remove docs.
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/man/ASN1_bn_print.3119
-rw-r--r--src/lib/libcrypto/man/ASN1_buf_print.35
-rw-r--r--src/lib/libcrypto/man/BN_bn2bin.35
-rw-r--r--src/lib/libcrypto/man/BN_new.35
-rw-r--r--src/lib/libcrypto/man/Makefile3
5 files changed, 7 insertions, 130 deletions
diff --git a/src/lib/libcrypto/man/ASN1_bn_print.3 b/src/lib/libcrypto/man/ASN1_bn_print.3
deleted file mode 100644
index 45e5721196..0000000000
--- a/src/lib/libcrypto/man/ASN1_bn_print.3
+++ /dev/null
@@ -1,119 +0,0 @@
1.\" $OpenBSD: ASN1_bn_print.3,v 1.2 2022/12/14 20:27:28 schwarze Exp $
2.\"
3.\" Copyright (c) 2021 Ingo Schwarze <schwarze@openbsd.org>
4.\"
5.\" Permission to use, copy, modify, and distribute this software for any
6.\" purpose with or without fee is hereby granted, provided that the above
7.\" copyright notice and this permission notice appear in all copies.
8.\"
9.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16.\"
17.Dd $Mdocdate: December 14 2022 $
18.Dt ASN1_BN_PRINT 3
19.Os
20.Sh NAME
21.Nm ASN1_bn_print
22.Nd pretty-print a BIGNUM object
23.Sh SYNOPSIS
24.In openssl/asn1.h
25.Ft int
26.Fo ASN1_bn_print
27.Fa "BIO *bio_out"
28.Fa "const char *label"
29.Fa "const BIGNUM *bn"
30.Fa "unsigned char *buffer"
31.Fa "int indent"
32.Fc
33.Sh DESCRIPTION
34.Fn ASN1_bn_print
35prints
36.Fa bn
37to
38.Fa bio_out
39in human-readable form.
40Despite its name and the header file,
41this function has nothing to do with ASN.1.
42.Pp
43The caller is responsible for providing a
44.Fa buffer
45that is at least
46.Fn BN_num_bytes bn
47+ 1 bytes long.
48To avoid a buffer overrun, be careful to not forget the
49.Dq plus one .
50It is unspecified what the buffer may contain after the function returns.
51.Pp
52If
53.Fa indent
54is greater than zero,
55.Fa indent
56space characters are printed first, but not more than 128.
57.Pp
58The NUL-terminated
59.Fa label
60is printed next.
61.Pp
62After that, there are three cases:
63.Bl -bullet
64.It
65If
66.Fa bn
67represents the number zero,
68.Qq 0
69is printed.
70.It
71If
72.Fa bn
73can be represented by the data type
74.Vt unsigned long ,
75it is printed in decimal notation,
76followed by hexadecimal notation in parentheses,
77both optionally preceded by a minus sign.
78.It
79Otherwise, the string
80.Qq Pq Negative
81is printed if appropriate, a new output line is started,
82and the indentation is increased by four space characters.
83The bytes of the value of
84.Fa bn
85are then printed in big-endian order, each byte represented
86by a two-digit hexadecimal number,
87and each but the last byte followed by a colon.
88A new output line is started after every group of 15 bytes.
89.El
90.Pp
91Finally, a newline character is printed to end the output.
92.Pp
93If
94.Fa bn
95is a
96.Dv NULL
97pointer, all arguments are ignored and nothing is printed.
98.Sh RETURN VALUES
99.Fn ASN1_bn_print
100returns 1
101if successful or if
102.Fa bn
103is a
104.Dv NULL
105pointer.
106It returns 0 if printing fails.
107.Sh SEE ALSO
108.Xr ASN1_buf_print 3 ,
109.Xr BIO_new 3 ,
110.Xr BIO_write 3 ,
111.Xr BN_is_negative 3 ,
112.Xr BN_is_zero 3 ,
113.Xr BN_new 3 ,
114.Xr BN_num_bytes 3 ,
115.Xr BN_print 3
116.Sh HISTORY
117.Fn ASN1_bn_print
118first appeared in OpenSSL 1.0.0 and has been available since
119.Ox 4.9 .
diff --git a/src/lib/libcrypto/man/ASN1_buf_print.3 b/src/lib/libcrypto/man/ASN1_buf_print.3
index 12ee84adac..67b39bea70 100644
--- a/src/lib/libcrypto/man/ASN1_buf_print.3
+++ b/src/lib/libcrypto/man/ASN1_buf_print.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: ASN1_buf_print.3,v 1.1 2022/12/14 20:27:28 schwarze Exp $ 1.\" $OpenBSD: ASN1_buf_print.3,v 1.2 2023/07/09 06:45:03 tb Exp $
2.\" 2.\"
3.\" Copyright (c) 2022 Ingo Schwarze <schwarze@openbsd.org> 3.\" Copyright (c) 2022 Ingo Schwarze <schwarze@openbsd.org>
4.\" 4.\"
@@ -14,7 +14,7 @@
14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16.\" 16.\"
17.Dd $Mdocdate: December 14 2022 $ 17.Dd $Mdocdate: July 9 2023 $
18.Dt ASN1_BUF_PRINT 3 18.Dt ASN1_BUF_PRINT 3
19.Os 19.Os
20.Sh NAME 20.Sh NAME
@@ -58,7 +58,6 @@ space characters, but not by more than 64 characters.
58.Fn ASN1_buf_print 58.Fn ASN1_buf_print
59returns 1 if successful or 0 if printing fails. 59returns 1 if successful or 0 if printing fails.
60.Sh SEE ALSO 60.Sh SEE ALSO
61.Xr ASN1_bn_print 3 ,
62.Xr ASN1_item_print 3 , 61.Xr ASN1_item_print 3 ,
63.Xr ASN1_STRING_print_ex 3 , 62.Xr ASN1_STRING_print_ex 3 ,
64.Xr ASN1_TIME_print 3 , 63.Xr ASN1_TIME_print 3 ,
diff --git a/src/lib/libcrypto/man/BN_bn2bin.3 b/src/lib/libcrypto/man/BN_bn2bin.3
index ec69909d9d..0fe9a90738 100644
--- a/src/lib/libcrypto/man/BN_bn2bin.3
+++ b/src/lib/libcrypto/man/BN_bn2bin.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: BN_bn2bin.3,v 1.15 2021/12/08 21:52:29 schwarze Exp $ 1.\" $OpenBSD: BN_bn2bin.3,v 1.16 2023/07/09 06:45:03 tb Exp $
2.\" full merge up to: OpenSSL 24a535ea Sep 22 13:14:20 2020 +0100 2.\" full merge up to: OpenSSL 24a535ea Sep 22 13:14:20 2020 +0100
3.\" 3.\"
4.\" This file was written by Ulf Moeller <ulf@openssl.org> 4.\" This file was written by Ulf Moeller <ulf@openssl.org>
@@ -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: December 8 2021 $ 52.Dd $Mdocdate: July 9 2023 $
53.Dt BN_BN2BIN 3 53.Dt BN_BN2BIN 3
54.Os 54.Os
55.Sh NAME 55.Sh NAME
@@ -353,7 +353,6 @@ on error.
353The error codes can be obtained by 353The error codes can be obtained by
354.Xr ERR_get_error 3 . 354.Xr ERR_get_error 3 .
355.Sh SEE ALSO 355.Sh SEE ALSO
356.Xr ASN1_bn_print 3 ,
357.Xr ASN1_INTEGER_to_BN 3 , 356.Xr ASN1_INTEGER_to_BN 3 ,
358.Xr BN_new 3 , 357.Xr BN_new 3 ,
359.Xr BN_num_bytes 3 , 358.Xr BN_num_bytes 3 ,
diff --git a/src/lib/libcrypto/man/BN_new.3 b/src/lib/libcrypto/man/BN_new.3
index bef41a9fe2..3a3e98379f 100644
--- a/src/lib/libcrypto/man/BN_new.3
+++ b/src/lib/libcrypto/man/BN_new.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: BN_new.3,v 1.27 2023/04/28 16:39:19 schwarze Exp $ 1.\" $OpenBSD: BN_new.3,v 1.28 2023/07/09 06:45:03 tb Exp $
2.\" full merge up to: OpenSSL man3/BN_new 2457c19d Mar 6 08:43:36 2004 +0000 2.\" full merge up to: OpenSSL man3/BN_new 2457c19d Mar 6 08:43:36 2004 +0000
3.\" selective merge up to: man3/BN_new 681acb31 Sep 29 13:10:34 2017 +0200 3.\" selective merge up to: man3/BN_new 681acb31 Sep 29 13:10:34 2017 +0200
4.\" full merge up to: OpenSSL man7/bn 05ea606a May 20 20:52:46 2016 -0400 4.\" full merge up to: OpenSSL man7/bn 05ea606a May 20 20:52:46 2016 -0400
@@ -50,7 +50,7 @@
50.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 50.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
51.\" OF THE POSSIBILITY OF SUCH DAMAGE. 51.\" OF THE POSSIBILITY OF SUCH DAMAGE.
52.\" 52.\"
53.Dd $Mdocdate: April 28 2023 $ 53.Dd $Mdocdate: July 9 2023 $
54.Dt BN_NEW 3 54.Dt BN_NEW 3
55.Os 55.Os
56.Sh NAME 56.Sh NAME
@@ -133,7 +133,6 @@ If the allocation fails, it returns
133and sets an error code that can be obtained by 133and sets an error code that can be obtained by
134.Xr ERR_get_error 3 . 134.Xr ERR_get_error 3 .
135.Sh SEE ALSO 135.Sh SEE ALSO
136.Xr ASN1_bn_print 3 ,
137.Xr BN_add 3 , 136.Xr BN_add 3 ,
138.Xr BN_add_word 3 , 137.Xr BN_add_word 3 ,
139.Xr BN_BLINDING_new 3 , 138.Xr BN_BLINDING_new 3 ,
diff --git a/src/lib/libcrypto/man/Makefile b/src/lib/libcrypto/man/Makefile
index 3da30a51e5..00ac9f4485 100644
--- a/src/lib/libcrypto/man/Makefile
+++ b/src/lib/libcrypto/man/Makefile
@@ -1,4 +1,4 @@
1# $OpenBSD: Makefile,v 1.252 2023/07/08 20:13:13 tb Exp $ 1# $OpenBSD: Makefile,v 1.253 2023/07/09 06:45:03 tb Exp $
2 2
3.include <bsd.own.mk> 3.include <bsd.own.mk>
4 4
@@ -18,7 +18,6 @@ MAN= \
18 ASN1_TIME_set.3 \ 18 ASN1_TIME_set.3 \
19 ASN1_TYPE_get.3 \ 19 ASN1_TYPE_get.3 \
20 ASN1_UNIVERSALSTRING_to_string.3 \ 20 ASN1_UNIVERSALSTRING_to_string.3 \
21 ASN1_bn_print.3 \
22 ASN1_buf_print.3 \ 21 ASN1_buf_print.3 \
23 ASN1_generate_nconf.3 \ 22 ASN1_generate_nconf.3 \
24 ASN1_get_object.3 \ 23 ASN1_get_object.3 \