hi,
Testing OpenSSL 1.0.0a on MacOSX 10.6, I see that it defaults to loadable
modules using using the .dylib extension. It's my understanding this is
incorrect, as loadable modules on MacOSX are called either .so (for
compability) or .bundle (for "native" modules). Dynamically linked libraries
though are called .dylib, but this is not the case for engines.
The OpenSSL build system actually builds and installs the engines as .so, but
the default loader tries to use .dylib and thus fails to load the engine. Diff
to fix this issue can be found below and with this fix applied, OpenSSL
correctly finds and loads the engine.
jakob
--- orig/openssl-1.0.0a/crypto/dso/dso_dlfcn.c 2010-03-29 02:50:33.000000000
-0700
+++ openssl-1.0.0a/crypto/dso/dso_dlfcn.c 2010-07-13 09:30:58.000000000
-0700
@@ -357,13 +357,8 @@
return(merged);
}
-#ifdef OPENSSL_SYS_MACOSX
-#define DSO_ext ".dylib"
-#define DSO_extlen 6
-#else
#define DSO_ext ".so"
#define DSO_extlen 3
-#endif
static char *dlfcn_name_converter(DSO *dso, const char *filename)
--
Jakob Schlyter
Kirei AB - http://www.kirei.se/
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [email protected]
Automated List Manager [email protected]