diff options
Diffstat (limited to '')
-rw-r--r-- | src/lib/libcrypto/man/BASIC_CONSTRAINTS_new.3 | 89 |
1 files changed, 0 insertions, 89 deletions
diff --git a/src/lib/libcrypto/man/BASIC_CONSTRAINTS_new.3 b/src/lib/libcrypto/man/BASIC_CONSTRAINTS_new.3 deleted file mode 100644 index e60b0d223c..0000000000 --- a/src/lib/libcrypto/man/BASIC_CONSTRAINTS_new.3 +++ /dev/null | |||
@@ -1,89 +0,0 @@ | |||
1 | .\" $OpenBSD: BASIC_CONSTRAINTS_new.3,v 1.6 2021/10/27 11:24:47 schwarze Exp $ | ||
2 | .\" | ||
3 | .\" Copyright (c) 2016 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: October 27 2021 $ | ||
18 | .Dt BASIC_CONSTRAINTS_NEW 3 | ||
19 | .Os | ||
20 | .Sh NAME | ||
21 | .Nm BASIC_CONSTRAINTS_new , | ||
22 | .Nm BASIC_CONSTRAINTS_free | ||
23 | .Nd X.509 extension to mark CA certificates | ||
24 | .Sh SYNOPSIS | ||
25 | .In openssl/x509v3.h | ||
26 | .Ft BASIC_CONSTRAINTS * | ||
27 | .Fn BASIC_CONSTRAINTS_new void | ||
28 | .Ft void | ||
29 | .Fn BASIC_CONSTRAINTS_free "BASIC_CONSTRAINTS *bc" | ||
30 | .Sh DESCRIPTION | ||
31 | .Fn BASIC_CONSTRAINTS_new | ||
32 | allocates and initializes an empty | ||
33 | .Vt BASIC_CONSTRAINTS | ||
34 | object, representing an ASN.1 | ||
35 | .Vt BasicConstraints | ||
36 | structure defined in RFC 5280 section 4.2.1.9. | ||
37 | .Pp | ||
38 | This object contains two fields. | ||
39 | The field | ||
40 | .Fa "int ca" | ||
41 | is non-zero if the certificate is a CA certificate. | ||
42 | The field | ||
43 | .Fa "ASN1_INTEGER *pathlen" | ||
44 | specifies the maximum number of non-self-issued intermediate | ||
45 | certificates that may follow this certificate in a valid | ||
46 | certification path. | ||
47 | .Pp | ||
48 | If an X.509 version 3 certificate does not contain this extension | ||
49 | or if the | ||
50 | .Fa ca | ||
51 | field of the | ||
52 | .Vt BASIC_CONSTRAINTS | ||
53 | object is 0, or if the certificate contains a key usage extension | ||
54 | having the | ||
55 | .Dv KU_KEY_CERT_SIGN | ||
56 | bit unset, then it is not a CA certificate but an end entity | ||
57 | certificate. | ||
58 | .Pp | ||
59 | .Fn BASIC_CONSTRAINTS_free | ||
60 | frees | ||
61 | .Fa bc . | ||
62 | .Sh RETURN VALUES | ||
63 | .Fn BASIC_CONSTRAINTS_new | ||
64 | returns the new | ||
65 | .Vt BASIC_CONSTRAINTS | ||
66 | object or | ||
67 | .Dv NULL | ||
68 | if an error occurs. | ||
69 | .Sh SEE ALSO | ||
70 | .Xr d2i_BASIC_CONSTRAINTS 3 , | ||
71 | .Xr X509_check_purpose 3 , | ||
72 | .Xr X509_EXTENSION_new 3 , | ||
73 | .Xr X509_get_extension_flags 3 , | ||
74 | .Xr X509_new 3 | ||
75 | .Sh STANDARDS | ||
76 | RFC 5280: Internet X.509 Public Key Infrastructure Certificate and | ||
77 | Certificate Revocation List (CRL) Profile: | ||
78 | .Bl -dash -compact | ||
79 | .It | ||
80 | section 4.2.1.9: Basic Constraints | ||
81 | .It | ||
82 | section 6.1: Basic Path Validation | ||
83 | .El | ||
84 | .Sh HISTORY | ||
85 | .Fn BASIC_CONSTRAINTS_new | ||
86 | and | ||
87 | .Fn BASIC_CONSTRAINTS_free | ||
88 | first appeared in OpenSSL 0.9.2b and have been available since | ||
89 | .Ox 2.6 . | ||