summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorschwarze <>2021-07-29 12:39:47 +0000
committerschwarze <>2021-07-29 12:39:47 +0000
commit1ec9711787e6735d06c91a470baa8c76fb5f3dd5 (patch)
tree4848b6f2d0903a250d4c780acd9874f1a3d96051 /src/lib
parent478dc838cb27a358d6b5158ee627a40c0cf7a818 (diff)
downloadopenbsd-1ec9711787e6735d06c91a470baa8c76fb5f3dd5.tar.gz
openbsd-1ec9711787e6735d06c91a470baa8c76fb5f3dd5.tar.bz2
openbsd-1ec9711787e6735d06c91a470baa8c76fb5f3dd5.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.
Diffstat (limited to 'src/lib')
-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