There have been a number of complaints from a number of sources that names
[openssl.git] / crypto / asn1 / x_algor.c
index 2d94b047fe32a20746b7787e290ad49d5f890cb7..853a8dfeef49b9cdb9d63d74de7715f00a60847f 100644 (file)
 #include <stdio.h>
 #include "cryptlib.h"
 #include <openssl/asn1_mac.h>
-
-/*
- * ASN1err(ASN1_F_D2I_X509_ALGOR,ERR_R_ASN1_LENGTH_MISMATCH);
- * ASN1err(ASN1_F_X509_ALGOR_NEW,ERR_R_EXPECTING_AN_ASN1_SEQUENCE);
- * ASN1err(ASN1_F_D2I_X509_ALGOR,ERR_R_ASN1_LENGTH_MISMATCH);
- */
+#include <openssl/x509.h>
 
 int i2d_X509_ALGOR(X509_ALGOR *a, unsigned char **pp)
        {
@@ -116,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)