diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libcrypto/man/X509_policy_tree_level_count.3 | 23 |
1 files changed, 20 insertions, 3 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 index 87fb423439..f74754c362 100644 --- a/src/lib/libcrypto/man/X509_policy_tree_level_count.3 +++ b/src/lib/libcrypto/man/X509_policy_tree_level_count.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: X509_policy_tree_level_count.3,v 1.2 2021/07/27 13:27:46 schwarze Exp $ | 1 | .\" $OpenBSD: X509_policy_tree_level_count.3,v 1.3 2021/07/28 13:47:21 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 27 2021 $ | 17 | .Dd $Mdocdate: July 28 2021 $ |
18 | .Dt X509_POLICY_TREE_LEVEL_COUNT 3 | 18 | .Dt X509_POLICY_TREE_LEVEL_COUNT 3 |
19 | .Os | 19 | .Os |
20 | .Sh NAME | 20 | .Sh NAME |
@@ -65,6 +65,9 @@ or 0 if the | |||
65 | .Fa tree | 65 | .Fa tree |
66 | argument is | 66 | argument is |
67 | .Dv NULL . | 67 | .Dv NULL . |
68 | If it is not 0, it equals the number of certificates in the | ||
69 | certification path the tree was created from, including both | ||
70 | the target certificate and the trust anchor. | ||
68 | .Pp | 71 | .Pp |
69 | .Fn X509_policy_tree_get0_level | 72 | .Fn X509_policy_tree_get0_level |
70 | returns an internal pointer to the level of the | 73 | returns an internal pointer to the level of the |
@@ -81,6 +84,10 @@ or the | |||
81 | .Fa index | 84 | .Fa index |
82 | is less than 0 or greater than or equal to the number of levels in the | 85 | is less than 0 or greater than or equal to the number of levels in the |
83 | .Fa tree . | 86 | .Fa tree . |
87 | An | ||
88 | .Fa index | ||
89 | of 0 corresponds to the trust anchor | ||
90 | and the last level corresponds to the target certificate. | ||
84 | .Pp | 91 | .Pp |
85 | .Fn X509_policy_level_node_count | 92 | .Fn X509_policy_level_node_count |
86 | returns the number of nodes on the | 93 | returns the number of nodes on the |
@@ -121,9 +128,13 @@ if the | |||
121 | .Fa node | 128 | .Fa node |
122 | argument is | 129 | argument is |
123 | .Dv NULL . | 130 | .Dv NULL . |
131 | It represents a single policy that is valid for the path | ||
132 | from the trust anchor to the certificate corresponding | ||
133 | to the level containing the | ||
134 | .Fa node . | ||
124 | .Pp | 135 | .Pp |
125 | .Fn X509_policy_node_get0_qualifiers | 136 | .Fn X509_policy_node_get0_qualifiers |
126 | returns an an internal pointer to the | 137 | returns an internal pointer to the |
127 | .Fa qualifier_set | 138 | .Fa qualifier_set |
128 | child object of the node or | 139 | child object of the node or |
129 | .Dv NULL | 140 | .Dv NULL |
@@ -131,6 +142,12 @@ if the | |||
131 | .Fa node | 142 | .Fa node |
132 | argument is | 143 | argument is |
133 | .Dv NULL . | 144 | .Dv NULL . |
145 | It contains the policy qualifiers associated with the | ||
146 | .Fa valid_policy | ||
147 | of the | ||
148 | .Fa node | ||
149 | in the certificate corresponding to the level containing the | ||
150 | .Fa node . | ||
134 | .Pp | 151 | .Pp |
135 | .Fn X509_policy_node_get0_parent | 152 | .Fn X509_policy_node_get0_parent |
136 | returns | 153 | returns |