diff options
author | schwarze <> | 2021-07-26 14:03:43 +0000 |
---|---|---|
committer | schwarze <> | 2021-07-26 14:03:43 +0000 |
commit | 41e85456450e2cdde656430cec7bd1e7c140b4cc (patch) | |
tree | 7e2c8eefcb2bdf0d4dd32f37ef53703cd8d78f59 /src/lib/libcrypto/man/X509_policy_tree_level_count.3 | |
parent | d07f7fde139d15ba9e55fcf7ecb45bbfc82d6564 (diff) | |
download | openbsd-41e85456450e2cdde656430cec7bd1e7c140b4cc.tar.gz openbsd-41e85456450e2cdde656430cec7bd1e7c140b4cc.tar.bz2 openbsd-41e85456450e2cdde656430cec7bd1e7c140b4cc.zip |
new manual page X509_policy_tree_level_count(3)
documenting the X509_POLICY_TREE object and its sub-objects
Diffstat (limited to 'src/lib/libcrypto/man/X509_policy_tree_level_count.3')
-rw-r--r-- | src/lib/libcrypto/man/X509_policy_tree_level_count.3 | 159 |
1 files changed, 159 insertions, 0 deletions
diff --git a/src/lib/libcrypto/man/X509_policy_tree_level_count.3 b/src/lib/libcrypto/man/X509_policy_tree_level_count.3 new file mode 100644 index 0000000000..523cb55f1d --- /dev/null +++ b/src/lib/libcrypto/man/X509_policy_tree_level_count.3 | |||
@@ -0,0 +1,159 @@ | |||
1 | .\" $OpenBSD: X509_policy_tree_level_count.3,v 1.1 2021/07/26 14:03: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 26 2021 $ | ||
18 | .Dt X509_POLICY_TREE_LEVEL_COUNT 3 | ||
19 | .Os | ||
20 | .Sh NAME | ||
21 | .Nm X509_policy_tree_level_count , | ||
22 | .Nm X509_policy_tree_get0_level , | ||
23 | .Nm X509_policy_level_node_count , | ||
24 | .Nm X509_policy_level_get0_node , | ||
25 | .Nm X509_policy_node_get0_policy , | ||
26 | .Nm X509_policy_node_get0_qualifiers , | ||
27 | .Nm X509_policy_node_get0_parent | ||
28 | .Nd inspect X.509 policy tree objects | ||
29 | .Sh SYNOPSIS | ||
30 | .In openssl/x509_vfy.h | ||
31 | .Ft int | ||
32 | .Fn X509_policy_tree_level_count "const X509_POLICY_TREE *tree" | ||
33 | .Ft X509_POLICY_LEVEL * | ||
34 | .Fn X509_policy_tree_get0_level "const X509_POLICY_TREE *tree" "int index" | ||
35 | .Ft int | ||
36 | .Fn X509_policy_level_node_count "X509_POLICY_LEVEL *level" | ||
37 | .Ft X509_POLICY_NODE * | ||
38 | .Fn X509_policy_level_get0_node "X509_POLICY_LEVEL *level" "int index" | ||
39 | .Ft const ASN1_OBJECT * | ||
40 | .Fn X509_policy_node_get0_policy "const X509_POLICY_NODE *node" | ||
41 | .Ft STACK_OF(POLICYQUALINFO) * | ||
42 | .Fn X509_policy_node_get0_qualifiers "const X509_POLICY_NODE *node" | ||
43 | .Ft const X509_POLICY_NODE * | ||
44 | .Fn X509_policy_node_get0_parent "const X509_POLICY_NODE *node" | ||
45 | .Sh DESCRIPTION | ||
46 | The | ||
47 | .Vt X509_POLICY_TREE | ||
48 | object represents a | ||
49 | .Vt valid_policy_tree | ||
50 | as described in RFC 5280 section 6.1. | ||
51 | .Pp | ||
52 | The | ||
53 | .Vt X509_POLICY_LEVEL | ||
54 | object represents one level of such a tree, | ||
55 | corresponding to one certificate. | ||
56 | .Pp | ||
57 | The | ||
58 | .Vt X509_POLICY_NODE | ||
59 | object represents one node in the tree. | ||
60 | .Sh RETURN VALUES | ||
61 | .Fn X509_policy_tree_level_count | ||
62 | returns the number of levels in the | ||
63 | .Fa tree | ||
64 | or 0 if the | ||
65 | .Fa tree | ||
66 | argument is | ||
67 | .Dv NULL . | ||
68 | .Pp | ||
69 | .Fn X509_policy_tree_get0_level | ||
70 | returns an internal pointer to the level of the | ||
71 | .Fa tree | ||
72 | with the given | ||
73 | .Fa index | ||
74 | or | ||
75 | .Dv NULL | ||
76 | if the | ||
77 | .Fa tree | ||
78 | argument is | ||
79 | .Dv NULL | ||
80 | or the | ||
81 | .Fa index | ||
82 | is less than 0 or greater than or equal to the number of levels in the | ||
83 | .Fa tree . | ||
84 | .Pp | ||
85 | .Fn X509_policy_level_node_count | ||
86 | returns the number of nodes on the | ||
87 | .Fa level , | ||
88 | including an | ||
89 | .Sy anyPolicy | ||
90 | node if it is present, or 0 if the | ||
91 | .Fa level | ||
92 | argument is | ||
93 | .Dv NULL . | ||
94 | .Pp | ||
95 | .Fn X509_policy_level_get0_node | ||
96 | returns an internal pointer to the node on the | ||
97 | .Fa level | ||
98 | with the given | ||
99 | .Fa index | ||
100 | or | ||
101 | .Dv NULL | ||
102 | if the | ||
103 | .Fa level | ||
104 | argument is | ||
105 | .Dv NULL | ||
106 | or the | ||
107 | .Fa index | ||
108 | is less than 0 or greater than or equal to the number of nodes on the level. | ||
109 | If an | ||
110 | .Sy anyPolicy | ||
111 | node is present on the level, it can be retrieved by passing an | ||
112 | .Fa index | ||
113 | of 0. | ||
114 | .Pp | ||
115 | .Fn X509_policy_node_get0_policy | ||
116 | returns an internal pointer to the | ||
117 | .Fa valid_policy | ||
118 | child object of the node or | ||
119 | .Dv NULL | ||
120 | if the | ||
121 | .Fa node | ||
122 | argument is | ||
123 | .Dv NULL . | ||
124 | .Pp | ||
125 | .Fn X509_policy_node_get0_qualifiers | ||
126 | returns an an internal pointer to the | ||
127 | .Fa qualifier_set | ||
128 | child object of the node or | ||
129 | .Dv NULL | ||
130 | if the | ||
131 | .Fa node | ||
132 | argument is | ||
133 | .Dv NULL . | ||
134 | .Pp | ||
135 | .Fn X509_policy_node_get0_parent | ||
136 | returns | ||
137 | .Dv NULL | ||
138 | if the | ||
139 | .Fa node | ||
140 | argument is | ||
141 | .Dv NULL | ||
142 | or located on level 0. | ||
143 | Otherwise, it returns an an internal pointer to the parent node of the | ||
144 | .Fa node | ||
145 | argument. | ||
146 | The parent node is always located on the previous level. | ||
147 | .Sh SEE ALSO | ||
148 | .Xr ASN1_OBJECT_new 3 , | ||
149 | .Xr OBJ_obj2txt 3 , | ||
150 | .Xr POLICYQUALINFO_new 3 , | ||
151 | .Xr STACK_OF 3 , | ||
152 | .Xr X509_new 3 | ||
153 | .Sh STANDARDS | ||
154 | RFC 5280: Internet X.509 Public Key Infrastructure Certificate | ||
155 | and Certificate Revocation List (CRL) Profile, | ||
156 | section 6.1: Basic Path Validation | ||
157 | .Sh HISTORY | ||
158 | These function first appeared in OpenSSL 0.9.8 and have been available since | ||
159 | .Ox 4.5 . | ||