There have been a number of complaints from a number of sources that names
[openssl.git] / crypto / asn1 / x_algor.c
index fd6f3ee40dd0c6d3538672fe2f7eb57c78450b71..853a8dfeef49b9cdb9d63d74de7715f00a60847f 100644 (file)
@@ -59,6 +59,7 @@
 #include <stdio.h>
 #include "cryptlib.h"
 #include <openssl/asn1_mac.h>
+#include <openssl/x509.h>
 
 int i2d_X509_ALGOR(X509_ALGOR *a, unsigned char **pp)
        {
@@ -110,6 +111,8 @@ void X509_ALGOR_free(X509_ALGOR *a)
        if (a == NULL) return;
        ASN1_OBJECT_free(a->algorithm);
        ASN1_TYPE_free(a->parameter);
-       Free((char *)a);
+       OPENSSL_free(a);
        }
 
+IMPLEMENT_STACK_OF(X509_ALGOR)
+IMPLEMENT_ASN1_SET_OF(X509_ALGOR)