diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2008-04-11 17:07:01 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2008-04-11 17:07:01 +0000 |
commit | c02b6b6b218e4d7837b6fb4fb6fadabd93683579 (patch) | |
tree | 9f279df637d0f45e2d64358899e40b23d97f70fe | |
parent | 3b28bc9910e12a8c34fb4643788e94b5c3bd184d (diff) |
Fix for compression and updated CMS_final().
-rw-r--r-- | crypto/cms/cms_smime.c | 2 | ||||
-rw-r--r-- | demos/smime/smsign2.c | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/crypto/cms/cms_smime.c b/crypto/cms/cms_smime.c index a9a11f5fdb..6f44c84a5f 100644 --- a/crypto/cms/cms_smime.c +++ b/crypto/cms/cms_smime.c @@ -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); diff --git a/demos/smime/smsign2.c b/demos/smime/smsign2.c index 566ad32bdf..ff835c568c 100644 --- a/demos/smime/smsign2.c +++ b/demos/smime/smsign2.c @@ -101,7 +101,7 @@ int main(int argc, char **argv) return ret; } - - - - + + + + |