Hi,
    I have a question about memory BIOs.
    I want my application to SSL-read/write from/to memory
instead of sockets. Reading/writing to the sockets will be handled
by the application (I require such a facility because my application
does async IO). When reading BIO documentation, I came
across memory BIOs. What I understood from it is that if I do

m_rbio = BIO_new_mem_buf (rbuf, len);
m_wbio = BIO_new_mem_buf (wbuf, len);
SSL_set_BIO(s, m_rbio, m_wbio);

during initialization and then do SSL_read/write as beforethen it
should work transparently for data. But there could be a problem
during the handshake. Calling SSL_read could also fill up the
write buffer. How can I check if there is pending data to be written in
the BIO?
More importantly will it work at all in this fashion?

Would greatly appreciate any help,
Amit.



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

Reply via email to