Fix for compression and updated CMS_final().
authorDr. Stephen Henson <steve@openssl.org>
Fri, 11 Apr 2008 17:07:01 +0000 (17:07 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Fri, 11 Apr 2008 17:07:01 +0000 (17:07 +0000)
crypto/cms/cms_smime.c
demos/smime/smsign2.c

index a9a11f5fdbae65dfcefc5d818903aae5aaacd13b..6f44c84a5f75b5bc2480b46d3f944cb3acdf627c 100644 (file)
@@ -749,7 +749,7 @@ CMS_ContentInfo *CMS_compress(BIO *in, int comp_nid, unsigned int flags)
        if(!(flags & CMS_DETACHED))
                CMS_set_detached(cms, 0);
 
-       if ((flags & CMS_STREAM) || CMS_final(cms, in, flags))
+       if ((flags & CMS_STREAM) || CMS_final(cms, in, NULL, flags))
                return cms;
 
        CMS_ContentInfo_free(cms);
index 566ad32bdf46d98631a5001452683a190a735991..ff835c568c8841ae2b949cd7da0170e1dad196d6 100644 (file)
@@ -101,7 +101,7 @@ int main(int argc, char **argv)
        return ret;
 
        }
-       
-       
-       
-       
+
+
+
+