提交 2bd4e337 编写于 作者: G Geoff Thorpe

Remove some warnings.

上级 032c3ecb
......@@ -232,6 +232,7 @@ static int policy_cache_new(X509 *x)
}
#if 0
void policy_cache_free(X509_POLICY_CACHE *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);
OPENSSL_free(cache);
}
#endif
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;
}
#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)
......
......@@ -75,7 +75,7 @@ static void policy_map_free(X509_POLICY_REF *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;
int idx;
......
......@@ -81,11 +81,11 @@ static int tree_init(X509_POLICY_TREE **ptree, STACK_OF(X509) *certs,
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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册