On Fri, 11 Jan 2002, Frank Geck wrote:

> Thanks, I was already using a variant of this code.  The issue seemed to
> be openssl 0.9.6b, went to version c and it worked.
>
> The current issue I have is how can I make the buffer that will hold the
> decoded data dynamic instead of static (i.e. no BIG, use malloc).  What
> size to I make it instead of just big?  Any part of the bio data
> structure once PKCS7_dataDecode has been called that can tell me how big
> to make the buffer so that when I do: BIO_read(p7bio, buf, data_len), I
> know how big to make data len?

The very 1st step with pkcs7 would be parsing and an OCTET STRING
should be allocated to hold encrypted data. One could use this size
as an estimate.

yours,
Vadim

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to