I am currently doing some OpenSSL programming and I need to create an OpenSSL BIO and basically initiate an SSL connection to a remote server then pass that connection on to another process. The way I am currently planning on doing this is to 'package' the BIO into a memory buffer and send that over a socket since I need to dereference a number of pointers contained in the BIO struct and thus can't just 'cast' the BIO to a char * and send it over. Does anyone know if there is an easier way of doing this ? I saw that there are memory BIOs but after doing some research it is still unclear to me whether they're what I need or not...
Thanks