diff options
author | tb <> | 2023-04-25 18:28:05 +0000 |
---|---|---|
committer | tb <> | 2023-04-25 18:28:05 +0000 |
commit | 1e19be2bbd27af0df9ea06c8c0a46f5ab687d976 (patch) | |
tree | 5e6300823f61fe1b218fefd7cfb03d499e067bcd /src/lib/libcrypto/x509/pcy_int.h | |
parent | cab021af4c7b73bac13f4b68c8b8360639242879 (diff) | |
download | openbsd-1e19be2bbd27af0df9ea06c8c0a46f5ab687d976.tar.gz openbsd-1e19be2bbd27af0df9ea06c8c0a46f5ab687d976.tar.bz2 openbsd-1e19be2bbd27af0df9ea06c8c0a46f5ab687d976.zip |
Move the policy tree code to internal-only
A few hooks remain in the legacy validator, which will soon be replaced
with something better. The rest of the tentacles are now largely contained.
Diffstat (limited to 'src/lib/libcrypto/x509/pcy_int.h')
-rw-r--r-- | src/lib/libcrypto/x509/pcy_int.h | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/src/lib/libcrypto/x509/pcy_int.h b/src/lib/libcrypto/x509/pcy_int.h index 5e9edcb933..e4a20d6ca9 100644 --- a/src/lib/libcrypto/x509/pcy_int.h +++ b/src/lib/libcrypto/x509/pcy_int.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: pcy_int.h,v 1.2 2023/04/16 07:36:43 tb Exp $ */ | 1 | /* $OpenBSD: pcy_int.h,v 1.3 2023/04/25 18:28:05 tb Exp $ */ |
2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
3 | * project 2004. | 3 | * project 2004. |
4 | */ | 4 | */ |
@@ -64,6 +64,7 @@ __BEGIN_HIDDEN_DECLS | |||
64 | typedef struct X509_POLICY_DATA_st X509_POLICY_DATA; | 64 | typedef struct X509_POLICY_DATA_st X509_POLICY_DATA; |
65 | 65 | ||
66 | DECLARE_STACK_OF(X509_POLICY_DATA) | 66 | DECLARE_STACK_OF(X509_POLICY_DATA) |
67 | DECLARE_STACK_OF(X509_POLICY_NODE) | ||
67 | 68 | ||
68 | /* Internal structures */ | 69 | /* Internal structures */ |
69 | 70 | ||
@@ -209,4 +210,26 @@ int policy_node_match(const X509_POLICY_LEVEL *lvl, | |||
209 | 210 | ||
210 | const X509_POLICY_CACHE *policy_cache_set(X509 *x); | 211 | const X509_POLICY_CACHE *policy_cache_set(X509 *x); |
211 | 212 | ||
213 | int X509_policy_tree_level_count(const X509_POLICY_TREE *tree); | ||
214 | X509_POLICY_LEVEL * | ||
215 | X509_policy_tree_get0_level(const X509_POLICY_TREE *tree, int i); | ||
216 | |||
217 | STACK_OF(X509_POLICY_NODE) * | ||
218 | X509_policy_tree_get0_policies(const X509_POLICY_TREE *tree); | ||
219 | |||
220 | STACK_OF(X509_POLICY_NODE) * | ||
221 | X509_policy_tree_get0_user_policies(const X509_POLICY_TREE *tree); | ||
222 | |||
223 | int X509_policy_level_node_count(X509_POLICY_LEVEL *level); | ||
224 | |||
225 | X509_POLICY_NODE *X509_policy_level_get0_node(X509_POLICY_LEVEL *level, int i); | ||
226 | |||
227 | const ASN1_OBJECT *X509_policy_node_get0_policy(const X509_POLICY_NODE *node); | ||
228 | |||
229 | STACK_OF(POLICYQUALINFO) * | ||
230 | X509_policy_node_get0_qualifiers(const X509_POLICY_NODE *node); | ||
231 | const X509_POLICY_NODE * | ||
232 | X509_policy_node_get0_parent(const X509_POLICY_NODE *node); | ||
233 | |||
234 | |||
212 | __END_HIDDEN_DECLS | 235 | __END_HIDDEN_DECLS |