diff options
author | Geoff Thorpe <geoff@openssl.org> | 2004-03-25 02:24:38 +0000 |
---|---|---|
committer | Geoff Thorpe <geoff@openssl.org> | 2004-03-25 02:24:38 +0000 |
commit | 2bd4e3379f8d9bf517f72c95c488f5b9f3b3a0d3 (patch) | |
tree | 2fe203cfaba0c21a96f81409cdd2af13cfad6654 /crypto/x509v3 | |
parent | 032c3ecb18ca3ac4823424aaf072f2deb28a987c (diff) |
Remove some warnings.
Diffstat (limited to 'crypto/x509v3')
-rw-r--r-- | crypto/x509v3/pcy_cache.c | 2 | ||||
-rw-r--r-- | crypto/x509v3/pcy_lib.c | 2 | ||||
-rw-r--r-- | crypto/x509v3/pcy_map.c | 2 | ||||
-rw-r--r-- | crypto/x509v3/pcy_tree.c | 4 |
4 files changed, 7 insertions, 3 deletions
diff --git a/crypto/x509v3/pcy_cache.c b/crypto/x509v3/pcy_cache.c index 23d930dd9c..7cad12b51f 100644 --- a/crypto/x509v3/pcy_cache.c +++ b/crypto/x509v3/pcy_cache.c @@ -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) { diff --git a/crypto/x509v3/pcy_lib.c b/crypto/x509v3/pcy_lib.c index b56739e672..441a70e925 100644 --- a/crypto/x509v3/pcy_lib.c +++ b/crypto/x509v3/pcy_lib.c @@ -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) diff --git a/crypto/x509v3/pcy_map.c b/crypto/x509v3/pcy_map.c index fe934e27b8..093e4b6a84 100644 --- a/crypto/x509v3/pcy_map.c +++ b/crypto/x509v3/pcy_map.c @@ -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; diff --git a/crypto/x509v3/pcy_tree.c b/crypto/x509v3/pcy_tree.c index 16cacde0c4..8871ab88b6 100644 --- a/crypto/x509v3/pcy_tree.c +++ b/crypto/x509v3/pcy_tree.c @@ -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; |