BUF_MEM * server_ptr = NULL; BIO_get_mem_ptr(server, &server_ptr); server_ptr->length should hold the size you want (assuming this isn't streamed CMS)
Carl >On Tue 16/06/09 5:05 PM , Chris Bare ch...@bareflix.com sent: >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. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org