Hi there, I am struggling with the BIO_* API to understand how I can control the memory. I found a nice function for read-only memory:
BIO *data = BIO_new_mem_buf((void*)array, len); but I do not understand how to control output memory (I need to write to a C++ std::stringstream). So what I am doing is memory duplication for now: std::stringstream ss; char *binary; long biolen = BIO_get_mem_data(bio_buffer,&binary); ss.str( std::string(binary, biolen) ); Has anyone found a way to pass from a BIO_* to a std::stringstream for write operation ? Thanks, -- Mathieu ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org