}
+#if 0
void policy_cache_free(X509_POLICY_CACHE *cache)
{
if (!cache)
sk_X509_POLICY_DATA_pop_free(cache->data, policy_data_free);
OPENSSL_free(cache);
}
+#endif
const X509_POLICY_CACHE *policy_cache_set(X509 *x)
{
return node->data->valid_policy;
}
+#if 0
int X509_policy_node_get_critical(const X509_POLICY_NODE *node)
{
if (node_critical(node))
return 1;
return 0;
}
+#endif
STACK_OF(POLICYQUALIFIER) *
X509_policy_node_get0_qualifiers(const X509_POLICY_NODE *node)
OPENSSL_free(map);
}
-X509_POLICY_REF *policy_map_find(X509_POLICY_CACHE *cache, ASN1_OBJECT *id)
+static X509_POLICY_REF *policy_map_find(X509_POLICY_CACHE *cache, ASN1_OBJECT *id)
{
X509_POLICY_REF tmp;
int idx;
X509 *x;
int ret = 1;
int i, n;
- *ptree = NULL;
- n = sk_X509_num(certs);
int explicit_policy;
int any_skip;
int map_skip;
+ *ptree = NULL;
+ n = sk_X509_num(certs);
/* Disable policy mapping for now... */
flags |= X509_V_FLAG_INHIBIT_MAP;