diff options
Diffstat (limited to 'src/lib/libcrypto/man/X509_check_ca.3')
-rw-r--r-- | src/lib/libcrypto/man/X509_check_ca.3 | 117 |
1 files changed, 0 insertions, 117 deletions
diff --git a/src/lib/libcrypto/man/X509_check_ca.3 b/src/lib/libcrypto/man/X509_check_ca.3 deleted file mode 100644 index 114bac69e7..0000000000 --- a/src/lib/libcrypto/man/X509_check_ca.3 +++ /dev/null | |||
@@ -1,117 +0,0 @@ | |||
1 | .\" $OpenBSD: X509_check_ca.3,v 1.7 2022/05/10 19:44:29 tb Exp $ | ||
2 | .\" OpenSSL 99d63d46 Oct 26 13:56:48 2016 -0400 | ||
3 | .\" | ||
4 | .\" This file was written by Victor B. Wagner <vitus@cryptocom.ru>. | ||
5 | .\" Copyright (c) 2015, 2016 The OpenSSL Project. All rights reserved. | ||
6 | .\" | ||
7 | .\" Redistribution and use in source and binary forms, with or without | ||
8 | .\" modification, are permitted provided that the following conditions | ||
9 | .\" are met: | ||
10 | .\" | ||
11 | .\" 1. Redistributions of source code must retain the above copyright | ||
12 | .\" notice, this list of conditions and the following disclaimer. | ||
13 | .\" | ||
14 | .\" 2. Redistributions in binary form must reproduce the above copyright | ||
15 | .\" notice, this list of conditions and the following disclaimer in | ||
16 | .\" the documentation and/or other materials provided with the | ||
17 | .\" distribution. | ||
18 | .\" | ||
19 | .\" 3. All advertising materials mentioning features or use of this | ||
20 | .\" software must display the following acknowledgment: | ||
21 | .\" "This product includes software developed by the OpenSSL Project | ||
22 | .\" for use in the OpenSSL Toolkit. (http://www.openssl.org/)" | ||
23 | .\" | ||
24 | .\" 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
25 | .\" endorse or promote products derived from this software without | ||
26 | .\" prior written permission. For written permission, please contact | ||
27 | .\" openssl-core@openssl.org. | ||
28 | .\" | ||
29 | .\" 5. Products derived from this software may not be called "OpenSSL" | ||
30 | .\" nor may "OpenSSL" appear in their names without prior written | ||
31 | .\" permission of the OpenSSL Project. | ||
32 | .\" | ||
33 | .\" 6. Redistributions of any form whatsoever must retain the following | ||
34 | .\" acknowledgment: | ||
35 | .\" "This product includes software developed by the OpenSSL Project | ||
36 | .\" for use in the OpenSSL Toolkit (http://www.openssl.org/)" | ||
37 | .\" | ||
38 | .\" THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
39 | .\" EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
40 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
41 | .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
42 | .\" ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
43 | .\" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
44 | .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
45 | .\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
46 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
47 | .\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
48 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
49 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | ||
50 | .\" | ||
51 | .Dd $Mdocdate: May 10 2022 $ | ||
52 | .Dt X509_CHECK_CA 3 | ||
53 | .Os | ||
54 | .Sh NAME | ||
55 | .Nm X509_check_ca | ||
56 | .Nd check whether a certificate is a CA certificate | ||
57 | .Sh SYNOPSIS | ||
58 | .In openssl/x509v3.h | ||
59 | .Ft int | ||
60 | .Fo X509_check_ca | ||
61 | .Fa "X509 *cert" | ||
62 | .Fc | ||
63 | .Sh DESCRIPTION | ||
64 | The | ||
65 | .Fn X509_check_ca | ||
66 | function checks whether the given certificate is a CA certificate, | ||
67 | that is, whether it can be used to sign other certificates. | ||
68 | .Sh RETURN VALUES | ||
69 | If | ||
70 | .Fa cert | ||
71 | is a CA certificate, a non-zero value is returned; 0 otherwise. | ||
72 | .Pp | ||
73 | The following return values identify specific kinds of CA certificates: | ||
74 | .Bl -tag -width 2n | ||
75 | .It 1 | ||
76 | an X.509 v3 CA certificate with | ||
77 | .Sy basicConstraints | ||
78 | extension CA:TRUE | ||
79 | .It 3 | ||
80 | a self-signed X.509 v1 certificate | ||
81 | .It 4 | ||
82 | a certificate with | ||
83 | .Sy keyUsage | ||
84 | extension with bit | ||
85 | .Sy keyCertSign | ||
86 | set, but without | ||
87 | .Sy basicConstraints | ||
88 | .It 5 | ||
89 | a certificate with an outdated Netscape Certificate Type extension telling | ||
90 | that it is a CA certificate | ||
91 | .El | ||
92 | .Sh SEE ALSO | ||
93 | .Xr BASIC_CONSTRAINTS_new 3 , | ||
94 | .Xr EXTENDED_KEY_USAGE_new 3 , | ||
95 | .Xr X509_check_issued 3 , | ||
96 | .Xr X509_check_purpose 3 , | ||
97 | .Xr X509_EXTENSION_new 3 , | ||
98 | .Xr X509_new 3 , | ||
99 | .Xr X509_verify_cert 3 | ||
100 | .Sh HISTORY | ||
101 | .Fn X509_check_ca | ||
102 | first appeared in OpenSSL 0.9.7f and has been available since | ||
103 | .Ox 3.8 . | ||
104 | .Sh BUGS | ||
105 | If | ||
106 | .Fn X509_check_ca | ||
107 | fails to cache X509v3 extension values, the return value may | ||
108 | be incorrect. | ||
109 | An application should | ||
110 | call | ||
111 | .Xr X509_check_purpose 3 | ||
112 | with a | ||
113 | .Fa purpose | ||
114 | argument of \-1, | ||
115 | ensuring that the X509v3 extensions are cached, | ||
116 | before calling | ||
117 | .Fn X509_check_ca . | ||