summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorschwarze <>2021-07-28 13:39:20 +0000
committerschwarze <>2021-07-28 13:39:20 +0000
commit553a7c3a1283ddd8dec313cbc040c9aa086b6c13 (patch)
treedb95bb3d5174191684d5a791f27c65221d579df8 /src
parent03a9ceb3ec186900c4013d7ef08eefac4badd114 (diff)
downloadopenbsd-553a7c3a1283ddd8dec313cbc040c9aa086b6c13.tar.gz
openbsd-553a7c3a1283ddd8dec313cbc040c9aa086b6c13.tar.bz2
openbsd-553a7c3a1283ddd8dec313cbc040c9aa086b6c13.zip
Explain the meaning of the policy_oids input argument, correct the
description of the *pexplicit_policy output argument and make it less technical, and drop the mention of the expected_policy_set because the library provides no accessor function for it.
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/man/X509_policy_check.326
1 files changed, 12 insertions, 14 deletions
diff --git a/src/lib/libcrypto/man/X509_policy_check.3 b/src/lib/libcrypto/man/X509_policy_check.3
index f245099228..d6932b5244 100644
--- a/src/lib/libcrypto/man/X509_policy_check.3
+++ b/src/lib/libcrypto/man/X509_policy_check.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: X509_policy_check.3,v 1.1 2021/07/27 13:27:46 schwarze Exp $ 1.\" $OpenBSD: X509_policy_check.3,v 1.2 2021/07/28 13:39:20 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_CHECK 3 18.Dt X509_POLICY_CHECK 3
19.Os 19.Os
20.Sh NAME 20.Sh NAME
@@ -50,6 +50,7 @@ The
50input argument contains the 50input argument contains the
51.Va user-initial-policy-set 51.Va user-initial-policy-set
52according to RFC 5280 section 6.1.1(c). 52according to RFC 5280 section 6.1.1(c).
53It specifies a set of certificate policies acceptable to the certificate user.
53.Pp 54.Pp
54The 55The
55.Fa flags 56.Fa flags
@@ -86,19 +87,16 @@ the last level corresponds to the target certificate.
86Level 0 is initialized to contain a single node with a 87Level 0 is initialized to contain a single node with a
87.Fa valid_policy 88.Fa valid_policy
88of 89of
89.Sy anyPolicy , 90.Sy anyPolicy
90an empty 91and an empty
91.Fa qualifier_set , 92.Fa qualifier_set .
92and an
93.Fa expected_policy_set
94containing only
95.Sy anyPolicy .
96.Pp 93.Pp
97The storage location pointed to by 94Upon success and in some cases of failure, the storage location pointed to by
98.Fa pexplicit_policy 95.Fa pexplicit_policy
99is set as specified in RFC 5280 paragraphs 6.1.2(d), 6.1.4(h), 6.1.4(i), 96is set to 1 if
1006.1.5(a), and 6.1.5(b). 97.Dv X509_V_FLAG_EXPLICIT_POLICY
101In case of failure, it may or may not get set, representing a partial result. 98was requested.
99Otherwise, it is set to 0.
102.Sh RETURN VALUES 100.Sh RETURN VALUES
103.Fn X509_policy_check 101.Fn X509_policy_check
104returns these values: 102returns these values:
@@ -135,7 +133,7 @@ is set to
135.Dv NULL 133.Dv NULL
136and 134and
137.Pf * Fa pexplicit_policy 135.Pf * Fa pexplicit_policy
138may be set to 0 or to a partial result. 136may or may not be set.
139.It 1 137.It 1
140Validation succeeded and 138Validation succeeded and
141.Pf * Fa ptree 139.Pf * Fa ptree