Hi, OpenSSL has a specific path for dynamic ENGINE libraries. If you use the --prefix="/path_to_openssl" option when building openssl, then - the openssl libraries are in /path_to_ossl/lib - the openssl ENGINE libraries are in /path_to_ossl/lib/engines So it's easy to know the path. ;)
After that the dynamic engine library find the specific hardware library (if any, not using direct driver calls) according to your environement variable (LD_LIBRARY_PATH on linux for example). If you are using another engines not included in openssl engines libraries you could load it with the "dynamic" engine spefying the library just as it is exlains in the openssl engine -h online help. Have a look at the man ssl/man/man5/config.5 for more informations. I think you could also find a thread on this in openssl user mailing list archive. Hope it could help. regards, Fred -----Original Message----- From: Anil Gunturu [mailto:[EMAIL PROTECTED] Sent: Thu 10/6/2005 7:43 PM To: Richard Levitte - VMS Whacker; openssl-users@openssl.org Cc: Subject: Re: question on linking dynamic engines How does it know the location of the library at runtime? Do I need to bundle the it engine library? Thanks, -Anil Richard Levitte - VMS Whacker <[EMAIL PROTECTED]> wrote: In message <[EMAIL PROTECTED]> on Wed, 5 Oct 2005 21:25:34 -0700 (PDT), Anil Gunturu said: anil_gunturu> How do I link the dynamic engine "so" and the library anil_gunturu> that the hardware vendor provides? For example, if I am anil_gunturu> using the ibmca engine in the demos directory it seem to anil_gunturu> generate the libibmca.so. Looks like this path needs to anil_gunturu> be provided to the engine as SO_PATH. But, how I anil_gunturu> actually link to the hardware library? You don't. It's loaded by libcrypto in run-time. Cheers, Richard ----- Please consider sponsoring my work on free software. See http://www.free.lp.se/sponsoring.html for details. -- Richard Levitte [EMAIL PROTECTED] http://richard.levitte.org/ "When I became a man I put away childish things, including the fear of childishness and the desire to be very grown up." -- C.S. Lewis --------------------------------- Yahoo! for Good Click here to donate to the Hurricane Katrina relief effort. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]