Fix CRL encoding bug.
[oweals/openssl.git] / crypto / asn1 / x_info.c
index b55f0ce77a7cdb87863003926c6ed69c4fa1865d..22520d03dd60adde4a182d838c3cd7eef77e5794 100644 (file)
 
 #include <stdio.h>
 #include "cryptlib.h"
-#include "evp.h"
-#include "asn1_mac.h"
-#include "x509.h"
+#include <openssl/evp.h>
+#include <openssl/asn1_mac.h>
+#include <openssl/x509.h>
 
-X509_INFO *X509_INFO_new()
+X509_INFO *X509_INFO_new(void)
        {
        X509_INFO *ret=NULL;
 
@@ -84,8 +84,7 @@ X509_INFO *X509_INFO_new()
        return(ret);
        }
 
-void X509_INFO_free(x)
-X509_INFO *x;
+void X509_INFO_free(X509_INFO *x)
        {
        int i;
 
@@ -107,5 +106,9 @@ X509_INFO *x;
        if (x->x509 != NULL) X509_free(x->x509);
        if (x->crl != NULL) X509_CRL_free(x->crl);
        if (x->x_pkey != NULL) X509_PKEY_free(x->x_pkey);
+       if (x->enc_data != NULL) Free(x->enc_data);
        Free((char *)x);
        }
+
+IMPLEMENT_STACK_OF(X509_INFO)
+