diff options
Diffstat (limited to 'src/lib/libcrypto/x509v3/pcy_int.h')
| -rw-r--r-- | src/lib/libcrypto/x509v3/pcy_int.h | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/src/lib/libcrypto/x509v3/pcy_int.h b/src/lib/libcrypto/x509v3/pcy_int.h index 3780de4fcd..ccff92846e 100644 --- a/src/lib/libcrypto/x509v3/pcy_int.h +++ b/src/lib/libcrypto/x509v3/pcy_int.h | |||
| @@ -56,12 +56,10 @@ | |||
| 56 | * | 56 | * |
| 57 | */ | 57 | */ |
| 58 | 58 | ||
| 59 | DECLARE_STACK_OF(X509_POLICY_DATA) | ||
| 60 | DECLARE_STACK_OF(X509_POLICY_REF) | ||
| 61 | DECLARE_STACK_OF(X509_POLICY_NODE) | ||
| 62 | 59 | ||
| 63 | typedef struct X509_POLICY_DATA_st X509_POLICY_DATA; | 60 | typedef struct X509_POLICY_DATA_st X509_POLICY_DATA; |
| 64 | typedef struct X509_POLICY_REF_st X509_POLICY_REF; | 61 | |
| 62 | DECLARE_STACK_OF(X509_POLICY_DATA) | ||
| 65 | 63 | ||
| 66 | /* Internal structures */ | 64 | /* Internal structures */ |
| 67 | 65 | ||
| @@ -110,16 +108,6 @@ struct X509_POLICY_DATA_st | |||
| 110 | 108 | ||
| 111 | #define POLICY_DATA_FLAG_CRITICAL 0x10 | 109 | #define POLICY_DATA_FLAG_CRITICAL 0x10 |
| 112 | 110 | ||
| 113 | /* This structure is an entry from a table of mapped policies which | ||
| 114 | * cross reference the policy it refers to. | ||
| 115 | */ | ||
| 116 | |||
| 117 | struct X509_POLICY_REF_st | ||
| 118 | { | ||
| 119 | ASN1_OBJECT *subjectDomainPolicy; | ||
| 120 | const X509_POLICY_DATA *data; | ||
| 121 | }; | ||
| 122 | |||
| 123 | /* This structure is cached with a certificate */ | 111 | /* This structure is cached with a certificate */ |
| 124 | 112 | ||
| 125 | struct X509_POLICY_CACHE_st { | 113 | struct X509_POLICY_CACHE_st { |
| @@ -127,8 +115,6 @@ struct X509_POLICY_CACHE_st { | |||
| 127 | X509_POLICY_DATA *anyPolicy; | 115 | X509_POLICY_DATA *anyPolicy; |
| 128 | /* other policy data */ | 116 | /* other policy data */ |
| 129 | STACK_OF(X509_POLICY_DATA) *data; | 117 | STACK_OF(X509_POLICY_DATA) *data; |
| 130 | /* If policyMappings extension present a table of mapped policies */ | ||
| 131 | STACK_OF(X509_POLICY_REF) *maps; | ||
| 132 | /* If InhibitAnyPolicy present this is its value or -1 if absent. */ | 118 | /* If InhibitAnyPolicy present this is its value or -1 if absent. */ |
| 133 | long any_skip; | 119 | long any_skip; |
| 134 | /* If policyConstraints and requireExplicitPolicy present this is its | 120 | /* If policyConstraints and requireExplicitPolicy present this is its |
| @@ -193,7 +179,7 @@ struct X509_POLICY_TREE_st | |||
| 193 | 179 | ||
| 194 | /* Internal functions */ | 180 | /* Internal functions */ |
| 195 | 181 | ||
| 196 | X509_POLICY_DATA *policy_data_new(POLICYINFO *policy, ASN1_OBJECT *id, | 182 | X509_POLICY_DATA *policy_data_new(POLICYINFO *policy, const ASN1_OBJECT *id, |
| 197 | int crit); | 183 | int crit); |
| 198 | void policy_data_free(X509_POLICY_DATA *data); | 184 | void policy_data_free(X509_POLICY_DATA *data); |
| 199 | 185 | ||
| @@ -209,15 +195,18 @@ void policy_cache_init(void); | |||
| 209 | void policy_cache_free(X509_POLICY_CACHE *cache); | 195 | void policy_cache_free(X509_POLICY_CACHE *cache); |
| 210 | 196 | ||
| 211 | X509_POLICY_NODE *level_find_node(const X509_POLICY_LEVEL *level, | 197 | X509_POLICY_NODE *level_find_node(const X509_POLICY_LEVEL *level, |
| 198 | const X509_POLICY_NODE *parent, | ||
| 212 | const ASN1_OBJECT *id); | 199 | const ASN1_OBJECT *id); |
| 213 | 200 | ||
| 214 | X509_POLICY_NODE *tree_find_sk(STACK_OF(X509_POLICY_NODE) *sk, | 201 | X509_POLICY_NODE *tree_find_sk(STACK_OF(X509_POLICY_NODE) *sk, |
| 215 | const ASN1_OBJECT *id); | 202 | const ASN1_OBJECT *id); |
| 216 | 203 | ||
| 217 | X509_POLICY_NODE *level_add_node(X509_POLICY_LEVEL *level, | 204 | X509_POLICY_NODE *level_add_node(X509_POLICY_LEVEL *level, |
| 218 | X509_POLICY_DATA *data, | 205 | const X509_POLICY_DATA *data, |
| 219 | X509_POLICY_NODE *parent, | 206 | X509_POLICY_NODE *parent, |
| 220 | X509_POLICY_TREE *tree); | 207 | X509_POLICY_TREE *tree); |
| 221 | void policy_node_free(X509_POLICY_NODE *node); | 208 | void policy_node_free(X509_POLICY_NODE *node); |
| 209 | int policy_node_match(const X509_POLICY_LEVEL *lvl, | ||
| 210 | const X509_POLICY_NODE *node, const ASN1_OBJECT *oid); | ||
| 222 | 211 | ||
| 223 | const X509_POLICY_CACHE *policy_cache_set(X509 *x); | 212 | const X509_POLICY_CACHE *policy_cache_set(X509 *x); |
