On Sat, Jan 31, 2009 at 6:49 AM,  <t...@terralogic.net> wrote:

> I've not looked at the OpenSSL code for a few years now.  Last time I looked 
> the only way to do things was via a "BIO" and the BIO functions did the 
> crypto.

That's not right.  The BIO functions don't do crypto (well, you can
use BIO structures to access the SSL library, but you don't have to
and can use functions such as SSL_read and SSL_write instead).

The BIO functions normally do the I/O.  That's definitely not always
what you want.  Please take a look at "BIO pairs"
(http://www.openssl.org/docs/crypto/BIO_s_bio.html) as a way to avoid
having any actual I/O take place within the OpenSSL librarires.  The
SSL/TLS implementation for the Postfix mail server might provide
useful example code for this.

Bodo
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to