summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/man/X509_policy_check.322
1 files changed, 19 insertions, 3 deletions
diff --git a/src/lib/libcrypto/man/X509_policy_check.3 b/src/lib/libcrypto/man/X509_policy_check.3
index d6932b5244..7739f13d5a 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.2 2021/07/28 13:39:20 schwarze Exp $ 1.\" $OpenBSD: X509_policy_check.3,v 1.3 2021/07/28 14:00:33 schwarze Exp $
2.\" 2.\"
3.\" Copyright (c) 2021 Ingo Schwarze <schwarze@openbsd.org> 3.\" Copyright (c) 2021 Ingo Schwarze <schwarze@openbsd.org>
4.\" 4.\"
@@ -18,7 +18,8 @@
18.Dt X509_POLICY_CHECK 3 18.Dt X509_POLICY_CHECK 3
19.Os 19.Os
20.Sh NAME 20.Sh NAME
21.Nm X509_policy_check 21.Nm X509_policy_check ,
22.Nm X509_policy_tree_free
22.Nd construct X.509 valid policy tree 23.Nd construct X.509 valid policy tree
23.Sh SYNOPSIS 24.Sh SYNOPSIS
24.In openssl/x509_vfy.h 25.In openssl/x509_vfy.h
@@ -30,6 +31,8 @@
30.Fa "STACK_OF(ASN1_OBJECT) *policy_oids" 31.Fa "STACK_OF(ASN1_OBJECT) *policy_oids"
31.Fa "unsigned int flags" 32.Fa "unsigned int flags"
32.Fc 33.Fc
34.Ft void
35.Fn X509_policy_tree_free "X509_POLICY_TREE *tree"
33.Sh DESCRIPTION 36.Sh DESCRIPTION
34.Fn X509_policy_check 37.Fn X509_policy_check
35performs those parts of Basic Certification Path Validation 38performs those parts of Basic Certification Path Validation
@@ -97,6 +100,17 @@ is set to 1 if
97.Dv X509_V_FLAG_EXPLICIT_POLICY 100.Dv X509_V_FLAG_EXPLICIT_POLICY
98was requested. 101was requested.
99Otherwise, it is set to 0. 102Otherwise, it is set to 0.
103.Pp
104.Fn X509_policy_tree_free
105releases all memory used by the
106.Fa tree
107and decrements the reference counts
108of the certificates referenced from it by 1.
109If
110.Fa tree
111is a
112.Dv NULL
113pointer, no action occurs.
100.Sh RETURN VALUES 114.Sh RETURN VALUES
101.Fn X509_policy_check 115.Fn X509_policy_check
102returns these values: 116returns these values:
@@ -177,5 +191,7 @@ and Certificate Revocation List (CRL) Profile,
177section 6.1: Basic Path Validation 191section 6.1: Basic Path Validation
178.Sh HISTORY 192.Sh HISTORY
179.Fn X509_policy_check 193.Fn X509_policy_check
180first appeared in OpenSSL 0.9.8 and has been available since 194and
195.Fn X509_policy_tree_free
196first appeared in OpenSSL 0.9.8 and have been available since
181.Ox 4.5 . 197.Ox 4.5 .