Re: length vs EOC

2009-06-19 Thread Chris Bare
> > > > > > The CMS_STREAM flag is ignored for OpenSSL < 1.0.0. For supported > > > versions of > > > OpenSSL it will produce an output with EOCs. > > > > > > Steve. > > > -- > > > > I'm using openssl-1.0.0-beta2 and I've tried setting CMS_STREAM as well as > > CMS_STREAM|CMS_PARTIAL, but I hav

Re: length vs EOC

2009-06-19 Thread Dr. Stephen Henson
On Fri, Jun 19, 2009, Chris Bare wrote: > > On Wed, Jun 17, 2009, Chris Bare wrote: > > > > > I'm trying to use openssl to generate a signed CMS that matches the > > > output of > > > a windows program written with the BouncyCastle library. One of the > > > differences I've noticed is that my op

Re: length vs EOC

2009-06-19 Thread Chris Bare
> On Wed, Jun 17, 2009, Chris Bare wrote: > > > I'm trying to use openssl to generate a signed CMS that matches the output > > of > > a windows program written with the BouncyCastle library. One of the > > differences I've noticed is that my openssl output has the length set for > > each > > str

Re: length vs EOC

2009-06-17 Thread Alan Zheng
The following flags can be passed in the *flags* parameter. If *CMS_DETACHED* is set then cleartext signing will be used, this option only makes sense for SignedData where *CMS_DETACHED* is also set when CMS_sign() is called. If the *CMS_TEXT* flag is set MIME headers for type *text/plain* are ad

Re: length vs EOC

2009-06-17 Thread Dr. Stephen Henson
On Wed, Jun 17, 2009, Chris Bare wrote: > I'm trying to use openssl to generate a signed CMS that matches the output of > a windows program written with the BouncyCastle library. One of the > differences I've noticed is that my openssl output has the length set for each > structure whereas the c#

length vs EOC

2009-06-17 Thread Chris Bare
I'm trying to use openssl to generate a signed CMS that matches the output of a windows program written with the BouncyCastle library. One of the differences I've noticed is that my openssl output has the length set for each structure whereas the c# program has the length as inf and closes with an