summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorschwarze <>2021-07-28 13:47:21 +0000
committerschwarze <>2021-07-28 13:47:21 +0000
commit4423ab4eb250f1f2c062788b32e50af5691d3d26 (patch)
tree65542f9d649adcf082b3769f1150f3d4eb090ae8 /src
parent553a7c3a1283ddd8dec313cbc040c9aa086b6c13 (diff)
downloadopenbsd-4423ab4eb250f1f2c062788b32e50af5691d3d26.tar.gz
openbsd-4423ab4eb250f1f2c062788b32e50af5691d3d26.tar.bz2
openbsd-4423ab4eb250f1f2c062788b32e50af5691d3d26.zip
consisely explain the meaning of return values rather than merely
refering to child object names defined in the standard
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/man/X509_policy_tree_level_count.323
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
66argument is 66argument is
67.Dv NULL . 67.Dv NULL .
68If it is not 0, it equals the number of certificates in the
69certification path the tree was created from, including both
70the target certificate and the trust anchor.
68.Pp 71.Pp
69.Fn X509_policy_tree_get0_level 72.Fn X509_policy_tree_get0_level
70returns an internal pointer to the level of the 73returns an internal pointer to the level of the
@@ -81,6 +84,10 @@ or the
81.Fa index 84.Fa index
82is less than 0 or greater than or equal to the number of levels in the 85is less than 0 or greater than or equal to the number of levels in the
83.Fa tree . 86.Fa tree .
87An
88.Fa index
89of 0 corresponds to the trust anchor
90and 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
86returns the number of nodes on the 93returns the number of nodes on the
@@ -121,9 +128,13 @@ if the
121.Fa node 128.Fa node
122argument is 129argument is
123.Dv NULL . 130.Dv NULL .
131It represents a single policy that is valid for the path
132from the trust anchor to the certificate corresponding
133to 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
126returns an an internal pointer to the 137returns an internal pointer to the
127.Fa qualifier_set 138.Fa qualifier_set
128child object of the node or 139child object of the node or
129.Dv NULL 140.Dv NULL
@@ -131,6 +142,12 @@ if the
131.Fa node 142.Fa node
132argument is 143argument is
133.Dv NULL . 144.Dv NULL .
145It contains the policy qualifiers associated with the
146.Fa valid_policy
147of the
148.Fa node
149in 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
136returns 153returns