Remove some warnings.
This commit is contained in:
parent
032c3ecb18
commit
2bd4e3379f
@ -232,6 +232,7 @@ static int policy_cache_new(X509 *x)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
void policy_cache_free(X509_POLICY_CACHE *cache)
|
void policy_cache_free(X509_POLICY_CACHE *cache)
|
||||||
{
|
{
|
||||||
if (!cache)
|
if (!cache)
|
||||||
@ -242,6 +243,7 @@ void policy_cache_free(X509_POLICY_CACHE *cache)
|
|||||||
sk_X509_POLICY_DATA_pop_free(cache->data, policy_data_free);
|
sk_X509_POLICY_DATA_pop_free(cache->data, policy_data_free);
|
||||||
OPENSSL_free(cache);
|
OPENSSL_free(cache);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
const X509_POLICY_CACHE *policy_cache_set(X509 *x)
|
const X509_POLICY_CACHE *policy_cache_set(X509 *x)
|
||||||
{
|
{
|
||||||
|
@ -139,12 +139,14 @@ const ASN1_OBJECT *X509_policy_node_get0_policy(const X509_POLICY_NODE *node)
|
|||||||
return node->data->valid_policy;
|
return node->data->valid_policy;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
int X509_policy_node_get_critical(const X509_POLICY_NODE *node)
|
int X509_policy_node_get_critical(const X509_POLICY_NODE *node)
|
||||||
{
|
{
|
||||||
if (node_critical(node))
|
if (node_critical(node))
|
||||||
return 1;
|
return 1;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
STACK_OF(POLICYQUALIFIER) *
|
STACK_OF(POLICYQUALIFIER) *
|
||||||
X509_policy_node_get0_qualifiers(const X509_POLICY_NODE *node)
|
X509_policy_node_get0_qualifiers(const X509_POLICY_NODE *node)
|
||||||
|
@ -75,7 +75,7 @@ static void policy_map_free(X509_POLICY_REF *map)
|
|||||||
OPENSSL_free(map);
|
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;
|
X509_POLICY_REF tmp;
|
||||||
int idx;
|
int idx;
|
||||||
|
@ -81,11 +81,11 @@ static int tree_init(X509_POLICY_TREE **ptree, STACK_OF(X509) *certs,
|
|||||||
X509 *x;
|
X509 *x;
|
||||||
int ret = 1;
|
int ret = 1;
|
||||||
int i, n;
|
int i, n;
|
||||||
*ptree = NULL;
|
|
||||||
n = sk_X509_num(certs);
|
|
||||||
int explicit_policy;
|
int explicit_policy;
|
||||||
int any_skip;
|
int any_skip;
|
||||||
int map_skip;
|
int map_skip;
|
||||||
|
*ptree = NULL;
|
||||||
|
n = sk_X509_num(certs);
|
||||||
|
|
||||||
/* Disable policy mapping for now... */
|
/* Disable policy mapping for now... */
|
||||||
flags |= X509_V_FLAG_INHIBIT_MAP;
|
flags |= X509_V_FLAG_INHIBIT_MAP;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user