Fix from 1.0.0-stable.
[oweals/openssl.git] / crypto / x509v3 / pcy_cache.c
index 23d930dd9c578bebf1bb8b55a13690fc0eac235d..1030931b71360a796d7d721795a62933a790d757 100644 (file)
@@ -1,5 +1,5 @@
 /* pcy_cache.c */
-/* Written by Dr Stephen N Henson (shenson@bigfoot.com) for the OpenSSL
+/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
  * project 2004.
  */
 /* ====================================================================
@@ -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);
        }