On Thu, Mar 15, 2001 at 09:37:23AM -0800, Zeo Bartoli wrote:
> The problem is that I need to create a typical I/O
> callback for OpenSSL. During the handshake I have a
> pointer to a read and write function, and during
> normal data transfer, I have a pointer to a buffer and
> len that i can read from and write from. So, in trying
> to solve this problem, here is what i have come up
> with.
I am not sure that I understand your needs.
Therefore, I would like to give you my standard advice in this case:
use BIO-pairs. With BIO-pairs the I/O routines are completly under
your control so you can interface to every obscene I/O layer :-)
* postfix | TLS-engine
* | |
* +--------> SSL_operations()
* | /\ ||
* | || \/
* | BIO-pair (internal_bio)
* +--------< BIO-pair (network_bio)
* | |
* socket |
(This example taken from the documentation of my Postfix/TLS patchkit,
which uses BIO-pairs.
Best regards,
Lutz
--
Lutz Jaenicke [EMAIL PROTECTED]
BTU Cottbus http://www.aet.TU-Cottbus.DE/personen/jaenicke/
Lehrstuhl Allgemeine Elektrotechnik Tel. +49 355 69-4129
Universitaetsplatz 3-4, D-03044 Cottbus Fax. +49 355 69-4153
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]