Skip to content

Commit 9617f81

Browse files
author
schwarze
committed
Fix a documentation bug i introduced that tb@ pointed out:
X509_policy_check(3) never returns 2. If validation succeeds, it always returns 1.
1 parent ce3eadd commit 9617f81

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

src/lib/libcrypto/man/X509_policy_check.3

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.\" $OpenBSD: X509_policy_check.3,v 1.3 2021/07/28 14:00:33 schwarze Exp $
1+
.\" $OpenBSD: X509_policy_check.3,v 1.4 2021/07/29 12:39:47 schwarze Exp $
22
.\"
33
.\" Copyright (c) 2021 Ingo Schwarze <schwarze@openbsd.org>
44
.\"
@@ -14,7 +14,7 @@
1414
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
1515
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1616
.\"
17-
.Dd $Mdocdate: July 28 2021 $
17+
.Dd $Mdocdate: July 29 2021 $
1818
.Dt X509_POLICY_CHECK 3
1919
.Os
2020
.Sh NAME
@@ -158,17 +158,8 @@ In the special cases that the
158158
.Fa certs
159159
argument contains exactly one certificate or that
160160
.Dv X509_V_FLAG_EXPLICIT_POLICY
161-
was not requested and the resulting policy tree would have been empty,
162-
.Pf * Fa ptree
163-
is set to
164-
.Dv NULL
165-
and
166-
.Pf * Fa pexplicit_policy
167-
to 0.
168-
.It 2
169-
.Dv X509_V_FLAG_EXPLICIT_POLICY
170161
was not requested and at least one of the certificates contains no
171-
certificate policies.
162+
certificate policies or the resulting policy tree would have been empty,
172163
.Pf * Fa ptree
173164
is set to
174165
.Dv NULL

0 commit comments

Comments
 (0)