diff options
Diffstat (limited to 'src/lib/libcrypto/man/X509_signature_dump.3')
-rw-r--r-- | src/lib/libcrypto/man/X509_signature_dump.3 | 85 |
1 files changed, 0 insertions, 85 deletions
diff --git a/src/lib/libcrypto/man/X509_signature_dump.3 b/src/lib/libcrypto/man/X509_signature_dump.3 deleted file mode 100644 index 3333a615bf..0000000000 --- a/src/lib/libcrypto/man/X509_signature_dump.3 +++ /dev/null | |||
@@ -1,85 +0,0 @@ | |||
1 | .\" $OpenBSD: X509_signature_dump.3,v 1.3 2024/12/06 12:51:13 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 6 2024 $ | ||
18 | .Dt X509_SIGNATURE_DUMP 3 | ||
19 | .Os | ||
20 | .Sh NAME | ||
21 | .Nm X509_signature_dump , | ||
22 | .Nm X509_signature_print | ||
23 | .Nd pretty-print ASN.1 strings | ||
24 | .Sh SYNOPSIS | ||
25 | .In openssl/x509.h | ||
26 | .Ft int | ||
27 | .Fo X509_signature_dump | ||
28 | .Fa "BIO *bio" | ||
29 | .Fa "const ASN1_STRING *signature" | ||
30 | .Fa "int indent" | ||
31 | .Fc | ||
32 | .Ft int | ||
33 | .Fo X509_signature_print | ||
34 | .Fa "BIO *bio" | ||
35 | .Fa "const X509_ALGOR *algorithm" | ||
36 | .Fa "const ASN1_STRING *signature" | ||
37 | .Fc | ||
38 | .Sh DESCRIPTION | ||
39 | .Fn X509_signature_dump | ||
40 | writes the data bytes contained in the | ||
41 | .Fa signature | ||
42 | to | ||
43 | .Fa bio | ||
44 | in hexadecimal format with colons between bytes, | ||
45 | 18 bytes per output line, each line indented with | ||
46 | .Fa indent | ||
47 | space characters. | ||
48 | .Pp | ||
49 | .Fn X509_signature_print | ||
50 | writes the name of the signature | ||
51 | .Fa algorithm , | ||
52 | or, if no name for it is known, its object identifier (OID) to | ||
53 | .Fa bio | ||
54 | using | ||
55 | .Xr i2a_ASN1_OBJECT 3 . | ||
56 | After that, if a method object for the algorithm can be retrieved with | ||
57 | .Xr EVP_PKEY_asn1_find 3 | ||
58 | and if that object defines a printing method, that printing method is | ||
59 | used to print the | ||
60 | .Fa signature . | ||
61 | Otherwise, unless the | ||
62 | .Fa signature | ||
63 | is | ||
64 | .Dv NULL , | ||
65 | it is printed using | ||
66 | .Fn X509_signature_dump . | ||
67 | .Sh RETURN VALUES | ||
68 | These functions return 1 on success or 0 on failure. | ||
69 | They fail and return as soon as any write operation fails. | ||
70 | .Sh SEE ALSO | ||
71 | .Xr ASN1_STRING_new 3 , | ||
72 | .Xr ASN1_STRING_print_ex 3 , | ||
73 | .Xr BIO_new 3 , | ||
74 | .Xr EVP_PKEY_asn1_find 3 , | ||
75 | .Xr OBJ_find_sigid_algs 3 , | ||
76 | .Xr X509_ALGOR_new 3 , | ||
77 | .Xr X509_get0_signature 3 | ||
78 | .Sh HISTORY | ||
79 | .Fn X509_signature_print | ||
80 | first appeared in OpenSSL 0.9.7 and has been available since | ||
81 | .Ox 3.2 . | ||
82 | .Pp | ||
83 | .Fn X509_signature_dump | ||
84 | first appeared in OpenSSL 1.0.1 and has been available since | ||
85 | .Ox 5.3 . | ||