summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschwarze <>2021-07-29 12:39:47 +0000
committerschwarze <>2021-07-29 12:39:47 +0000
commita2e40c92626851f5a0661a828b47e15c7c035e52 (patch)
tree4848b6f2d0903a250d4c780acd9874f1a3d96051
parentc2207202ac844e502b00ed577a93858d66a4be07 (diff)
downloadopenbsd-a2e40c92626851f5a0661a828b47e15c7c035e52.tar.gz
openbsd-a2e40c92626851f5a0661a828b47e15c7c035e52.tar.bz2
openbsd-a2e40c92626851f5a0661a828b47e15c7c035e52.zip
Fix a documentation bug i introduced that tb@ pointed out:
X509_policy_check(3) never returns 2. If validation succeeds, it always returns 1.
-rw-r--r--src/lib/libcrypto/man/X509_policy_check.315
1 files changed, 3 insertions, 12 deletions
diff --git a/src/lib/libcrypto/man/X509_policy_check.3 b/src/lib/libcrypto/man/X509_policy_check.3
index 7739f13d5a..445f22ddea 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.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 $
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 28 2021 $ 17.Dd $Mdocdate: July 29 2021 $
18.Dt X509_POLICY_CHECK 3 18.Dt X509_POLICY_CHECK 3
19.Os 19.Os
20.Sh NAME 20.Sh NAME
@@ -158,17 +158,8 @@ In the special cases that the
158.Fa certs 158.Fa certs
159argument contains exactly one certificate or that 159argument contains exactly one certificate or that
160.Dv X509_V_FLAG_EXPLICIT_POLICY 160.Dv X509_V_FLAG_EXPLICIT_POLICY
161was not requested and the resulting policy tree would have been empty,
162.Pf * Fa ptree
163is set to
164.Dv NULL
165and
166.Pf * Fa pexplicit_policy
167to 0.
168.It 2
169.Dv X509_V_FLAG_EXPLICIT_POLICY
170was not requested and at least one of the certificates contains no 161was not requested and at least one of the certificates contains no
171certificate policies. 162certificate policies or the resulting policy tree would have been empty,
172.Pf * Fa ptree 163.Pf * Fa ptree
173is set to 164is set to
174.Dv NULL 165.Dv NULL