From bc2a15cdfb5a5a91b9166371b41b7e0c71e547c6 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Fri, 11 Sep 2015 23:10:29 +0100 Subject: [PATCH] Fix zlib CMS compilation. Reviewed-by: Rich Salz --- crypto/cms/cms_asn1.c | 2 +- crypto/cms/cms_cd.c | 2 -- crypto/cms/cms_lcl.h | 1 + 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/crypto/cms/cms_asn1.c b/crypto/cms/cms_asn1.c index 2bd3954e1f..e044cf519b 100644 --- a/crypto/cms/cms_asn1.c +++ b/crypto/cms/cms_asn1.c @@ -305,7 +305,7 @@ ASN1_NDEF_SEQUENCE(CMS_CompressedData) = { ASN1_SIMPLE(CMS_CompressedData, version, LONG), ASN1_SIMPLE(CMS_CompressedData, compressionAlgorithm, X509_ALGOR), ASN1_SIMPLE(CMS_CompressedData, encapContentInfo, CMS_EncapsulatedContentInfo), -} static_ASN1_NDEF_SEQUENCE_END(CMS_CompressedData) +} ASN1_NDEF_SEQUENCE_END(CMS_CompressedData) /* This is the ANY DEFINED BY table for the top level ContentInfo structure */ diff --git a/crypto/cms/cms_cd.c b/crypto/cms/cms_cd.c index 889133ee74..81cc6c51d5 100644 --- a/crypto/cms/cms_cd.c +++ b/crypto/cms/cms_cd.c @@ -64,8 +64,6 @@ #endif #include "cms_lcl.h" -DECLARE_ASN1_ITEM(CMS_CompressedData) - #ifdef ZLIB /* CMS CompressedData Utilities */ diff --git a/crypto/cms/cms_lcl.h b/crypto/cms/cms_lcl.h index 5b0551c4ca..227356b265 100644 --- a/crypto/cms/cms_lcl.h +++ b/crypto/cms/cms_lcl.h @@ -479,6 +479,7 @@ DECLARE_ASN1_ITEM(CMS_RecipientEncryptedKey) DECLARE_ASN1_ITEM(CMS_RecipientKeyIdentifier) DECLARE_ASN1_ITEM(CMS_RevocationInfoChoice) DECLARE_ASN1_ITEM(CMS_SignedData) +DECLARE_ASN1_ITEM(CMS_CompressedData) #ifdef __cplusplus } -- 2.25.1