hi,
i've just started testing an ncipher hardware module using openssl.
the "openssl" application seems to find the shared library
(libnfhwcrhk.so), with just specifying "-engine chil".
but my code, doesn't want to find the library. i get this error:
"error:25066067:DSO support routines:DLFCN_LOAD:could not load the shared
library:
may be openssl is compiled with some define that tells where to look for
shared libraries... i don't have any idea.
this is the code i use:
ENGINE* engine_ = setup("chil");
if(!::ENGINE_set_default(engine_, ENGINE_METHOD_ALL))
{
//error treatment
}
ENGINE*
setup(char const* engine)
{
if (::ENGINE_by_id(engine) == NULL)
{
return NULL;
}
ENGINE* e = ::ENGINE_by_id("dynamic");
if (e)
{
if (!::ENGINE_ctrl_cmd_string(e, "SO_PATH", engine.c_str(), 0)
|| !::ENGINE_ctrl_cmd_string(e, "LOAD", NULL, 0))
{
// fails in here
e = NULL;
}
}
return e;
}
any ideas?
thanks in advance,
aleix
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]