Some more tweaks to ENGINE code.
authorGeoff Thorpe <geoff@openssl.org>
Thu, 19 Apr 2001 01:45:40 +0000 (01:45 +0000)
committerGeoff Thorpe <geoff@openssl.org>
Thu, 19 Apr 2001 01:45:40 +0000 (01:45 +0000)
commite2f3ae12528589e21b509e870125feab14445770
treed97904668dccac35a1fafb6f223b6e43dc2a4dee
parent40fcda292f990a25d0ef52d2761be0f20d653e93
Some more tweaks to ENGINE code.

This change adds some basic control commands to the existing ENGINEs
(except the software 'openssl' engine). All these engines currently load
shared-libraries for hardware APIs, so they've all been given "SO_PATH"
commands that will configure the chosen ENGINE to load its shared library
from the given path. Eg. by calling;
    ENGINE_ctrl_cmd_string(e, "SO_PATH", <path>, 0).

The nCipher 'chil' ENGINE has also had "FORK_CHECK" and "THREAD_LOCKING"
commands added so these settings could be handled via application-level
configuration rather than in application source code.

Changes to "openssl engine" to test and examine these control commands will
be made shortly. It will also provide the necessary tips to application
programs wanting to support these dynamic control commands.
crypto/engine/engine.h
crypto/engine/engine_err.c
crypto/engine/hw_atalla.c
crypto/engine/hw_cswift.c
crypto/engine/hw_ncipher.c
crypto/engine/hw_nuron.c
crypto/engine/hw_ubsec.c