Hi,
I just wrote a sample engine to understand the functionality
which is part of built-in engines. To activate the engine I used the
following sample code given at www.openssl.org/docs/crypto/engine.html
ENGINE *e;
const char *engine_id = "ACME";
ENGINE_load_builtin_engines();
e = ENGINE_by_id(engine_id);
if(!e)
{
/* the engine isn't available */
printf("Engine not found.\n");
return;
}
if(!ENGINE_init(e)) {
/* the engine couldn't initialise, release 'e' */
ENGINE_free(e);
return;
}
if(!ENGINE_set_default_RSA(e))
/* This should only happen when 'e' can't initialise, but the
previous
* statement suggests it did. */
abort();
ENGINE_set_default_DSA(e);
ENGINE_set_default_ciphers(e);
/* Release the functional reference from ENGINE_init() */
ENGINE_finish(e);
/* Release the structural reference from ENGINE_by_id() */
ENGINE_free(e);
However, when I try the above code, I hit the line "Engine not
found."
Any ideas/areas specifically I should look for?
Thanks,
-Sitanshu
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [email protected]
Automated List Manager [EMAIL PROTECTED]