Is there a way to find the size of the der-encoded CMS object without writing
it to a file/buffer first?

I'm doing this:

        cms = CMS_sign(scert, skey, NULL, mem, flags);

        i2d_CMS_bio(server, cms);

but I need to send the size to the server in a header before I send the CMS.
-- 
Chris Bare
ch...@bareflix.com
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to