diff options
| author | tb <> | 2023-04-25 18:28:05 +0000 |
|---|---|---|
| committer | tb <> | 2023-04-25 18:28:05 +0000 |
| commit | f93e2515680ec934d84f432f85c41fbc3d28e5bc (patch) | |
| tree | 5e6300823f61fe1b218fefd7cfb03d499e067bcd /src/lib/libcrypto/x509/pcy_int.h | |
| parent | cd5bdbca3ae5af8f90531b86da04780bda9c9b0a (diff) | |
| download | openbsd-f93e2515680ec934d84f432f85c41fbc3d28e5bc.tar.gz openbsd-f93e2515680ec934d84f432f85c41fbc3d28e5bc.tar.bz2 openbsd-f93e2515680ec934d84f432f85c41fbc3d28e5bc.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 |
