That's funny. I only got a message containing 'I'. Hm... :-S Anyway, +1 for Thomas' answer. Did it a bit different myself one time to prevent lots of GetProcAddress blues: find out which calls/functionality you need, write a 'wrapper' DLL offering just that functionality (using your own interface): *THAT* DLL just loads the openssl DLLs as usual, but itself it can be 'dynamically' loaded on demand and you'll only need to do the GetProcAddress() thing on your interface (wrapper) functions.
Might be easier (less work) in total than going the direct route GetProcAddress()ing functions in OpenSSL itself. Ger On Wed, Sep 10, 2008 at 8:36 AM, Thomas J. Hruska <[EMAIL PROTECTED]> wrote: > Raymond Zhou wrote: >> >> Hi there, >> >> My goal is to modify axis2/c so that I can load the openSSL dlls at >> runtime, this means that I will need the dlls to exist in the class >> path only if my web service calls require SSL communication. The >> AXIS2/c mainly calls the openSSL apis starting with SSL_, like >> SSL_read(...). >> >> Has anyone done this? If yes, can you share the experience? I noticed >> that the functions starting with SSL_ are not exported, is this a >> problem? >> >> Thanks much! Frank > > To answer your questions: > > 1) Yes. > 2) Painful. > 3) SSL_...() calls are exported. See ssleay32.dll. > > The macros are the hardest part - what appears to be a function in the > documentation ends up being a "convenient" macro in the header files. But to > do a full dynamic import requires a lot of GetProcAddress() calls. Combine > that with macros that do the equivalent of the original macros but using > GetProcAddress() and it creates a mess real fast. Doable but painful. > > -- > Thomas Hruska > Shining Light Productions > > Home of BMP2AVI, Nuclear Vision, ProtoNova, and Win32 OpenSSL. > http://www.slproweb.com/ > > > ______________________________________________________________________ > OpenSSL Project http://www.openssl.org > User Support Mailing List openssl-users@openssl.org > Automated List Manager [EMAIL PROTECTED] > > -- Met vriendelijke groeten / Best regards, Ger Hobbelt -------------------------------------------------- web: http://www.hobbelt.com/ http://www.hebbut.net/ mail: [EMAIL PROTECTED] mobile: +31-6-11 120 978 -------------------------------------------------- ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]