2010/4/16 Patrice Guérin <guer...@magic.fr>

>  This way, OPENSSL_Applink can be used inside DLLs, but I'm not sure of
> implications so I need your advices.
>

I'm not an OpenSSL developer, but I think being able to set the Applink
function pointer explicitly is an excellent idea!

Just two days ago I was banging my head against this very problem.  I have a
C# app that calls into a C++ DLL that utilizes OpenSSL.  Adding applink.c to
the DLL project didn't get rid of the error like I hoped it would, and after
analyzing the OpenSSL code I discovered to my dismay that it always looks in
the EXE for the OPENSSL_Applink function.  Since this app is a C# project,
adding applink.c to it is pretty much impossible.

I actually ended up solving it by removing all uses of BIO_new_fp() in favor
of my own custom BIO that I just finished writing earlier this week.  I
hadn't thought of recompiling OpenSSL without OPENSSL_USE_APPLINK, but next
time around I may do that.  But if your idea gets implemented, then I won't
have to.

Phillip

Reply via email to