diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2004-03-25 13:45:58 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2004-03-25 13:45:58 +0000 |
commit | b79c82eaabd87d336f91881f63b4104fec9ae445 (patch) | |
tree | 08e42c7f5c9b24c082fc0d35bc3486f1c1544c4a /crypto/x509v3/pcy_cache.c | |
parent | 69d1d5e6cee22de3ecc353d156e8ace7abb58afb (diff) | |
download | openssl-b79c82eaabd87d336f91881f63b4104fec9ae445.zip openssl-b79c82eaabd87d336f91881f63b4104fec9ae445.tar.gz openssl-b79c82eaabd87d336f91881f63b4104fec9ae445.tar.bz2 |
Fix loads of warnings in policy code.
I'll remember to try to compile this with warnings enabled next time :-)
Diffstat (limited to 'crypto/x509v3/pcy_cache.c')
-rw-r--r-- | crypto/x509v3/pcy_cache.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/crypto/x509v3/pcy_cache.c b/crypto/x509v3/pcy_cache.c index 23d930d..c18beb8 100644 --- a/crypto/x509v3/pcy_cache.c +++ b/crypto/x509v3/pcy_cache.c @@ -62,7 +62,8 @@ #include "pcy_int.h" -static int policy_data_cmp(void *pa, void *pb); +static int policy_data_cmp(const X509_POLICY_DATA * const *a, + const X509_POLICY_DATA * const *b); static int policy_cache_set_int(long *out, ASN1_INTEGER *value); /* Set cache entry according to CertificatePolicies extension. @@ -269,9 +270,9 @@ X509_POLICY_DATA *policy_cache_find_data(const X509_POLICY_CACHE *cache, return sk_X509_POLICY_DATA_value(cache->data, idx); } -static int policy_data_cmp(void *pa, void *pb) +static int policy_data_cmp(const X509_POLICY_DATA * const *a, + const X509_POLICY_DATA * const *b) { - X509_POLICY_DATA **a = pa; X509_POLICY_DATA **b = pb; return OBJ_cmp((*a)->valid_policy, (*b)->valid_policy); } |