diff options
Diffstat (limited to 'src/lib/libcrypto/man/ASN1_buf_print.3')
-rw-r--r-- | src/lib/libcrypto/man/ASN1_buf_print.3 | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/src/lib/libcrypto/man/ASN1_buf_print.3 b/src/lib/libcrypto/man/ASN1_buf_print.3 deleted file mode 100644 index 67b39bea70..0000000000 --- a/src/lib/libcrypto/man/ASN1_buf_print.3 +++ /dev/null | |||
@@ -1,69 +0,0 @@ | |||
1 | .\" $OpenBSD: ASN1_buf_print.3,v 1.2 2023/07/09 06:45:03 tb Exp $ | ||
2 | .\" | ||
3 | .\" Copyright (c) 2022 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: July 9 2023 $ | ||
18 | .Dt ASN1_BUF_PRINT 3 | ||
19 | .Os | ||
20 | .Sh NAME | ||
21 | .Nm ASN1_buf_print | ||
22 | .Nd pretty-print a byte array | ||
23 | .Sh SYNOPSIS | ||
24 | .In openssl/asn1.h | ||
25 | .Ft int | ||
26 | .Fo ASN1_buf_print | ||
27 | .Fa "BIO *bio_out" | ||
28 | .Fa "const unsigned char *buf" | ||
29 | .Fa "size_t buflen" | ||
30 | .Fa "int indent" | ||
31 | .Fc | ||
32 | .Sh DESCRIPTION | ||
33 | .Fn ASN1_buf_print | ||
34 | prints a hexadecimal representation of the first | ||
35 | .Fa buflen | ||
36 | bytes from | ||
37 | .Fa buf | ||
38 | to | ||
39 | .Fa bio_out . | ||
40 | Despite its name and the header file, | ||
41 | this function has nothing to do with ASN.1. | ||
42 | .Pp | ||
43 | Each byte from | ||
44 | .Fa buf | ||
45 | is represented by two lower-case hexadecimal digits. | ||
46 | Fifteen pairs of digits are printed per output line, | ||
47 | or at most fifteen on the last output line. | ||
48 | Every output line including the last one ends with a newline character. | ||
49 | Every pair except the last is followed by a colon | ||
50 | .Pq Sq \&: . | ||
51 | If | ||
52 | .Fa indent | ||
53 | is greater than zero, | ||
54 | every output line is indented by | ||
55 | .Fa indent | ||
56 | space characters, but not by more than 64 characters. | ||
57 | .Sh RETURN VALUES | ||
58 | .Fn ASN1_buf_print | ||
59 | returns 1 if successful or 0 if printing fails. | ||
60 | .Sh SEE ALSO | ||
61 | .Xr ASN1_item_print 3 , | ||
62 | .Xr ASN1_STRING_print_ex 3 , | ||
63 | .Xr ASN1_TIME_print 3 , | ||
64 | .Xr BIO_new 3 , | ||
65 | .Xr BIO_write 3 | ||
66 | .Sh HISTORY | ||
67 | .Fn ASN1_buf_print | ||
68 | first appeared in OpenSSL 1.1.0 and has been available since | ||
69 | .Ox 7.3 . | ||