Fix CRL encoding bug.
[oweals/openssl.git] / crypto / asn1 / x_info.c
index 03bc38cdf7b483693c2bea04a043101cbee94409..22520d03dd60adde4a182d838c3cd7eef77e5794 100644 (file)
@@ -58,9 +58,9 @@
 
 #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(void)
        {
@@ -106,5 +106,9 @@ void X509_INFO_free(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)
+