Make the algorithm implementations depend on the corresponding
[oweals/openssl.git] / crypto / asn1 / a_set.c
index 8cde8486894c3f83e6f095fff914c0b51f1a46ea..caf5a1419c98cbe201acbacfc8e24b99ecd58eab 100644 (file)
@@ -152,13 +152,13 @@ SetBlob
         }
 
 STACK *d2i_ASN1_SET(STACK **a, unsigned char **pp, long length,
-            char *(*func)(), void (*free_func)(), int ex_tag, int ex_class)
+            char *(*func)(), void (*free_func)(void *), int ex_tag, int ex_class)
        {
        ASN1_CTX c;
        STACK *ret=NULL;
 
        if ((a == NULL) || ((*a) == NULL))
-               { if ((ret=sk_new(NULL)) == NULL) goto err; }
+               { if ((ret=sk_new_null()) == NULL) goto err; }
        else
                ret=(*a);