Various tidies/fixes:

Make streaming support in cms cleaner.

Note errors in various S/MIME functions if CMS_final() fails.

Add streaming support for enveloped data.
This commit is contained in:
Dr. Stephen Henson
2008-03-18 13:45:43 +00:00
parent 6e3bc4f073
commit e4f0e40eac
4 changed files with 11 additions and 36 deletions

View File

@@ -89,20 +89,6 @@ int i2d_CMS_bio(BIO *bp, CMS_ContentInfo *cms)
IMPLEMENT_PEM_rw_const(CMS, CMS_ContentInfo, PEM_STRING_CMS, CMS_ContentInfo)
#if 0
/* Streaming encode support for CMS */
static BIO *cmsbio_init(ASN1_VALUE *val, BIO *out)
{
return CMS_dataInit((CMS_ContentInfo *)val, out);
}
static int cmsbio_final(ASN1_VALUE *val, BIO *cmsbio)
{
return CMS_dataFinal((CMS_ContentInfo *)val, cmsbio);
}
#endif
BIO *BIO_new_CMS(BIO *out, CMS_ContentInfo *cms)
{
return BIO_new_NDEF(out, (ASN1_VALUE *)cms,