apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Klaus Keppler <klaus.kepp...@informatik.stud.uni-erlangen.de>
Subject BIO_s_apr_socket: BIO sink to use APR sockets with OpenSSL
Date Mon, 24 May 2004 11:19:32 GMT
Hello,

maybe this is interesting for others too:
I wrote a socket sink for OpenSSL's BIO system which
takes APR sockets (apr_socket_t) for low-level
communication.

The native OpenSSL socket sink (BIO_s_socket) would
only work with APR when fetching the socket fd
from OS (apr_os_sock_get()), but as soon as you want
to use apr_socket_timeout_set(), the BIO_read/BIO_write won't
work anymore.

I already tested the code unter Linux, in some days I'll
make some tests under WIN32.

The sources are found at:
http://klaus.kkit.de/bio_s_apr_socket.c
http://klaus.kkit.de/bio_s_apr_socket.h

Any comments are welcome. :-)

Bye,

Klaus


Mime
View raw message