summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorschwarze <>2021-07-19 13:16:43 +0000
committerschwarze <>2021-07-19 13:16:43 +0000
commit34477148ac32d0bae03ea07884b821cec8cc462a (patch)
tree92912c55de98cfcc5bcb442bdd83bffa3bd5f00f /src/lib
parent55a704a90e9e377c223d07834fbadb44be0ab0a2 (diff)
downloadopenbsd-34477148ac32d0bae03ea07884b821cec8cc462a.tar.gz
openbsd-34477148ac32d0bae03ea07884b821cec8cc462a.tar.bz2
openbsd-34477148ac32d0bae03ea07884b821cec8cc462a.zip
document X509_CRL_print(3) and X509_CRL_print_fp(3)
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/man/Makefile3
-rw-r--r--src/lib/libcrypto/man/X509_CRL_new.35
-rw-r--r--src/lib/libcrypto/man/X509_CRL_print.3113
-rw-r--r--src/lib/libcrypto/man/X509_REVOKED_new.35
-rw-r--r--src/lib/libcrypto/man/X509_print_ex.35
5 files changed, 124 insertions, 7 deletions
diff --git a/src/lib/libcrypto/man/Makefile b/src/lib/libcrypto/man/Makefile
index 7a1747f291..23a46ed318 100644
--- a/src/lib/libcrypto/man/Makefile
+++ b/src/lib/libcrypto/man/Makefile
@@ -1,4 +1,4 @@
1# $OpenBSD: Makefile,v 1.181 2021/07/12 15:56:54 schwarze Exp $ 1# $OpenBSD: Makefile,v 1.182 2021/07/19 13:16:43 schwarze Exp $
2 2
3.include <bsd.own.mk> 3.include <bsd.own.mk>
4 4
@@ -280,6 +280,7 @@ MAN= \
280 X509_CINF_new.3 \ 280 X509_CINF_new.3 \
281 X509_CRL_get0_by_serial.3 \ 281 X509_CRL_get0_by_serial.3 \
282 X509_CRL_new.3 \ 282 X509_CRL_new.3 \
283 X509_CRL_print.3 \
283 X509_EXTENSION_set_object.3 \ 284 X509_EXTENSION_set_object.3 \
284 X509_INFO_new.3 \ 285 X509_INFO_new.3 \
285 X509_LOOKUP_hash_dir.3 \ 286 X509_LOOKUP_hash_dir.3 \
diff --git a/src/lib/libcrypto/man/X509_CRL_new.3 b/src/lib/libcrypto/man/X509_CRL_new.3
index 1312469743..d6a43f1741 100644
--- a/src/lib/libcrypto/man/X509_CRL_new.3
+++ b/src/lib/libcrypto/man/X509_CRL_new.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: X509_CRL_new.3,v 1.10 2019/08/20 13:27:19 schwarze Exp $ 1.\" $OpenBSD: X509_CRL_new.3,v 1.11 2021/07/19 13:16:43 schwarze Exp $
2.\" 2.\"
3.\" Copyright (c) 2016, 2018 Ingo Schwarze <schwarze@openbsd.org> 3.\" Copyright (c) 2016, 2018 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: August 20 2019 $ 17.Dd $Mdocdate: July 19 2021 $
18.Dt X509_CRL_NEW 3 18.Dt X509_CRL_NEW 3
19.Os 19.Os
20.Sh NAME 20.Sh NAME
@@ -112,6 +112,7 @@ returns 1 on success or 0 on error.
112.Xr X509_CRL_get_issuer 3 , 112.Xr X509_CRL_get_issuer 3 ,
113.Xr X509_CRL_get_version 3 , 113.Xr X509_CRL_get_version 3 ,
114.Xr X509_CRL_match 3 , 114.Xr X509_CRL_match 3 ,
115.Xr X509_CRL_print 3 ,
115.Xr X509_CRL_sign 3 , 116.Xr X509_CRL_sign 3 ,
116.Xr X509_EXTENSION_new 3 , 117.Xr X509_EXTENSION_new 3 ,
117.Xr X509_INFO_new 3 , 118.Xr X509_INFO_new 3 ,
diff --git a/src/lib/libcrypto/man/X509_CRL_print.3 b/src/lib/libcrypto/man/X509_CRL_print.3
new file mode 100644
index 0000000000..2f4832f0e7
--- /dev/null
+++ b/src/lib/libcrypto/man/X509_CRL_print.3
@@ -0,0 +1,113 @@
1.\" $OpenBSD: X509_CRL_print.3,v 1.1 2021/07/19 13:16:43 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: July 19 2021 $
18.Dt X509_CRL_PRINT 3
19.Os
20.Sh NAME
21.Nm X509_CRL_print ,
22.Nm X509_CRL_print_fp
23.Nd pretty-print a certificate revocation list
24.Sh SYNOPSIS
25.In openssl/x509.h
26.Ft int
27.Fo X509_CRL_print
28.Fa "BIO *bio"
29.Fa "X509_CRL *crl"
30.Fc
31.Ft int
32.Fo X509_CRL_print_fp
33.Fa "FILE *fp"
34.Fa "X509_CRL *crl"
35.Fc
36.Sh DESCRIPTION
37.Fn X509_CRL_print
38prints information contained in
39.Fa crl
40to
41.Fa bio
42in human-readable form, in the following order:
43.Bl -bullet
44.It
45The certificate revocation list version number as defined by
46the standard, followed in parentheses by the value contained
47in the version field in hexadecimal notation.
48See
49.Xr X509_CRL_get_version 3
50for details.
51.It
52The name of the signature algorithm is printed with
53.Xr X509_signature_print 3 .
54.It
55The issuer name as returned by
56.Xr X509_CRL_get_issuer 3 .
57.It
58The times of the last and next updates as returned by
59.Xr X509_CRL_get0_lastUpdate 3
60and
61.Xr X509_CRL_get0_nextUpdate 3
62are printed with
63.Xr ASN1_TIME_print 3 .
64.It
65All X.509 extensions directly contained
66in the certificate revocation list object
67.Fa crl
68are printed with
69.Xr X509V3_extensions_print 3 .
70.It
71Information about revoked certificates is retrieved with
72.Xr X509_CRL_get_REVOKED 3 ,
73and for each revoked certificate, the following is printed:
74.Bl -bullet
75.It
76The serial number of the certificate is printed with
77.Xr i2a_ASN1_INTEGER 3 .
78.It
79The revocation date is printed with
80.Xr ASN1_TIME_print 3 .
81.It
82All X.509 extensions contained in the revocation entry are printed with
83.Xr X509V3_extensions_print 3 .
84.El
85.It
86The signature of
87.Fa crl
88is printed with
89.Xr X509_signature_print 3 .
90.El
91.Pp
92.Fn X509_CRL_print_fp
93is similar to
94.Fn X509_CRL_print
95except that it prints to
96.Fa fp .
97.Sh RETURN VALUES
98These functions are intended to return 1 for success and 0 for error.
99.Sh SEE ALSO
100.Xr BIO_new 3 ,
101.Xr X509_CRL_new 3 ,
102.Xr X509_print_ex 3 ,
103.Xr X509_REVOKED_new 3
104.Sh HISTORY
105These functions first appeared in OpenSSL 0.9.2 and have been available since
106.Ox 2.6 .
107.Sh BUGS
108Most I/O errors are silently ignored.
109Even if the information printed is incomplete, these functions may
110return 1 anyway.
111.Pp
112If the version number is invalid, no information from the CRL is printed
113and the functions fail.
diff --git a/src/lib/libcrypto/man/X509_REVOKED_new.3 b/src/lib/libcrypto/man/X509_REVOKED_new.3
index af130ee41a..c1a50d1c9a 100644
--- a/src/lib/libcrypto/man/X509_REVOKED_new.3
+++ b/src/lib/libcrypto/man/X509_REVOKED_new.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: X509_REVOKED_new.3,v 1.11 2019/06/14 13:59:32 schwarze Exp $ 1.\" $OpenBSD: X509_REVOKED_new.3,v 1.12 2021/07/19 13:16:43 schwarze Exp $
2.\" full merge up to: 2.\" full merge up to:
3.\" OpenSSL man3/X509_CRL_get0_by_serial cdd6c8c5 Mar 20 12:29:37 2017 +0100 3.\" OpenSSL man3/X509_CRL_get0_by_serial cdd6c8c5 Mar 20 12:29:37 2017 +0100
4.\" 4.\"
@@ -66,7 +66,7 @@
66.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 66.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
67.\" OF THE POSSIBILITY OF SUCH DAMAGE. 67.\" OF THE POSSIBILITY OF SUCH DAMAGE.
68.\" 68.\"
69.Dd $Mdocdate: June 14 2019 $ 69.Dd $Mdocdate: July 19 2021 $
70.Dt X509_REVOKED_NEW 3 70.Dt X509_REVOKED_NEW 3
71.Os 71.Os
72.Sh NAME 72.Sh NAME
@@ -183,6 +183,7 @@ In some cases of failure, the reason can be determined with
183.Xr PEM_read_X509_CRL 3 , 183.Xr PEM_read_X509_CRL 3 ,
184.Xr X509_CRL_get0_by_serial 3 , 184.Xr X509_CRL_get0_by_serial 3 ,
185.Xr X509_CRL_new 3 , 185.Xr X509_CRL_new 3 ,
186.Xr X509_CRL_print 3 ,
186.Xr X509_EXTENSION_new 3 , 187.Xr X509_EXTENSION_new 3 ,
187.Xr X509_REVOKED_get_ext 3 , 188.Xr X509_REVOKED_get_ext 3 ,
188.Xr X509_REVOKED_get_ext_d2i 3 189.Xr X509_REVOKED_get_ext_d2i 3
diff --git a/src/lib/libcrypto/man/X509_print_ex.3 b/src/lib/libcrypto/man/X509_print_ex.3
index 19373e0754..c313d34930 100644
--- a/src/lib/libcrypto/man/X509_print_ex.3
+++ b/src/lib/libcrypto/man/X509_print_ex.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: X509_print_ex.3,v 1.1 2021/07/12 15:56:54 schwarze Exp $ 1.\" $OpenBSD: X509_print_ex.3,v 1.2 2021/07/19 13:16:43 schwarze Exp $
2.\" 2.\"
3.\" Copyright (c) 2021 Ingo Schwarze <schwarze@openbsd.org> 3.\" Copyright (c) 2021 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: July 12 2021 $ 17.Dd $Mdocdate: July 19 2021 $
18.Dt X509_PRINT_EX 3 18.Dt X509_PRINT_EX 3
19.Os 19.Os
20.Sh NAME 20.Sh NAME
@@ -251,6 +251,7 @@ always returns 1 and silently ignores write errors.
251.Sh SEE ALSO 251.Sh SEE ALSO
252.Xr BIO_new 3 , 252.Xr BIO_new 3 ,
253.Xr X509_CERT_AUX_new 3 , 253.Xr X509_CERT_AUX_new 3 ,
254.Xr X509_CRL_print 3 ,
254.Xr X509_new 3 255.Xr X509_new 3
255.Sh HISTORY 256.Sh HISTORY
256.Fn X509_print 257.Fn X509_print