On Thu, Apr 07, 2005, Edward Chan wrote:

> Are there docs on this?  I was just going by the example in "Network
> Security with OpenSSL".  It looked so simple.
> 
> ENGINE* e = ENGINE_by_id("ubsec");
> ENGINE_set_default(e, ENGINE_METHOD_ALL);
> 
> And that is the way it looks in most other examples I've seen.  Apache,
> Stunnel, etc.  If someone could point me to some decent docs and examples,
> I'll be forever in your debt.
> 

You might want to look into the use of the auto config mechanism. This will
allow simple use of ENGINEs (and possibly more advanced in future) by placing
appropriate parameters in openssl.cnf or some other config file.

The 'openssl' application already supports autoconfig so you can use that to
see if you've got the openssl.cnf configuration right.

For the config file format see:

http://www.openssl.org/docs/apps/config.html#OPENSSL_LIBRARY_CONFIGURATION

For the functions an application needs to call see:

http://www.openssl.org/docs/crypto/OPENSSL_config.html

Steve.
--
Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage
OpenSSL project core developer and freelance consultant.
Funding needed! Details on homepage.
Homepage: http://www.drh-consultancy.demon.co.uk
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [email protected]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to