> Hmm, why would one want to do that?  Out of curiosity...

The first example that leaps to mind is the IPv6 bump-in-the-api shim
library; See, for example:

  <http://www.kfu.com/~nsayer/6to4/noipv4.html>
  <http://www.kfu.com/~nsayer/6to4/shimlib.c>

The idea is to pre-load a shared library that overrides the
gethostbyname, connect, etc. calls in libc with versions that are IPv6
aware, to allow old IPv4 applications to work on an IPv6 network.
(And before you ask, no, I haven't tried it with OpenSSL (yet)).


Another time I've used it was to replace a couple of network functions
in a propietary library with versions that could run over SSL sockets.

To be fair, OpenSSL is pretty good about providing callbacks and
function pointers for everything; I haven't needed to override any
functions (yet).

-- 
Harald Koch     <[EMAIL PROTECTED]>

"It takes a child to raze a village."
                -Michael T. Fry
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to