diff options
author | schwarze <> | 2021-07-12 14:54:00 +0000 |
---|---|---|
committer | schwarze <> | 2021-07-12 14:54:00 +0000 |
commit | dbfa1ee3062f3845905acb0e6e40da4f3169f04d (patch) | |
tree | ec0fd9c1baaecb852e31733f7a35a3a8ee68e074 /src/lib | |
parent | 7c2cea821d85ab17ab7c7b1e1811dad39ba4fee7 (diff) | |
download | openbsd-dbfa1ee3062f3845905acb0e6e40da4f3169f04d.tar.gz openbsd-dbfa1ee3062f3845905acb0e6e40da4f3169f04d.tar.bz2 openbsd-dbfa1ee3062f3845905acb0e6e40da4f3169f04d.zip |
document X509V3_extensions_print(3)
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libcrypto/man/Makefile | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/man/X509V3_EXT_print.3 | 5 | ||||
-rw-r--r-- | src/lib/libcrypto/man/X509V3_extensions_print.3 | 100 | ||||
-rw-r--r-- | src/lib/libcrypto/man/X509V3_get_d2i.3 | 5 | ||||
-rw-r--r-- | src/lib/libcrypto/man/X509_EXTENSION_set_object.3 | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/man/X509v3_get_ext_by_NID.3 | 3 |
6 files changed, 112 insertions, 7 deletions
diff --git a/src/lib/libcrypto/man/Makefile b/src/lib/libcrypto/man/Makefile index 0216f12ab6..231e39aa27 100644 --- a/src/lib/libcrypto/man/Makefile +++ b/src/lib/libcrypto/man/Makefile | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: Makefile,v 1.179 2021/07/12 11:47:01 schwarze Exp $ | 1 | # $OpenBSD: Makefile,v 1.180 2021/07/12 14:54:00 schwarze Exp $ |
2 | 2 | ||
3 | .include <bsd.own.mk> | 3 | .include <bsd.own.mk> |
4 | 4 | ||
@@ -325,6 +325,7 @@ MAN= \ | |||
325 | X509_signature_dump.3 \ | 325 | X509_signature_dump.3 \ |
326 | X509_verify_cert.3 \ | 326 | X509_verify_cert.3 \ |
327 | X509V3_EXT_print.3 \ | 327 | X509V3_EXT_print.3 \ |
328 | X509V3_extensions_print.3 \ | ||
328 | X509v3_get_ext_by_NID.3 \ | 329 | X509v3_get_ext_by_NID.3 \ |
329 | crypto.3 \ | 330 | crypto.3 \ |
330 | d2i_ASN1_NULL.3 \ | 331 | d2i_ASN1_NULL.3 \ |
diff --git a/src/lib/libcrypto/man/X509V3_EXT_print.3 b/src/lib/libcrypto/man/X509V3_EXT_print.3 index d9063e4881..0c695842b7 100644 --- a/src/lib/libcrypto/man/X509V3_EXT_print.3 +++ b/src/lib/libcrypto/man/X509V3_EXT_print.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: X509V3_EXT_print.3,v 1.1 2021/07/12 11:47:01 schwarze Exp $ | 1 | .\" $OpenBSD: X509V3_EXT_print.3,v 1.2 2021/07/12 14:54:00 schwarze Exp $ |
2 | .\" | 2 | .\" |
3 | .\" Copyright (c) 2021 Ingo Schwarze <schwarze@openbsd.org> | 3 | .\" Copyright (c) 2021 Ingo Schwarze <schwarze@openbsd.org> |
4 | .\" | 4 | .\" |
@@ -142,7 +142,8 @@ succeed. | |||
142 | .Xr BIO_new 3 , | 142 | .Xr BIO_new 3 , |
143 | .Xr X509_EXTENSION_new 3 , | 143 | .Xr X509_EXTENSION_new 3 , |
144 | .Xr X509_get0_extensions 3 , | 144 | .Xr X509_get0_extensions 3 , |
145 | .Xr X509_get_ext 3 | 145 | .Xr X509_get_ext 3 , |
146 | .Xr X509V3_extensions_print 3 | ||
146 | .Sh HISTORY | 147 | .Sh HISTORY |
147 | .Fn X509V3_EXT_print | 148 | .Fn X509V3_EXT_print |
148 | first appeared in OpenSSL 0.9.2 and has been available since | 149 | first appeared in OpenSSL 0.9.2 and has been available since |
diff --git a/src/lib/libcrypto/man/X509V3_extensions_print.3 b/src/lib/libcrypto/man/X509V3_extensions_print.3 new file mode 100644 index 0000000000..ad5b02a826 --- /dev/null +++ b/src/lib/libcrypto/man/X509V3_extensions_print.3 | |||
@@ -0,0 +1,100 @@ | |||
1 | .\" $OpenBSD: X509V3_extensions_print.3,v 1.1 2021/07/12 14:54:00 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 12 2021 $ | ||
18 | .Dt X509V3_EXTENSIONS_PRINT 3 | ||
19 | .Os | ||
20 | .Sh NAME | ||
21 | .Nm X509V3_extensions_print | ||
22 | .Nd pretty-print an array of X.509 extensions | ||
23 | .Sh SYNOPSIS | ||
24 | .In openssl/x509v3.h | ||
25 | .Ft int | ||
26 | .Fo X509V3_extensions_print | ||
27 | .Fa "BIO *bio" | ||
28 | .Fa "char *title" | ||
29 | .Fa "const STACK_OF(X509_EXTENSION) *sk" | ||
30 | .Fa "unsigned long flags" | ||
31 | .Fa "int indent" | ||
32 | .Fc | ||
33 | .Sh DESCRIPTION | ||
34 | For each member of the variable sized array | ||
35 | .Fa sk , | ||
36 | .Fn X509V3_extensions_print | ||
37 | prints the following information to | ||
38 | .Fa bio | ||
39 | in the following order: | ||
40 | .Bl -bullet | ||
41 | .It | ||
42 | The extension type as printed by | ||
43 | .Xr i2a_ASN1_OBJECT 3 . | ||
44 | .It | ||
45 | If the extension is critical, the fixed string | ||
46 | .Qq "critical" . | ||
47 | .It | ||
48 | A human-readable representation of the data contained in the extension | ||
49 | as printed by | ||
50 | .Xr X509V3_EXT_print 3 , | ||
51 | passing through the | ||
52 | .Fa flags . | ||
53 | If that function indicates failure, | ||
54 | the BER-encoded data of the extension is dumped with | ||
55 | .Xr ASN1_STRING_print 3 | ||
56 | without decoding it first. | ||
57 | In both cases, an | ||
58 | .Fa indent | ||
59 | incremented by 4 space characaters is used. | ||
60 | .El | ||
61 | .Pp | ||
62 | If | ||
63 | .Fa sk | ||
64 | is a | ||
65 | .Dv NULL | ||
66 | pointer or empty, | ||
67 | .Fn X509V3_extensions_print | ||
68 | prints nothing and indicates success. | ||
69 | .Pp | ||
70 | Unless | ||
71 | .Fa title | ||
72 | is | ||
73 | .Dv NULL , | ||
74 | it is printed on its own output line before the rest of the output, and | ||
75 | .Fa indent | ||
76 | is increased by 4 space characters. | ||
77 | This additional global indentation is cumulative | ||
78 | to the one applied to individual extensions mentioned above. | ||
79 | .Sh RETURN VALUES | ||
80 | .Fn X509V3_extensions_print | ||
81 | is intended to return 1 on success or 0 if an error occurs. | ||
82 | .Sh SEE ALSO | ||
83 | .Xr BIO_new 3 , | ||
84 | .Xr STACK_OF 3 , | ||
85 | .Xr X509_EXTENSION_get_critical 3 , | ||
86 | .Xr X509_get0_extensions 3 , | ||
87 | .Xr X509_get_ext 3 , | ||
88 | .Xr X509V3_EXT_print 3 | ||
89 | .Sh HISTORY | ||
90 | .Fn X509V3_extensions_print | ||
91 | first appeared in OpenSSL 0.9.7 and has been available since | ||
92 | .Ox 3.2 . | ||
93 | .Sh BUGS | ||
94 | Many parsing and printing errors are silently ignored, | ||
95 | and the function may return indicating success even though | ||
96 | .Fa sk | ||
97 | contains invalid data. | ||
98 | Even if all the data is valid, success may be indicated even when the | ||
99 | information printed is incomplete for various reasons, for example | ||
100 | due to memory allocation failures or I/O errors. | ||
diff --git a/src/lib/libcrypto/man/X509V3_get_d2i.3 b/src/lib/libcrypto/man/X509V3_get_d2i.3 index 8a4f4dfb06..4e1a003365 100644 --- a/src/lib/libcrypto/man/X509V3_get_d2i.3 +++ b/src/lib/libcrypto/man/X509V3_get_d2i.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: X509V3_get_d2i.3,v 1.18 2021/07/12 11:47:01 schwarze Exp $ | 1 | .\" $OpenBSD: X509V3_get_d2i.3,v 1.19 2021/07/12 14:54:00 schwarze Exp $ |
2 | .\" full merge up to: OpenSSL ff7fbfd5 Nov 2 11:52:01 2015 +0000 | 2 | .\" full merge up to: OpenSSL ff7fbfd5 Nov 2 11:52:01 2015 +0000 |
3 | .\" selective merge up to: OpenSSL 99d63d46 Oct 26 13:56:48 2016 -0400 | 3 | .\" selective merge up to: OpenSSL 99d63d46 Oct 26 13:56:48 2016 -0400 |
4 | .\" | 4 | .\" |
@@ -417,7 +417,8 @@ if no extensions are present. | |||
417 | .Xr X509_get_version 3 , | 417 | .Xr X509_get_version 3 , |
418 | .Xr X509_new 3 , | 418 | .Xr X509_new 3 , |
419 | .Xr X509_REVOKED_new 3 , | 419 | .Xr X509_REVOKED_new 3 , |
420 | .Xr X509V3_EXT_print 3 | 420 | .Xr X509V3_EXT_print 3 , |
421 | .Xr X509V3_extensions_print 3 | ||
421 | .Sh HISTORY | 422 | .Sh HISTORY |
422 | .Fn X509V3_EXT_d2i | 423 | .Fn X509V3_EXT_d2i |
423 | first appeared in OpenSSL 0.9.2b. | 424 | first appeared in OpenSSL 0.9.2b. |
diff --git a/src/lib/libcrypto/man/X509_EXTENSION_set_object.3 b/src/lib/libcrypto/man/X509_EXTENSION_set_object.3 index 36b48f61ac..ef14f7cca3 100644 --- a/src/lib/libcrypto/man/X509_EXTENSION_set_object.3 +++ b/src/lib/libcrypto/man/X509_EXTENSION_set_object.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: X509_EXTENSION_set_object.3,v 1.11 2021/07/12 11:47:01 schwarze Exp $ | 1 | .\" $OpenBSD: X509_EXTENSION_set_object.3,v 1.12 2021/07/12 14:54:00 schwarze Exp $ |
2 | .\" OpenSSL bb9ad09e Jun 6 00:43:05 2016 -0400 | 2 | .\" OpenSSL bb9ad09e Jun 6 00:43:05 2016 -0400 |
3 | .\" | 3 | .\" |
4 | .\" This file is a derived work. | 4 | .\" This file is a derived work. |
@@ -288,6 +288,7 @@ pointer. | |||
288 | .Xr X509_check_host 3 , | 288 | .Xr X509_check_host 3 , |
289 | .Xr X509_check_issued 3 , | 289 | .Xr X509_check_issued 3 , |
290 | .Xr X509V3_EXT_print 3 , | 290 | .Xr X509V3_EXT_print 3 , |
291 | .Xr X509V3_extensions_print 3 , | ||
291 | .Xr X509V3_get_d2i 3 , | 292 | .Xr X509V3_get_d2i 3 , |
292 | .Xr X509v3_get_ext_by_NID 3 | 293 | .Xr X509v3_get_ext_by_NID 3 |
293 | .Sh STANDARDS | 294 | .Sh STANDARDS |
diff --git a/src/lib/libcrypto/man/X509v3_get_ext_by_NID.3 b/src/lib/libcrypto/man/X509v3_get_ext_by_NID.3 index 0267e185d1..54e4b583f7 100644 --- a/src/lib/libcrypto/man/X509v3_get_ext_by_NID.3 +++ b/src/lib/libcrypto/man/X509v3_get_ext_by_NID.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: X509v3_get_ext_by_NID.3,v 1.12 2021/07/12 11:47:01 schwarze Exp $ | 1 | .\" $OpenBSD: X509v3_get_ext_by_NID.3,v 1.13 2021/07/12 14:54:00 schwarze Exp $ |
2 | .\" full merge up to: OpenSSL fd38836b Jun 20 15:25:43 2018 +0100 | 2 | .\" full merge up to: OpenSSL fd38836b Jun 20 15:25:43 2018 +0100 |
3 | .\" | 3 | .\" |
4 | .\" This file was written by Dr. Stephen Henson <steve@openssl.org>. | 4 | .\" This file was written by Dr. Stephen Henson <steve@openssl.org>. |
@@ -393,6 +393,7 @@ returns 1 on success or 0 on error. | |||
393 | .Xr X509_new 3 , | 393 | .Xr X509_new 3 , |
394 | .Xr X509_REVOKED_new 3 , | 394 | .Xr X509_REVOKED_new 3 , |
395 | .Xr X509V3_EXT_print 3 , | 395 | .Xr X509V3_EXT_print 3 , |
396 | .Xr X509V3_extensions_print 3 , | ||
396 | .Xr X509V3_get_d2i 3 | 397 | .Xr X509V3_get_d2i 3 |
397 | .Sh HISTORY | 398 | .Sh HISTORY |
398 | These functions first appeared in SSLeay 0.8.0 | 399 | These functions first appeared in SSLeay 0.8.0 |